aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/selector_parser.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2021-01-17 15:07:49 +0000
committerEmilio Cobos Álvarez <emilio@crisal.io>2021-02-26 16:44:05 +0100
commitdf7ea837d8bbed29df400374e0c862c5d80bf573 (patch)
tree3e808ddcb915e92b651f2c4bee651462ae790b3a /components/style/selector_parser.rs
parentf16305d25aea18056d8cc1423bcfe915e50204be (diff)
downloadservo-df7ea837d8bbed29df400374e0c862c5d80bf573.tar.gz
servo-df7ea837d8bbed29df400374e0c862c5d80bf573.zip
style: Allow resource:// stylesheets to use chrome-only rules.
We'll use it to use @-moz-document from plaintext.css. Differential Revision: https://phabricator.services.mozilla.com/D101516
Diffstat (limited to 'components/style/selector_parser.rs')
-rw-r--r--components/style/selector_parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/style/selector_parser.rs b/components/style/selector_parser.rs
index a8b5c3bc33e..52675abf45a 100644
--- a/components/style/selector_parser.rs
+++ b/components/style/selector_parser.rs
@@ -75,7 +75,7 @@ impl<'a> SelectorParser<'a> {
/// Whether we're parsing selectors in a stylesheet that has chrome
/// privilege.
pub fn chrome_rules_enabled(&self) -> bool {
- self.url_data.map_or(false, |d| d.is_chrome()) || self.stylesheet_origin == Origin::User
+ self.url_data.map_or(false, |d| d.chrome_rules_enabled()) || self.stylesheet_origin == Origin::User
}
}