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

Unified Diff: ui/aura/window.cc

Issue 139463005: Makes Window::RecreateLayer() reset bounds (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comment Created 6 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
« no previous file with comments | « no previous file | ui/aura/window_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 8ec0e4ba7cb312d4be14e2f41e934242059e69de..4645659b3ad56ea891387eff4e9190837c33cefe 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -285,6 +285,8 @@ ui::Layer* Window::RecreateLayer() {
if (!old_layer)
return NULL;
+ bounds_.SetRect(0, 0, 0, 0);
+
old_layer->set_delegate(NULL);
layer_ = new ui::Layer(old_layer->type());
« no previous file with comments | « no previous file | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698