зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1062732 - Avoid tracking descendants for restyling if we are force restyling the entire subtree. r=dbaron
This commit is contained in:
Родитель
b973a953c7
Коммит
377ef30058
|
@ -472,7 +472,12 @@ RestyleTracker::AddPendingRestyle(Element* aElement,
|
||||||
RestyleData* curData;
|
RestyleData* curData;
|
||||||
mPendingRestyles.Get(cur, &curData);
|
mPendingRestyles.Get(cur, &curData);
|
||||||
NS_ASSERTION(curData, "expected to find a RestyleData for cur");
|
NS_ASSERTION(curData, "expected to find a RestyleData for cur");
|
||||||
curData->mDescendants.AppendElement(aElement);
|
// If cur has an eRestyle_ForceDescendants restyle hint, then we
|
||||||
|
// know that we will get to all descendants. Don't bother
|
||||||
|
// recording the descendant to restyle in that case.
|
||||||
|
if (!(curData->mRestyleHint & eRestyle_ForceDescendants)) {
|
||||||
|
curData->mDescendants.AppendElement(aElement);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче