Open
Bug 2062076
Opened 11 days ago
Updated 10 days ago
Bail out of a SelectorMap when no rule in it can match the element's local name
Categories
(Core :: CSS Parsing and Computation, enhancement)
Core
CSS Parsing and Computation
Tracking
()
ASSIGNED
People
(Reporter: mayankleoboy1, Assigned: mayankleoboy1)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
No description provided.
| Assignee | ||
Comment 1•11 days ago
|
||
Every ::before/::after rule in the UA sheets requires one of q, img, input,
option or optgroup, so matching those pseudos for anything else walks every
bucket of that map for nothing. Accumulate a bloom of the local names a map
requires as rules are inserted, and check it before the bucket lookups.
The filter is only as good as its weakest rule: one selector that can match any
local name saturates the whole map, which is the common case for author sheets.
| Assignee | ||
Comment 2•11 days ago
•
|
||
Updated•10 days ago
|
Assignee: nobody → mayankleoboy1
Attachment #9624599 -
Attachment description: WIP: Bug 2062076 - Bail out of a SelectorMap when no rule in it can match the element's local name. r=#firefox-style-system-reviewers → Bug 2062076 - Bail out of a SelectorMap when no rule in it can match the element's local name. r=#firefox-style-system-reviewers
Status: NEW → ASSIGNED
| Assignee | ||
Comment 3•10 days ago
|
||
Updated•10 days ago
|
Attachment #9624599 -
Attachment description: Bug 2062076 - Bail out of a SelectorMap when no rule in it can match the element's local name. r=#firefox-style-system-reviewers → WIP: Bug 2062076 - Bail out of a SelectorMap when no rule in it can match the element's local name. r=#firefox-style-system-reviewers
| Assignee | ||
Updated•10 days ago
|
Summary: One optimization for sp3-perf-dashboard → Bail out of a SelectorMap when no rule in it can match the element's local name
You need to log in
before you can comment on or make changes to this bug.
Description
•