Bug 1115812 patch 14 - For rem unit change handling, repost min hint to root just like change hint. r=heycam

This changes what was probably a silly design choice when I wrote the
code for 'rem'-basis handling; we shouldn't try continuing through the
rest of RestyleElement() here, but instead repost the hint to the
rebuild-all process.
This commit is contained in:
L. David Baron 2015-01-13 21:03:12 -08:00
Родитель 6dc93cb14d
Коммит eed121aaa9
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -951,12 +951,10 @@ RestyleManager::RestyleElement(Element* aElement,
// The basis for 'rem' units has changed.
newContext = nullptr;
mRebuildAllRestyleHint |= aRestyleHint;
NS_UpdateHint(mRebuildAllExtraHint, aMinHint);
DoRebuildAllStyleData(aRestyleTracker);
if (aMinHint == 0) {
return;
}
aPrimaryFrame = aElement->GetPrimaryFrame();
}
}
}