diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2016-07-19 20:29:22 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2016-07-20 08:42:40 +0200 |
commit | 789807b7b09e0742a197c98efd2f81b85b751a57 (patch) | |
tree | e093027760cf23719d9f6b3e279eab46e9b3168f /components/layout/query.rs | |
parent | b2a7e4437391abd92486d5bef879fadadabab162 (diff) | |
download | servo-789807b7b09e0742a197c98efd2f81b85b751a57.tar.gz servo-789807b7b09e0742a197c98efd2f81b85b751a57.zip |
Remove the ComputedValue traits and style_struct_traits
Diffstat (limited to 'components/layout/query.rs')
-rw-r--r-- | components/layout/query.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/layout/query.rs b/components/layout/query.rs index ea22bd966d5..7467c80fffb 100644 --- a/components/layout/query.rs +++ b/components/layout/query.rs @@ -31,7 +31,6 @@ use std::sync::{Arc, Mutex}; use string_cache::Atom; use style::computed_values; use style::logical_geometry::{WritingMode, BlockFlowDirection, InlineBaseDirection}; -use style::properties::ComputedValues; use style::properties::longhands::{display, position}; use style::properties::style_structs; use style::selector_impl::PseudoElement; @@ -450,7 +449,7 @@ impl ParentOffsetBorderBoxIterator { impl FragmentBorderBoxIterator for FragmentLocatingFragmentIterator { fn process(&mut self, fragment: &Fragment, _: i32, border_box: &Rect<Au>) { - let style_structs::ServoBorder { + let style_structs::Border { border_top_width: top_width, border_right_width: right_width, border_bottom_width: bottom_width, @@ -476,7 +475,7 @@ impl FragmentBorderBoxIterator for UnioningFragmentScrollAreaIterator { // increase in size. To work around this, we store the original elements padding // rectangle as `origin_rect` and the union of all child elements padding and // margin rectangles as `union_rect`. - let style_structs::ServoBorder { + let style_structs::Border { border_top_width: top_border, border_right_width: right_border, border_bottom_width: bottom_border, |