Bug 1329854 - Avoid propagating the dirty descendants bit when appending items to display:none subtrees. r=heycam

This commit is contained in:
Bobby Holley 2017-01-11 16:44:49 -08:00
parent 38e55d8cfa
commit 2a1b6401df

View File

@ -58,6 +58,11 @@ Element::ShouldTraverseForServo()
inline void
Element::NoteDirtyDescendantsForServo()
{
if (!HasServoData()) {
// The dirty descendants bit only applies to styled elements.
return;
}
Element* curr = this;
while (curr && !curr->HasDirtyDescendantsForServo()) {
curr->SetHasDirtyDescendantsForServo();