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

Unified Diff: services/ui/ws/display.cc

Issue 2491493004: Fix root ServerWindow size. (Closed)
Patch Set: Fixes. Created 4 years, 1 month 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 | « services/ui/ws/display.h ('k') | services/ui/ws/display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/display.cc
diff --git a/services/ui/ws/display.cc b/services/ui/ws/display.cc
index d9b1c1e72b1cd45f6f20a3bf607e326f9dbb97c6..e5ac37f12ec38ab925e6418835b0b0c635bb0d27 100644
--- a/services/ui/ws/display.cc
+++ b/services/ui/ws/display.cc
@@ -295,11 +295,11 @@ void Display::OnNativeCaptureLost() {
}
void Display::OnViewportMetricsChanged(
- const display::ViewportMetrics& new_metrics) {
- if (!root_ || root_->bounds().size() == new_metrics.bounds.size())
+ const display::ViewportMetrics& metrics) {
+ if (root_->bounds().size() == metrics.pixel_size)
return;
- gfx::Rect new_bounds(new_metrics.bounds.size());
+ gfx::Rect new_bounds(metrics.pixel_size);
root_->SetBounds(new_bounds);
for (auto& pair : window_manager_display_root_map_)
pair.second->root()->SetBounds(new_bounds);
« no previous file with comments | « services/ui/ws/display.h ('k') | services/ui/ws/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698