aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/flow.rs
diff options
context:
space:
mode:
authorPyfisch <pyfisch@gmail.com>2018-01-17 23:17:39 +0100
committerPyfisch <pyfisch@gmail.com>2018-01-17 23:29:57 +0100
commitaf52233ae57af8c05eab1f60f208cf5b42a832bd (patch)
treea63d1f9a157595244252aff28e06319539e3e025 /components/layout/flow.rs
parent8c7c5f6e79c4709807d254a6367fb546f6f8e186 (diff)
downloadservo-af52233ae57af8c05eab1f60f208cf5b42a832bd.tar.gz
servo-af52233ae57af8c05eab1f60f208cf5b42a832bd.zip
Introduce MaxRect trait
It is implemented for LayoutRect and Rect<Au>. Replaces the max_rect() function from servo_geometry.
Diffstat (limited to 'components/layout/flow.rs')
-rw-r--r--components/layout/flow.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/flow.rs b/components/layout/flow.rs
index c16dd37ebf0..b145aef0ad6 100644
--- a/components/layout/flow.rs
+++ b/components/layout/flow.rs
@@ -43,7 +43,7 @@ use model::{CollapsibleMargins, IntrinsicISizes, MarginCollapseInfo};
use multicol::MulticolFlow;
use parallel::FlowParallelInfo;
use serde::ser::{Serialize, SerializeStruct, Serializer};
-use servo_geometry::{au_rect_to_f32_rect, f32_rect_to_au_rect, max_rect};
+use servo_geometry::{au_rect_to_f32_rect, f32_rect_to_au_rect, MaxRect};
use std::fmt;
use std::iter::Zip;
use std::slice::IterMut;
@@ -1062,7 +1062,7 @@ impl BaseFlow {
absolute_cb: ContainingBlockLink::new(),
early_absolute_position_info: EarlyAbsolutePositionInfo::new(writing_mode),
late_absolute_position_info: LateAbsolutePositionInfo::new(),
- clip: max_rect(),
+ clip: MaxRect::max_rect(),
flags: flags,
writing_mode: writing_mode,
thread_id: 0,