Commit Graph

2 Commits

Author SHA1 Message Date
Andreas Kling
1e59f8aafc LibWeb: Cache the qualified layer name in CSSRule
This makes cascade layer filtering take <2% of CPU time when loading
https://vercel.com instead of 30%.

(cherry picked from commit 44e4ea3d7aaf9aed6ad09cc9f049b2842e3e0d28)
2024-10-31 08:56:58 -04:00
Sam Atkins
068d7236cc LibWeb/CSS: Add CSSOM types for @layer rules
Depending on usage, `@layer` has two forms, with two different CSSOM
types. One simply lists layer names and the other defines a layer with
its contained rules.

(cherry picked from commit 1c6133aa523fe29c25b11284d8b3353de0a03c0f)
2024-10-20 21:09:21 -04:00