From 8b522f2e7d08aaf73429207cbbfd9da915f6d9a5 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 5 May 2015 18:23:29 +0200 Subject: Rename Au methods with f32/f64 instead of frac32/frac/subpx --- components/script/script_task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/script_task.rs') diff --git a/components/script/script_task.rs b/components/script/script_task.rs index 355b9d01210..0b703d8f7bd 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -1180,7 +1180,7 @@ impl ScriptTask { fn scroll_fragment_point(&self, pipeline_id: PipelineId, node: JSRef) { let node: JSRef = NodeCast::from_ref(node); let rect = node.get_bounding_content_box(); - let point = Point2D(rect.origin.x.to_frac32_px(), rect.origin.y.to_frac32_px()); + let point = Point2D(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 -- cgit v1.2.3