Closed Bug 1062732 Opened 10 years ago Closed 10 years ago

avoid tracking descendants for restyling if we are force restyling the entire subtree

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla35

People

(Reporter: heycam, Assigned: heycam)

References

Details

Attachments

(1 file)

In bug 931668 part 21, we add an mDescendants array to RestyleData, which is used to track descendant elements we need to restyle even though we're restyling an ancestor.  We can avoid tracking descendants if that ancestor has eRestyle_ForceSubtree in its restyle hint, since that means we will definitely get to all descendants.

Splitting this out to a separate bug since it's not critical to get bug 931668 landed.
Attachment #8483993 - Flags: review?(dbaron)
Comment on attachment 8483993 [details] [diff] [review]
avoid-descendants

Update the bug number, and r=dbaron.

(Maybe also put the comment outside the if?)
Attachment #8483993 - Flags: review?(dbaron) → review+
https://hg.mozilla.org/mozilla-central/rev/f481cfe44783
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Depends on: 1089463
You need to log in before you can comment on or make changes to this bug.