aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/query.rs
diff options
context:
space:
mode:
authorNicolas Silva <nical@fastmail.com>2017-06-06 16:19:27 +0200
committerNicolas Silva <nical@fastmail.com>2017-06-14 16:01:01 +0200
commit997608f11f6dfa79291ead25cae46a0538f2a3dc (patch)
treec231afafc66f7f3e2404769e083c176d2a13057d /components/layout/query.rs
parent8617320500491fab91979404cec2087bac7ef362 (diff)
downloadservo-997608f11f6dfa79291ead25cae46a0538f2a3dc.tar.gz
servo-997608f11f6dfa79291ead25cae46a0538f2a3dc.zip
Make BaseFlow::stacking_relative_position a vector.
Diffstat (limited to 'components/layout/query.rs')
-rw-r--r--components/layout/query.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/query.rs b/components/layout/query.rs
index 2f406261c2d..ae7a506124b 100644
--- a/components/layout/query.rs
+++ b/components/layout/query.rs
@@ -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()