Closed Bug 1879743 Opened 11 months ago Closed 11 months ago

Rewrite custom property substitution to avoid re-tokenization.

Categories

(Core :: CSS Parsing and Computation, task)

task

Tracking

()

RESOLVED FIXED
124 Branch
Tracking Status
firefox124 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(1 file)

This helps with bug 1850809.

This speeds up custom variable substitution by avoiding re-tokenizing,
and variable reference parsing by avoiding doing duplicate work.

This is a very noticeable improvement in the NewsSite subtests of
speedometer 3 (see comparison posted in bug 1879318 and the #perf-sp3
matrix channel). But it also probably helps most websites using lots of
variables, and the browser UI itself.

Finally, it also avoids some duplication. Now regular substitution and
fallback substitution is handled uniformly, which causes a progression
in some properties-and-values tests.

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/13676fc9b0cd Rewrite custom property substitution to avoid re-tokenization. r=zrhoffman,firefox-style-system-reviewers
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
Whiteboard: [sp3]
No longer regressions: 1881076
See Also: → 1894041
Regressions: 1894041
See Also: 1894041
Blocks: 1911109
No longer blocks: 1911109
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: