aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
diff options
context:
space:
mode:
authorPu Xingyu <pu.stshine@gmail.com>2016-11-08 23:33:56 +0800
committerPu Xingyu <pu.stshine@gmail.com>2016-11-10 19:17:29 +0800
commiteb22d33d4e8370d4393b8bebd633eb4687a7e3f9 (patch)
treecd5f961a4c06681915b7b3220b43caf867830263 /components/layout/construct.rs
parent29a55e5cbd36e57cd1fad20898200fe2470d7db1 (diff)
downloadservo-eb22d33d4e8370d4393b8bebd633eb4687a7e3f9.tar.gz
servo-eb22d33d4e8370d4393b8bebd633eb4687a7e3f9.zip
style: Add a "start_end()" method to LogicalMargin
Add a `LogicalMargin::start_end()` method that receives a `Direction' parameter. This is useful for some layout that is symmetric in inline and block directions, like flexbox.
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r--components/layout/construct.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs
index 086b323e878..9e221dfb172 100644
--- a/components/layout/construct.rs
+++ b/components/layout/construct.rs
@@ -34,7 +34,6 @@ use inline::{FIRST_FRAGMENT_OF_ELEMENT, InlineFlow};
use inline::{InlineFragmentNodeInfo, LAST_FRAGMENT_OF_ELEMENT};
use linked_list::prepend_from;
use list_item::{ListItemFlow, ListStyleTypeContent};
-use model::Direction;
use multicol::{MulticolColumnFlow, MulticolFlow};
use parallel;
use script_layout_interface::{LayoutElementType, LayoutNodeType, is_image_data};
@@ -49,6 +48,7 @@ use style::computed_values::{caption_side, display, empty_cells, float, list_sty
use style::computed_values::content::ContentItem;
use style::computed_values::position;
use style::context::SharedStyleContext;
+use style::logical_geometry::Direction;
use style::properties::{self, ServoComputedValues};
use style::selector_impl::{PseudoElement, RestyleDamage};
use style::selector_matching::Stylist;