diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2023-05-25 20:12:51 +0200 |
---|---|---|
committer | Oriol Brufau <obrufau@igalia.com> | 2023-05-26 15:23:25 +0200 |
commit | 5fad3b4cde5a8f57dfc4cbeb52e555575529e209 (patch) | |
tree | e6577a43733dc62b8be85bfd225d39670d498542 /components/style/invalidation/stylesheets.rs | |
parent | 8eb5fa21fd515267e5eff43cfdd4ba48f345ff11 (diff) | |
download | servo-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.rs | 4 |
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. }, |