summaryrefslogtreecommitdiffstats
path: root/ash
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-25 00:59:24 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-25 00:59:24 +0000
commit43c1e90b5628aa2d9e7f82523002e2d439109289 (patch)
tree2f7befe36422f62f5085cba3dec7953249011ece /ash
parentb2012fed05262b8bfbdebbcb75a83bd1ad1a70b7 (diff)
downloadchromium_src-43c1e90b5628aa2d9e7f82523002e2d439109289.zip
chromium_src-43c1e90b5628aa2d9e7f82523002e2d439109289.tar.gz
chromium_src-43c1e90b5628aa2d9e7f82523002e2d439109289.tar.bz2
Clip the background view to the widget
BUG=342959 Review URL: https://codereview.chromium.org/208693007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259069 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r--ash/desktop_background/desktop_background_view.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ash/desktop_background/desktop_background_view.cc b/ash/desktop_background/desktop_background_view.cc
index 0f14604..b0e3149 100644
--- a/ash/desktop_background/desktop_background_view.cc
+++ b/ash/desktop_background/desktop_background_view.cc
@@ -188,6 +188,7 @@ views::Widget* CreateDesktopBackground(aura::Window* root_window,
params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW;
params.parent = root_window->GetChildById(container_id);
desktop_widget->Init(params);
+ desktop_widget->GetNativeWindow()->layer()->SetMasksToBounds(true);
desktop_widget->SetContentsView(
new LayerControlView(new DesktopBackgroundView()));
int animation_type = wallpaper_delegate->GetAnimationType();