From 997608f11f6dfa79291ead25cae46a0538f2a3dc Mon Sep 17 00:00:00 2001 From: Nicolas Silva Date: Tue, 6 Jun 2017 16:19:27 +0200 Subject: Make BaseFlow::stacking_relative_position a vector. --- components/layout/flow.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'components/layout/flow.rs') diff --git a/components/layout/flow.rs b/components/layout/flow.rs index 671d4287146..5930df5dd81 100644 --- a/components/layout/flow.rs +++ b/components/layout/flow.rs @@ -29,7 +29,7 @@ use app_units::Au; use block::{BlockFlow, FormattingContextType}; use context::LayoutContext; use display_list_builder::DisplayListBuildState; -use euclid::{Transform3D, Point2D, Rect, Size2D}; +use euclid::{Transform3D, Point2D, Vector2D, Rect, Size2D}; use flex::FlexFlow; use floats::{Floats, SpeculatedFloatPlacement}; use flow_list::{FlowList, MutFlowListIterator}; @@ -917,7 +917,7 @@ pub struct BaseFlow { /// The position of this flow relative to the start of the nearest ancestor stacking context. /// This is computed during the top-down pass of display list construction. - pub stacking_relative_position: Point2D, // TODO: this should be a Vector2D + pub stacking_relative_position: Vector2D, /// Details about descendants with position 'absolute' or 'fixed' for which we are the /// containing block. This is in tree order. This includes any direct children. @@ -1098,7 +1098,7 @@ impl BaseFlow { parallel: FlowParallelInfo::new(), floats: Floats::new(writing_mode), collapsible_margins: CollapsibleMargins::new(), - stacking_relative_position: Point2D::zero(), + stacking_relative_position: Vector2D::zero(), abs_descendants: AbsoluteDescendants::new(), speculated_float_placement_in: SpeculatedFloatPlacement::zero(), speculated_float_placement_out: SpeculatedFloatPlacement::zero(), -- cgit v1.2.3