aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/invalidation/stylesheets.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2023-06-06 17:30:03 +0200
committerOriol Brufau <obrufau@igalia.com>2023-06-09 10:22:23 +0200
commitdff8f78c4201f7ba799e00ae6cd179658e6b626b (patch)
tree983a553b6ed4703a65f141b7c4e5d73d33ae4498 /components/style/invalidation/stylesheets.rs
parent1ac55889bbbdaf504cf77f230a9c93cd2f40f428 (diff)
downloadservo-dff8f78c4201f7ba799e00ae6cd179658e6b626b.tar.gz
servo-dff8f78c4201f7ba799e00ae6cd179658e6b626b.zip
style: Update CSSOM for layer rules to the spec
Pretty mechanical. Tests are in https://wpt.live/css/css-cascade/layer-rules-cssom.html which (with a fix for @import tests which I'll submit separately) we pass. Sync for that is bug 1743936. Differential Revision: https://phabricator.services.mozilla.com/D133387
Diffstat (limited to 'components/style/invalidation/stylesheets.rs')
-rw-r--r--components/style/invalidation/stylesheets.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/style/invalidation/stylesheets.rs b/components/style/invalidation/stylesheets.rs
index 1d1111170ed..3a9017582b2 100644
--- a/components/style/invalidation/stylesheets.rs
+++ b/components/style/invalidation/stylesheets.rs
@@ -541,6 +541,7 @@ impl StylesheetInvalidationSet {
Page(..) |
Viewport(..) |
FontFeatureValues(..) |
+ LayerStatement(..) |
FontFace(..) |
Keyframes(..) |
ScrollTimeline(..) |
@@ -556,7 +557,7 @@ impl StylesheetInvalidationSet {
self.collect_invalidations_for_rule(rule, guard, device, quirks_mode)
},
- Document(..) | Import(..) | Media(..) | Supports(..) | Layer(..) => {
+ Document(..) | Import(..) | Media(..) | Supports(..) | LayerBlock(..) => {
if !is_generic_change &&
!EffectiveRules::is_effective(guard, device, quirks_mode, rule)
{
@@ -597,7 +598,8 @@ impl StylesheetInvalidationSet {
}
}
},
- Document(..) | Namespace(..) | Import(..) | Media(..) | Supports(..) | Layer(..) => {
+ Document(..) | Namespace(..) | Import(..) | Media(..) | Supports(..) |
+ LayerStatement(..) | LayerBlock(..) => {
// Do nothing, relevant nested rules are visited as part of the
// iteration.
},