aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/context.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/context.rs')
-rw-r--r--components/layout/context.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/components/layout/context.rs b/components/layout/context.rs
index 08237579626..02d4bdd8b8d 100644
--- a/components/layout/context.rs
+++ b/components/layout/context.rs
@@ -24,14 +24,12 @@ use std::collections::HashMap;
use std::hash::BuildHasherDefault;
use std::rc::Rc;
use std::sync::{Arc, Mutex, RwLock};
-use style::context::{LocalStyleContext, StyleContext};
-use style::selector_impl::ServoSelectorImpl;
-use style::servo::SharedStyleContext;
+use style::context::{LocalStyleContext, StyleContext, SharedStyleContext};
use url::Url;
use util::opts;
struct LocalLayoutContext {
- style_context: LocalStyleContext<ServoSelectorImpl>,
+ style_context: LocalStyleContext,
font_context: RefCell<FontContext>,
}
@@ -103,12 +101,12 @@ pub struct LayoutContext<'a> {
cached_local_layout_context: Rc<LocalLayoutContext>,
}
-impl<'a> StyleContext<'a, ServoSelectorImpl> for LayoutContext<'a> {
+impl<'a> StyleContext<'a> for LayoutContext<'a> {
fn shared_context(&self) -> &'a SharedStyleContext {
&self.shared.style_context
}
- fn local_context(&self) -> &LocalStyleContext<ServoSelectorImpl> {
+ fn local_context(&self) -> &LocalStyleContext {
&self.cached_local_layout_context.style_context
}
}