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

RESOLVED FIXED in mozilla35

Status

()

Core
CSS Parsing and Computation
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: heycam, Assigned: heycam)

Tracking

Trunk
mozilla35
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

4 years ago
Created attachment 8483993 [details] [diff] [review]
avoid-descendants

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
Last Resolved: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
(Assignee)

Updated

4 years ago
Depends on: 1089463
You need to log in before you can comment on or make changes to this bug.