diff options
author | Xidorn Quan <me@upsuper.org> | 2017-04-03 21:17:13 +1000 |
---|---|---|
committer | Xidorn Quan <me@upsuper.org> | 2017-04-03 21:57:16 +1000 |
commit | 37585309e91f8c460c15b5ce82845e1953743833 (patch) | |
tree | 508c3afbe1b686a41b183c0f8997a03dcfe41147 /components/script/stylesheet_loader.rs | |
parent | a097a293b5b5caf6013bf28534d7a5d3b96acbf0 (diff) | |
download | servo-37585309e91f8c460c15b5ce82845e1953743833.tar.gz servo-37585309e91f8c460c15b5ce82845e1953743833.zip |
Use a UrlExtraData type alias to unify url handling logic.
Diffstat (limited to 'components/script/stylesheet_loader.rs')
-rw-r--r-- | components/script/stylesheet_loader.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/components/script/stylesheet_loader.rs b/components/script/stylesheet_loader.rs index 4c2f06322a4..9185bb7f134 100644 --- a/components/script/stylesheet_loader.rs +++ b/components/script/stylesheet_loader.rs @@ -27,7 +27,6 @@ use servo_url::ServoUrl; use std::mem; use std::sync::{Arc, Mutex}; use style::media_queries::MediaList; -use style::parser::ParserContextExtraData; use style::shared_lock::Locked as StyleLocked; use style::stylesheets::{ImportRule, Stylesheet, Origin}; use style::stylesheets::StylesheetLoader as StyleStylesheetLoader; @@ -146,8 +145,7 @@ impl FetchResponseListener for StylesheetContext { media.take().unwrap(), shared_lock, Some(&loader), - win.css_error_reporter(), - ParserContextExtraData::default())); + win.css_error_reporter())); if link.is_alternate() { sheet.set_disabled(true); @@ -164,8 +162,7 @@ impl FetchResponseListener for StylesheetContext { protocol_encoding_label, Some(environment_encoding), Some(&loader), - win.css_error_reporter(), - ParserContextExtraData::default()); + win.css_error_reporter()); } } |