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

Unified Diff: ash/magnifier/magnification_controller.cc

Issue 15102004: Merge 199249 "Magnifier: Prevent the cursor jumping on HiDPI dis..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1500/src/
Patch Set: Created 7 years, 7 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
« no previous file with comments | « ash/ash_root_window_transformer_unittest.cc ('k') | ash/magnifier/magnification_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/magnifier/magnification_controller.cc
===================================================================
--- ash/magnifier/magnification_controller.cc (revision 199610)
+++ ash/magnifier/magnification_controller.cc (working copy)
@@ -44,9 +44,9 @@
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->MoveCursorToHostLocation(
gfx::ToCeiledPoint(host_location_3f.AsPointF()));
}
« no previous file with comments | « ash/ash_root_window_transformer_unittest.cc ('k') | ash/magnifier/magnification_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698