diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-06-11 20:51:07 -0700 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-06-13 12:28:21 -0700 |
commit | 5c408d2be92374b2dfce0686339e132ff4cf0e4c (patch) | |
tree | 1b8b3155610994fe31a749e997819252c5b47a56 /components/script/script_task.rs | |
parent | a9aa50683fec9ade7969e1ed29a9bc21d798f97e (diff) | |
download | servo-5c408d2be92374b2dfce0686339e132ff4cf0e4c.tar.gz servo-5c408d2be92374b2dfce0686339e132ff4cf0e4c.zip |
rust-geom API changes
https://github.com/servo/rust-geom/pull/81
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs index 1d7b65ba1b4..323954521d6 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -1340,7 +1340,7 @@ impl ScriptTask { fn scroll_fragment_point(&self, pipeline_id: PipelineId, node: JSRef<Element>) { let node: JSRef<Node> = NodeCast::from_ref(node); let rect = node.get_bounding_content_box(); - let point = Point2D(rect.origin.x.to_f32_px(), rect.origin.y.to_f32_px()); + let point = Point2D::new(rect.origin.x.to_f32_px(), rect.origin.y.to_f32_px()); // FIXME(#2003, pcwalton): This is pretty bogus when multiple layers are involved. // Really what needs to happen is that this needs to go through layout to ask which // layer the element belongs to, and have it send the scroll message to the |