diff options
author | Martin Robinson <mrobinson@igalia.com> | 2016-08-11 00:29:19 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-08-12 03:12:06 +0200 |
commit | 6259df5e2da6574f3d5951a7df2cb511d263697a (patch) | |
tree | f68cc95e507fc7e208a3c04de637c0914bcd9d60 /components/layout/block.rs | |
parent | b7facf41cbc7ba727666e95fd0c390d432d862fa (diff) | |
download | servo-6259df5e2da6574f3d5951a7df2cb511d263697a.tar.gz servo-6259df5e2da6574f3d5951a7df2cb511d263697a.zip |
Update to euclid 0.8
Diffstat (limited to 'components/layout/block.rs')
-rw-r--r-- | components/layout/block.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout/block.rs b/components/layout/block.rs index 62365478d2f..1dcadb8325b 100644 --- a/components/layout/block.rs +++ b/components/layout/block.rs @@ -61,7 +61,7 @@ use style::logical_geometry::{LogicalPoint, LogicalRect, LogicalSize, WritingMod use style::properties::ServoComputedValues; use style::values::computed::{LengthOrNone, LengthOrPercentageOrNone}; use style::values::computed::{LengthOrPercentage, LengthOrPercentageOrAuto}; -use util::geometry::MAX_RECT; +use util::geometry::max_rect; /// The number of screens of data we're allowed to generate display lists for in each direction. const DISPLAY_PORT_SIZE_FACTOR: i32 = 8; @@ -1842,7 +1842,7 @@ impl Flow for BlockFlow { if self.is_root() { self.base.clip = ClippingRegion::max(); - self.base.stacking_relative_position_of_display_port = MAX_RECT; + self.base.stacking_relative_position_of_display_port = max_rect(); } let transform_style = self.fragment.style().get_used_transform_style(); @@ -1855,7 +1855,7 @@ impl Flow for BlockFlow { (overflow_x::T::auto, _) | (overflow_x::T::scroll, _) | (_, overflow_x::T::auto) | (_, overflow_x::T::scroll) => { self.base.clip = ClippingRegion::max(); - self.base.stacking_relative_position_of_display_port = MAX_RECT; + self.base.stacking_relative_position_of_display_port = max_rect(); } _ => {} } |