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

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..94b223122b2d385a423c3078a42b5faca4d7139a 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -715,8 +715,8 @@ void RootWindow::OnHostResized(const gfx::Size& size) {
// 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);
sadrul 2014/02/11 19:09:37 This is a good fix. Mind having a test for this?
}
synthesize_mouse_move_ = false;
}

Powered by Google App Engine
This is Rietveld 408576698