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

Unified Diff: ui/aura/root_window.cc

Issue 149743006: Fix crash of OmniboxViewViewsTest.SelectAllOnClick on Linux Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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: ui/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index 128a04424d45ae084e9b6ecfbd659e1d1b42979a..9b1185048de6501a70d7ce410ba41dc0d45d0cd3 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -712,11 +712,10 @@ void RootWindow::OnHostResized(const gfx::Size& size) {
FOR_EACH_OBSERVER(RootWindowObserver, observers_,
OnWindowTreeHostResized(this));
- // Constrain the mouse position within the new root Window size.
gfx::Point point;
if (host_->QueryMouseLocation(&point)) {
- SetLastMouseLocation(window(),
- ui::ConvertPointToDIP(window()->layer(), point));
+ host_->ConvertPointFromHost(&point);
+ SetLastMouseLocation(window(), point);
}
synthesize_mouse_move_ = false;
}

Powered by Google App Engine
This is Rietveld 408576698