Closed
Bug 1296432
Opened 8 years ago
Closed 7 years ago
stylo: Avoid probing pseudo-elements unconditionally for every element
Categories
(Core :: CSS Parsing and Computation, defect, P4)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox57 | --- | fixed |
People
(Reporter: emilio, Unassigned)
References
(Blocks 1 open bug)
Details
In bug 1292618 incremental restyle for :before and :after is implemented probing each possible pseudo-element for each element we restyle. Seems reasonable to add a element bit to signal we have pseudo-elements to restyle to avoid doing all that work in the common case that there are none.
Comment 1•8 years ago
|
||
How and when would we accurately set this bit if we don't perform the selector matching to determine whether there is a ::before / ::after rule that matches the element?
Comment 2•8 years ago
|
||
(In reply to Cameron McCormack (:heycam) from comment #1) > How and when would we accurately set this bit if we don't perform the > selector matching to determine whether there is a ::before / ::after rule > that matches the element? I'd think we could simply set the bit from servo during traversal, no?
Comment 3•8 years ago
|
||
Of course, yes. :-)
Updated•8 years ago
|
Priority: -- → P3
Updated•7 years ago
|
Priority: P3 → P4
Reporter | ||
Comment 4•7 years ago
|
||
This is not an issue anymore.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
status-firefox57:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•