Chromium Code Reviews| Index: ui/views/cocoa/bridged_native_widget.mm |
| diff --git a/ui/views/cocoa/bridged_native_widget.mm b/ui/views/cocoa/bridged_native_widget.mm |
| index d4e0125716d49df204a2ff73a0446574c4832144..1e52938b0105af2cc27eca687a4f0351a327c918 100644 |
| --- a/ui/views/cocoa/bridged_native_widget.mm |
| +++ b/ui/views/cocoa/bridged_native_widget.mm |
| @@ -841,6 +841,11 @@ NSComparisonResult SubviewSorter(NSViewComparatorValue lhs, |
| layer()->SchedulePaint(gfx::Rect(GetClientAreaSize())); |
| } |
| + // For translucent windows which are made visible, recalculate shadow when the |
|
tapted
2016/09/15 04:12:26
this probably belongs in the if (layer()) block ab
karandeepb
2016/09/15 06:30:10
Done. I probably need to do this for the initial_v
tapted
2016/09/15 06:37:41
The most concrete answer is that there are tests t
|
| + // frame from the compositor arrives. |
| + if (![window_ isOpaque]) |
| + invalidate_shadow_on_frame_swap_ = window_visible_; |
| + |
| NotifyVisibilityChangeDown(); |
| native_widget_mac_->GetWidget()->OnNativeWidgetVisibilityChanged( |