mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Turn flow::base and friends into methods
This commit is contained in:
parent
26feea3be5
commit
c60cfc5a9f
20 changed files with 211 additions and 212 deletions
|
@ -8,7 +8,7 @@ use app_units::Au;
|
|||
use construct::ConstructionResult;
|
||||
use context::LayoutContext;
|
||||
use euclid::{Point2D, Vector2D, Rect, Size2D};
|
||||
use flow::{self, Flow};
|
||||
use flow::{Flow, GetBaseFlow};
|
||||
use fragment::{Fragment, FragmentBorderBoxIterator, SpecificFragmentInfo};
|
||||
use gfx::display_list::{DisplayList, OpaqueNode, ScrollOffsetMap};
|
||||
use inline::InlineFragmentNodeFlags;
|
||||
|
@ -774,7 +774,7 @@ where
|
|||
let position = maybe_data.map_or(Point2D::zero(), |data| {
|
||||
match (*data).flow_construction_result {
|
||||
ConstructionResult::Flow(ref flow_ref, _) =>
|
||||
flow::base(flow_ref.deref()).stacking_relative_position.to_point(),
|
||||
flow_ref.deref().base().stacking_relative_position.to_point(),
|
||||
// TODO(dzbarsky) search parents until we find node with a flow ref.
|
||||
// https://github.com/servo/servo/issues/8307
|
||||
_ => Point2D::zero()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue