For the next few years, Elizabeth swung mercurially between endearment and exasperation, drawing up documents to make Dudley an Earl only to shred them in front of him.
解析: drawing up documents to make Dudley an Earl only to shred them in front of him是现在分词短语做原因状语。