Open Bug 2046399 Opened 3 months ago Updated 3 months ago

Consider re-using SelectorCaches for tree-counting functions

Categories

(Core :: CSS Parsing and Computation, task)

task

Tracking

()

People

(Reporter: sajidanwar, Unassigned)

References

Details

In Bug 2045138, I introduced a separate TreeCountingCaches struct for caching sibling-index() and sibling-count(). Consider replacing this with the existing SelectorCaches::NthIndexCache, since these functions are supposed to count the same things as :nth-child.

You need to log in before you can comment on or make changes to this bug.