diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2015-05-05 18:23:29 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2015-05-05 18:23:29 +0200 |
commit | 8b522f2e7d08aaf73429207cbbfd9da915f6d9a5 (patch) | |
tree | c4c7e7247ac5685aa4ec5048187132492b8eb6b9 /components/script/script_task.rs | |
parent | 32d5e24922e47322bf67c100fa4c178bc9b430f4 (diff) | |
download | servo-8b522f2e7d08aaf73429207cbbfd9da915f6d9a5.tar.gz servo-8b522f2e7d08aaf73429207cbbfd9da915f6d9a5.zip |
Rename Au methods with f32/f64 instead of frac32/frac/subpx
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 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<Element>) { let node: JSRef<Node> = 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 |