Index: ui/aura/window_tree_host.cc |
diff --git a/ui/aura/window_tree_host.cc b/ui/aura/window_tree_host.cc |
index 4deb5fcd2fd3b990ce6a26eaf65a0e78decb02cb..7b45902646d76c33e8bfebc83b7a001ad109e0c8 100644 |
--- a/ui/aura/window_tree_host.cc |
+++ b/ui/aura/window_tree_host.cc |
@@ -181,10 +181,11 @@ void WindowTreeHost::NotifyHostResized(const gfx::Size& new_size) { |
compositor_->SetScaleAndSize(GetDeviceScaleFactorFromDisplay(window()), |
new_size); |
+ gfx::Size layer_size = GetBounds().size(); |
// The layer, and the observers should be notified of the |
// transformed size of the root window. |
- UpdateRootWindowSize(new_size); |
- delegate_->OnHostResized(new_size); |
+ UpdateRootWindowSize(layer_size); |
+ delegate_->OnHostResized(layer_size); |
} |
#if defined(OS_ANDROID) |