aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/invalidation/stylesheets.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2023-05-25 20:12:51 +0200
committerOriol Brufau <obrufau@igalia.com>2023-05-26 15:23:25 +0200
commit5fad3b4cde5a8f57dfc4cbeb52e555575529e209 (patch)
treee6577a43733dc62b8be85bfd225d39670d498542 /components/style/invalidation/stylesheets.rs
parent8eb5fa21fd515267e5eff43cfdd4ba48f345ff11 (diff)
downloadservo-5fad3b4cde5a8f57dfc4cbeb52e555575529e209.tar.gz
servo-5fad3b4cde5a8f57dfc4cbeb52e555575529e209.zip
style: Add some scaffolding for @layer rules
Not hooked anywhere yet, so this doesn't change behavior, but adds the basic data model etc. Adding parsing support requires some changes to cssparser to allow the same at rule to be block and statement-like at the same time, so better done separately. Differential Revision: https://phabricator.services.mozilla.com/D124079
Diffstat (limited to 'components/style/invalidation/stylesheets.rs')
-rw-r--r--components/style/invalidation/stylesheets.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/invalidation/stylesheets.rs b/components/style/invalidation/stylesheets.rs
index edecc3fc243..f4dc0c5a443 100644
--- a/components/style/invalidation/stylesheets.rs
+++ b/components/style/invalidation/stylesheets.rs
@@ -555,7 +555,7 @@ impl StylesheetInvalidationSet {
self.collect_invalidations_for_rule(rule, guard, device, quirks_mode)
},
- Document(..) | Import(..) | Media(..) | Supports(..) => {
+ Document(..) | Import(..) | Media(..) | Supports(..) | Layer(..) => {
if !is_generic_change &&
!EffectiveRules::is_effective(guard, device, quirks_mode, rule)
{
@@ -596,7 +596,7 @@ impl StylesheetInvalidationSet {
}
}
},
- Document(..) | Namespace(..) | Import(..) | Media(..) | Supports(..) => {
+ Document(..) | Namespace(..) | Import(..) | Media(..) | Supports(..) | Layer(..) => {
// Do nothing, relevant nested rules are visited as part of the
// iteration.
},