mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
Bug 1289916 - Check tree dirtiness in ProcessPendingRestyles before triggering traversal. r=emilio
It's possible (and in fact, desirable) for the restyle hints to all evaluate to 0, which means the tree stays clean even though the map was non-empty.
This commit is contained in:
parent
2dafae2906
commit
7988d386c8
@ -203,8 +203,10 @@ ServoRestyleManager::ProcessPendingRestyles()
|
||||
}
|
||||
}
|
||||
|
||||
styleSet->RestyleSubtree(root);
|
||||
RecreateStyleContexts(root, nullptr, styleSet);
|
||||
if (root->IsDirtyForServo() || root->HasDirtyDescendantsForServo()) {
|
||||
styleSet->RestyleSubtree(root);
|
||||
RecreateStyleContexts(root, nullptr, styleSet);
|
||||
}
|
||||
}
|
||||
|
||||
mModifiedElements.Clear();
|
||||
|
Loading…
Reference in New Issue
Block a user