Index: ash/magnifier/magnification_controller.cc |
diff --git a/ash/magnifier/magnification_controller.cc b/ash/magnifier/magnification_controller.cc |
index 21cb63b9bd0faab7ecbf15180a1779f53dda5221..c68147d24c4576e6023c6dbf12ff2b45f91eafb1 100644 |
--- a/ash/magnifier/magnification_controller.cc |
+++ b/ash/magnifier/magnification_controller.cc |
@@ -43,9 +43,9 @@ const float kScrollScaleChangeFactor = 0.05f; |
const int kPanningMergin = 100; |
void MoveCursorTo(aura::RootWindow* root_window, |
- const gfx::Point root_location) { |
+ const gfx::Point& root_location) { |
gfx::Point3F host_location_3f(root_location); |
- root_window->layer()->transform().TransformPoint(host_location_3f); |
+ root_window->GetRootTransform().TransformPoint(host_location_3f); |
root_window->MoveCursorToHostLoation( |
gfx::ToCeiledPoint(host_location_3f.AsPointF())); |
oshima
2013/04/30 23:03:07
We have this rounding issue because we're converti
|
} |