Remove the ComputedValue traits and style_struct_traits

This commit is contained in:
Simon Sapin 2016-07-19 20:29:22 +02:00
parent b2a7e44373
commit 789807b7b0
60 changed files with 589 additions and 652 deletions

View file

@ -31,7 +31,7 @@ use url::Url;
use util::opts;
struct LocalLayoutContext {
style_context: LocalStyleContext<ServoSelectorImpl>,
style_context: LocalStyleContext,
font_context: RefCell<FontContext>,
}
@ -108,7 +108,7 @@ impl<'a> StyleContext<'a, ServoSelectorImpl> for LayoutContext<'a> {
&self.shared.style_context
}
fn local_context(&self) -> &LocalStyleContext<ServoSelectorImpl> {
fn local_context(&self) -> &LocalStyleContext {
&self.cached_local_layout_context.style_context
}
}