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)

defect

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.
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?
(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?
Of course, yes. :-)
Priority: -- → P3
Priority: P3 → P4
This is not an issue anymore.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.