diff options
author | Hiroyuki Ikezoe <hikezoe@mozilla.com> | 2017-05-13 18:33:48 +0900 |
---|---|---|
committer | Hiroyuki Ikezoe <hikezoe@mozilla.com> | 2017-05-14 07:15:19 +0900 |
commit | b6b3187efa34a13929b39a7c58d5756dc26f630f (patch) | |
tree | b7fc5031828faa40ed1374e7bae862e6fa8e5528 /components/script/dom/csssupportsrule.rs | |
parent | fcc50ea421f54893d41481e9d95cb4e3b29831ee (diff) | |
download | servo-b6b3187efa34a13929b39a7c58d5756dc26f630f.tar.gz servo-b6b3187efa34a13929b39a7c58d5756dc26f630f.zip |
Make ParsingMode bitflags.
assert_parsing_mode_match() is mostly the same as
assert_restyle_hints_match().
Diffstat (limited to 'components/script/dom/csssupportsrule.rs')
-rw-r--r-- | components/script/dom/csssupportsrule.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/csssupportsrule.rs b/components/script/dom/csssupportsrule.rs index 23502a3b8c8..cba47f0acd7 100644 --- a/components/script/dom/csssupportsrule.rs +++ b/components/script/dom/csssupportsrule.rs @@ -13,7 +13,7 @@ use dom::cssrule::SpecificCSSRule; use dom::cssstylesheet::CSSStyleSheet; use dom::window::Window; use dom_struct::dom_struct; -use style::parser::{ParsingMode, ParserContext}; +use style::parser::{PARSING_MODE_DEFAULT, ParserContext}; use style::shared_lock::{Locked, ToCssWithGuard}; use style::stylearc::Arc; use style::stylesheets::{CssRuleType, SupportsRule}; @@ -63,7 +63,7 @@ impl CSSSupportsRule { let url = win.Document().url(); let quirks_mode = win.Document().quirks_mode(); let context = ParserContext::new_for_cssom(&url, win.css_error_reporter(), Some(CssRuleType::Supports), - ParsingMode::Default, + PARSING_MODE_DEFAULT, quirks_mode); let enabled = cond.eval(&context); let mut guard = self.cssconditionrule.shared_lock().write(); |