Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Unified Diff: ash/magnifier/magnification_controller.cc

Issue 14466005: Magnifier: Prevent the cursor jumping on HiDPI display. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
}

Powered by Google App Engine
This is Rietveld 408576698