diff options
author | Bobby Holley <bobbyholley@gmail.com> | 2017-05-02 16:22:10 -0700 |
---|---|---|
committer | Bobby Holley <bobbyholley@gmail.com> | 2017-05-02 17:35:45 -0700 |
commit | 7b0679848b177ead3a87171d0224e05ecadd8006 (patch) | |
tree | 69ecc07d8293ca15f04dd066da132cad31414161 /components/script/stylesheet_loader.rs | |
parent | d78ca4c4f9f1866204cbb420b284be1cbc137712 (diff) | |
download | servo-7b0679848b177ead3a87171d0224e05ecadd8006.tar.gz servo-7b0679848b177ead3a87171d0224e05ecadd8006.zip |
Fix up script and layout.
Diffstat (limited to 'components/script/stylesheet_loader.rs')
-rw-r--r-- | components/script/stylesheet_loader.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/stylesheet_loader.rs b/components/script/stylesheet_loader.rs index 14b8c385e39..3143d8b34ad 100644 --- a/components/script/stylesheet_loader.rs +++ b/components/script/stylesheet_loader.rs @@ -24,9 +24,10 @@ use net_traits::request::{CorsSettings, CredentialsMode, Destination, RequestIni use network_listener::{NetworkListener, PreInvoke}; use servo_url::ServoUrl; use std::mem; -use std::sync::{Arc, Mutex}; +use std::sync::Mutex; use style::media_queries::MediaList; use style::shared_lock::Locked as StyleLocked; +use style::stylearc::Arc; use style::stylesheets::{ImportRule, Stylesheet, Origin}; use style::stylesheets::StylesheetLoader as StyleStylesheetLoader; @@ -207,7 +208,7 @@ impl<'a> StylesheetLoader<'a> { let document = document_from_node(self.elem); let gen = self.elem.downcast::<HTMLLinkElement>() .map(HTMLLinkElement::get_request_generation_id); - let context = Arc::new(Mutex::new(StylesheetContext { + let context = ::std::sync::Arc::new(Mutex::new(StylesheetContext { elem: Trusted::new(&*self.elem), source: source, url: url.clone(), |