diff options
author | yusukes@chromium.org <yusukes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-11 00:30:53 +0000 |
---|---|---|
committer | yusukes@chromium.org <yusukes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-11 00:30:53 +0000 |
commit | 09f32904853af5a0812ae6d2dbc3e5c4b00fa7ac (patch) | |
tree | e42af0eb804ef783a80d219d59f8bb64d0278bfb /ash/wm/window_animations.cc | |
parent | e0535b0393452e6fc8fb1fd71f256bc5f132cb1f (diff) | |
download | chromium_src-09f32904853af5a0812ae6d2dbc3e5c4b00fa7ac.zip chromium_src-09f32904853af5a0812ae6d2dbc3e5c4b00fa7ac.tar.gz chromium_src-09f32904853af5a0812ae6d2dbc3e5c4b00fa7ac.tar.bz2 |
Modify r154335 to fix crbug.com/146394#c4 .
Add the second parameter |set_bounds| to wm::RecreateWindowLayers() so that the caller could ask the function to resize all layers when needed.
It seems that calling SetBounds for the parent window does not repaint the layers of its children.
BUG=146394
TEST=checked on lumpy with an external monitor
Review URL: https://chromiumcodereview.appspot.com/10907157
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155882 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/window_animations.cc')
-rw-r--r-- | ash/wm/window_animations.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ash/wm/window_animations.cc b/ash/wm/window_animations.cc index 98c98bc..eb94494 100644 --- a/ash/wm/window_animations.cc +++ b/ash/wm/window_animations.cc @@ -912,7 +912,7 @@ void CrossFadeToBounds(aura::Window* window, const gfx::Rect& new_bounds) { // Create fresh layers for the window and all its children to paint into. // Takes ownership of the old layer and all its children, which will be // cleaned up after the animation completes. - ui::Layer* old_layer = wm::RecreateWindowLayers(window); + ui::Layer* old_layer = wm::RecreateWindowLayers(window, false); ui::Layer* new_layer = window->layer(); // Resize the window to the new size, which will force a layout and paint. |