Bug 1324661 followup: check our child hint before trying to append it. r=bholley

MozReview-Commit-ID: 3FIBludwV7j
This commit is contained in:
Boris Zbarsky 2017-02-17 16:36:12 -05:00
parent 55021b6577
commit 54baf750e7

View File

@ -167,8 +167,10 @@ ServoRestyleManager::RecreateStyleContexts(Element* aElement,
"How did that happen?");
aChangeListToProcess.AppendChange(aElement->GetPrimaryFrame(), aElement,
changeHint);
aChangeListToProcess.AppendChange(styleFrame, aElement,
NS_HintsNotHandledForDescendantsIn(changeHint));
nsChangeHint childHint = NS_HintsNotHandledForDescendantsIn(changeHint);
if (childHint) {
aChangeListToProcess.AppendChange(styleFrame, aElement, childHint);
}
} else {
aChangeListToProcess.AppendChange(styleFrame, aElement, changeHint);
}