diff options
Diffstat (limited to 'components/layout/layout_thread.rs')
-rw-r--r-- | components/layout/layout_thread.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/components/layout/layout_thread.rs b/components/layout/layout_thread.rs index aaa6a1e98c0..a540039c51b 100644 --- a/components/layout/layout_thread.rs +++ b/components/layout/layout_thread.rs @@ -62,13 +62,15 @@ use std::sync::mpsc::{channel, Sender, Receiver}; use std::sync::{Arc, Mutex, MutexGuard, RwLock}; use style::animation::Animation; use style::computed_values::{filter, mix_blend_mode}; -use style::context::{SharedStyleContext, StylistWrapper, ReflowGoal}; +use style::context::{ReflowGoal, StylistWrapper}; use style::dom::{TDocument, TElement, TNode}; use style::error_reporting::ParseErrorReporter; use style::media_queries::{Device, MediaType}; use style::parallel::WorkQueueData; -use style::selector_matching::{Stylist, USER_OR_USER_AGENT_STYLESHEETS}; -use style::stylesheets::{CSSRuleIteratorExt, Stylesheet}; +use style::selector_impl::ServoSelectorImpl; +use style::selector_matching::USER_OR_USER_AGENT_STYLESHEETS; +use style::servo::{SharedStyleContext, Stylesheet, Stylist}; +use style::stylesheets::CSSRuleIteratorExt; use traversal::RecalcStyleAndConstructFlows; use url::Url; use util::geometry::MAX_RECT; @@ -477,7 +479,7 @@ impl LayoutThread { style_context: SharedStyleContext { viewport_size: self.viewport_size.clone(), screen_size_changed: screen_size_changed, - stylist: StylistWrapper(&*rw_data.stylist), + stylist: StylistWrapper::<ServoSelectorImpl>(&*rw_data.stylist), generation: self.generation, goal: goal, new_animations_sender: Mutex::new(self.new_animations_sender.clone()), |