зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
6dc93cb14d
Коммит
eed121aaa9
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче