Bug 817395 - Clean up the temporary style context used for font size comparision of the root before the rule node tree is rebuilt. r=dbaron

This commit is contained in:
Kang-Hao (Kenny) Lu 2013-02-11 18:04:11 -08:00
parent 79bae38133
commit 2519fe8873

View File

@ -8430,6 +8430,7 @@ nsCSSFrameConstructor::RestyleElement(Element *aElement,
if (oldContext->GetStyleFont()->mFont.size !=
newContext->GetStyleFont()->mFont.size) {
// The basis for 'rem' units has changed.
newContext = nullptr;
DoRebuildAllStyleData(aRestyleTracker, nsChangeHint(0));
if (aMinHint == 0) {
return;