diff --git a/layout/base/RestyleManager.cpp b/layout/base/RestyleManager.cpp index bfe681c19f29..c0a99e1ad5e3 100644 --- a/layout/base/RestyleManager.cpp +++ b/layout/base/RestyleManager.cpp @@ -951,11 +951,9 @@ 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(); + return; } } }