Closed
Bug 1397168
Opened 7 years ago
Closed 7 years ago
stylo: Add a function to find out if a node has any ancestor that is pending for restyling
Categories
(Core :: CSS Parsing and Computation, enhancement, P4)
Tracking
()
RESOLVED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox57 | --- | fixed |
People
(Reporter: wcpan, Assigned: wcpan)
References
Details
Attachments
(1 file)
bug 1363805 needs a function to know if any ancestor of an element is pending for restyling in Servo.
Note we don't want to check dirty descendants from parent because that flag can also be set for irrelevant subtree.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8904900 [details]
Bug 1397168 - Add a function to find out if a node has any ancestor that is pending for restyling.
https://reviewboard.mozilla.org/r/176688/#review181686
::: layout/base/ServoRestyleManager.h:191
(Diff revision 1)
> nsRestyleHint aRestyleHint);
> void PostRebuildAllStyleDataEvent(nsChangeHint aExtraHint,
> nsRestyleHint aRestyleHint);
> void ProcessPendingRestyles();
> void ProcessAllPendingAttributeAndStateInvalidations();
> + bool HasPendingRestyleAncestor(nsINode* aNode) const;
This looks ok, but as I said I think this should just take `Element`s.
With that, r=me.
Attachment #8904900 -
Flags: review?(emilio) → review+
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Priority: -- → P4
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → wpan
Pushed by wpan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d12b61881a56
Add a function to find out if a node has any ancestor that is pending for restyling. r=emilio
Comment 6•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in
before you can comment on or make changes to this bug.
Description
•