mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
Make BaseFlow::stacking_relative_position a vector.
This commit is contained in:
parent
8617320500
commit
997608f11f
9 changed files with 23 additions and 24 deletions
|
@ -772,7 +772,7 @@ fn process_resolved_style_request_internal<'a, N>(requested_node: N,
|
|||
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,
|
||||
flow::base(flow_ref.deref()).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