diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2021-02-26 12:40:48 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2021-02-26 17:53:55 +0100 |
commit | 31e8e418ea888b3366128ba42a9c771780f97e87 (patch) | |
tree | f47d0f809e944341d1ea6a724153c2e7386ca2ba /components/script/dom/csssupportsrule.rs | |
parent | 5158f658104c1edbb87a94958c4ab424d3b854b4 (diff) | |
download | servo-31e8e418ea888b3366128ba42a9c771780f97e87.tar.gz servo-31e8e418ea888b3366128ba42a9c771780f97e87.zip |
Miscellaneous build / tidy fixes.
Diffstat (limited to 'components/script/dom/csssupportsrule.rs')
-rw-r--r-- | components/script/dom/csssupportsrule.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/csssupportsrule.rs b/components/script/dom/csssupportsrule.rs index c462faf7eba..8a028e9efb2 100644 --- a/components/script/dom/csssupportsrule.rs +++ b/components/script/dom/csssupportsrule.rs @@ -16,7 +16,7 @@ use servo_arc::Arc; use style::parser::ParserContext; use style::shared_lock::{Locked, ToCssWithGuard}; use style::stylesheets::supports_rule::SupportsCondition; -use style::stylesheets::{CssRuleType, SupportsRule}; +use style::stylesheets::{CssRuleType, Origin, SupportsRule}; use style_traits::{ParsingMode, ToCss}; #[dom_struct] @@ -71,7 +71,8 @@ impl CSSSupportsRule { let win = global.as_window(); let url = win.Document().url(); let quirks_mode = win.Document().quirks_mode(); - let context = ParserContext::new_for_cssom( + let context = ParserContext::new( + Origin::Author, &url, Some(CssRuleType::Supports), ParsingMode::DEFAULT, |