diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2016-11-21 19:11:35 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2016-11-22 14:50:21 +0100 |
commit | 82b13d50e356ff3fc0eb90b49258be321c7ea795 (patch) | |
tree | c7dee14c45289bb2b77a5e046defc0a2031587ad /components/style/parser.rs | |
parent | a89ba50180532bc652db7ff649f252ffdca33177 (diff) | |
download | servo-82b13d50e356ff3fc0eb90b49258be321c7ea795.tar.gz servo-82b13d50e356ff3fc0eb90b49258be321c7ea795.zip |
Update to selectors 0.15
Diffstat (limited to 'components/style/parser.rs')
-rw-r--r-- | components/style/parser.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/components/style/parser.rs b/components/style/parser.rs index 61921a2cd30..c847e082ace 100644 --- a/components/style/parser.rs +++ b/components/style/parser.rs @@ -8,8 +8,6 @@ use cssparser::{Parser, SourcePosition}; use error_reporting::ParseErrorReporter; #[cfg(feature = "gecko")] use gecko_bindings::sugar::refptr::{GeckoArcPrincipal, GeckoArcURI}; -use selector_parser::TheSelectorImpl; -use selectors::parser::ParserContext as SelectorParserContext; use servo_url::ServoUrl; use stylesheets::Origin; @@ -38,7 +36,6 @@ impl ParserContextExtraData { pub struct ParserContext<'a> { pub stylesheet_origin: Origin, pub base_url: &'a ServoUrl, - pub selector_context: SelectorParserContext<TheSelectorImpl>, pub error_reporter: Box<ParseErrorReporter + Send>, pub extra_data: ParserContextExtraData, } @@ -48,12 +45,9 @@ impl<'a> ParserContext<'a> { error_reporter: Box<ParseErrorReporter + Send>, extra_data: ParserContextExtraData) -> ParserContext<'a> { - let mut selector_context = SelectorParserContext::new(); - selector_context.in_user_agent_stylesheet = stylesheet_origin == Origin::UserAgent; ParserContext { stylesheet_origin: stylesheet_origin, base_url: base_url, - selector_context: selector_context, error_reporter: error_reporter, extra_data: extra_data, } |