Bug 724432 - Skip UpdateOverflow if we did Reflow. Don't propagate UpdateOverflow in ReResolveStyleContext. r=roc

This commit is contained in:
Mats Palmgren 2012-02-07 12:31:47 +01:00
Родитель 05a3722c7a
Коммит 9b595b2de8
2 изменённых файлов: 3 добавлений и 1 удалений

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

@ -7980,7 +7980,7 @@ nsCSSFrameConstructor::ProcessRestyledFrames(nsStyleChangeList& aChangeList)
ApplyRenderingChangeToTree(presContext, frame, hint);
didInvalidate = true;
}
if (hint & nsChangeHint_UpdateOverflow) {
if ((hint & nsChangeHint_UpdateOverflow) && !didReflow) {
while (frame) {
frame->UpdateOverflow();
nsIFrame* next =

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

@ -1061,6 +1061,8 @@ nsFrameManager::ReResolveStyleContext(nsPresContext *aPresContext,
NS_SubtractHint(aMinChange, nsChangeHint_ClearAncestorIntrinsics);
}
aMinChange = NS_SubtractHint(aMinChange, nsChangeHint_UpdateOverflow);
// It would be nice if we could make stronger assertions here; they
// would let us simplify the ?: expressions below setting |content|
// and |pseudoContent| in sensible ways as well as making what