Chromium Code Reviews| Index: views/widget/widget.cc |
| diff --git a/views/widget/widget.cc b/views/widget/widget.cc |
| index 9ce902a5d0dabdd83ad21fbe1a0701f8dcb642b2..dfab1648cc6b6829c3b57d89c0ce3f234186bee9 100644 |
| --- a/views/widget/widget.cc |
| +++ b/views/widget/widget.cc |
| @@ -870,9 +870,13 @@ 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)); |
| + ui::Compositor* compositor = GetCompositor(); |
| + if (compositor && root->layer()) |
|
Ben Goodger (Google)
2011/10/09 20:03:51
if (GetCompositor() && root->layer())
sadrul
2011/10/10 00:02:18
Done.
|
| + root->layer()->SetVisible(visible); |
| } |
| void Widget::OnNativeWidgetCreated() { |