Bug 1022741 - Use CrossShadowCurrentDoc() in Element::UpdateState. r=smaug