diff options
author | Pyfisch <pyfisch@gmail.com> | 2018-01-17 23:17:39 +0100 |
---|---|---|
committer | Pyfisch <pyfisch@gmail.com> | 2018-01-17 23:29:57 +0100 |
commit | af52233ae57af8c05eab1f60f208cf5b42a832bd (patch) | |
tree | a63d1f9a157595244252aff28e06319539e3e025 /components/layout/flow.rs | |
parent | 8c7c5f6e79c4709807d254a6367fb546f6f8e186 (diff) | |
download | servo-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.rs | 4 |
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, |