mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1329854 - Avoid propagating the dirty descendants bit when appending items to display:none subtrees. r=heycam
This commit is contained in:
parent
38e55d8cfa
commit
2a1b6401df
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user