servo: Merge #6349 - rust-geom API changes (from frewsxcv:geom-api-changes); r=pcwalton
Shouldn't be merged until these have merged: https://github.com/servo/rust-geom/pull/81 https://github.com/ecoal95/rust-offscreen-rendering-context/pull/13 https://github.com/servo/rust-layers/pull/178 ~~I'll also need to update the Cargo lock files once they merge~~ Source-Repo: https://github.com/servo/servo Source-Revision: cfcd8589d06935f83b903f76477ea03e4d4652d0
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user