Closed
Bug 1371976
Opened 8 years ago
Closed 8 years ago
stylo: Need to implement sane comparisons between old and new counter styles
Categories
(Core :: CSS Parsing and Computation, enhancement, P1)
Tracking
()
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: xidorn)
References
Details
Attachments
(1 file)
Right now we always detect a difference for styles other than "none", because the equality comparison between resolved and unresolved counter styles always says "not equal", the old struct always has a resolved style, and the new struct always has an unresolved one.
See bug 1371955 comment 4 and bug 1371955 comment 5. As Cameron says, we should be able to do a readonly lookup for the case when we know we want to compare to an already-resolved style. If the lookup returns nothing, we're not equal.
Assignee | ||
Comment 1•8 years ago
|
||
See my comment in bug 1371955 comment 11, basically I don't think we want to do comparison between resolve and unresolved counter styles.
Reporter | ||
Comment 2•8 years ago
|
||
OK, let's retitle to the real problem we want to solve.
Summary: stylo: Need to implement sane comparisons between resolved and unresolved counter styles in nsStyleList::CalcDifference → stylo: Need to implement sane comparisons between old and new counter styles
Assignee | ||
Comment 3•8 years ago
|
||
I can take this. I actually pretty much like my idea that we do the hashtable lookup during parallel traversal and only leave counter style unresolved when lookup doesn't find any existing item.
Assignee: nobody → xidorn+moz
Comment 5•8 years ago
|
||
IIUC, this is causing spurious reflows after restyles, which can significantly hurt perf. P1.
Priority: -- → P1
Comment hidden (mozreview-request) |
Assignee | ||
Comment 7•8 years ago
|
||
This would work only with both bug 1372488 and bug 1372549 fixed, otherwise there could still be unnecessary reflows.
Flags: needinfo?(xidorn+moz)
Comment hidden (mozreview-request) |
Comment 9•8 years ago
|
||
mozreview-review |
Comment on attachment 8877429 [details]
Bug 1371976 - Resolve counter style during parallel traversal when possible.
https://reviewboard.mozilla.org/r/148844/#review153336
Attachment #8877429 -
Flags: review?(cam) → review+
Assignee | ||
Comment 10•8 years ago
|
||
Servo PR: servo/servo#17316
Comment hidden (mozreview-request) |
Comment 12•8 years ago
|
||
Pushed by xquan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/eec8e0b192a8
Resolve counter style during parallel traversal when possible. r=heycam
Comment 13•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•