diff options
author | Pu Xingyu <pu.stshine@gmail.com> | 2016-11-08 23:33:56 +0800 |
---|---|---|
committer | Pu Xingyu <pu.stshine@gmail.com> | 2016-11-10 19:17:29 +0800 |
commit | eb22d33d4e8370d4393b8bebd633eb4687a7e3f9 (patch) | |
tree | cd5f961a4c06681915b7b3220b43caf867830263 /components/layout/model.rs | |
parent | 29a55e5cbd36e57cd1fad20898200fe2470d7db1 (diff) | |
download | servo-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/model.rs')
-rw-r--r-- | components/layout/model.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/components/layout/model.rs b/components/layout/model.rs index d57bb2628fa..a0693e0d8f8 100644 --- a/components/layout/model.rs +++ b/components/layout/model.rs @@ -504,13 +504,6 @@ impl ToGfxMatrix for ComputedMatrix { } } -// Used to specify the logical direction. -#[derive(Debug, Clone, Copy, PartialEq)] -pub enum Direction { - Inline, - Block -} - // https://drafts.csswg.org/css2/visudet.html#min-max-widths // https://drafts.csswg.org/css2/visudet.html#min-max-heights /// A min or max constraint |