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

Unified Diff: views/widget/widget.cc

Issue 8202026: views: Some more layer change, and add/update some tests for layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 2 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
« views/controls/native_control_gtk.cc ('K') | « views/widget/native_widget_gtk.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/widget.cc
diff --git a/views/widget/widget.cc b/views/widget/widget.cc
index 9ce902a5d0dabdd83ad21fbe1a0701f8dcb642b2..8baf11c383d8c0a8c3dae552904402a0dc15f56c 100644
--- a/views/widget/widget.cc
+++ b/views/widget/widget.cc
@@ -870,9 +870,12 @@ void Widget::OnNativeBlur(gfx::NativeView focused_view) {
}
void Widget::OnNativeWidgetVisibilityChanged(bool visible) {
- GetRootView()->PropagateVisibilityNotifications(GetRootView(), visible);
+ View* root = GetRootView();
+ root->PropagateVisibilityNotifications(root, visible);
FOR_EACH_OBSERVER(Observer, observers_,
OnWidgetVisibilityChanged(this, visible));
+ if (GetCompositor() && root->layer())
+ root->layer()->SetVisible(visible);
}
void Widget::OnNativeWidgetCreated() {
« views/controls/native_control_gtk.cc ('K') | « views/widget/native_widget_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698