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

Unified Diff: ui/aura/window.cc

Issue 2583873002: Correctly update the popup window position (Closed)
Patch Set: test added Created 3 years, 11 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/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index c2d515bac08495469464843f782b0114f15c29f4..db48036f84dc875517ff0b947db2daa4eb65fb7f 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -313,8 +313,11 @@ void Window::SetBoundsInScreen(const gfx::Rect& new_bounds_in_screen,
if (root) {
aura::client::ScreenPositionClient* screen_position_client =
aura::client::GetScreenPositionClient(root);
- screen_position_client->SetBounds(this, new_bounds_in_screen, dst_display);
- return;
+ if (screen_position_client) {
+ screen_position_client->SetBounds(this, new_bounds_in_screen,
+ dst_display);
+ return;
+ }
}
SetBounds(new_bounds_in_screen);
}

Powered by Google App Engine
This is Rietveld 408576698