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

Unified Diff: ui/views/cocoa/bridged_native_widget.mm

Issue 2336983002: MacViews: Trigger shadow invalidation when a translucent window is shown. (Closed)
Patch Set: Remove patch dependency. Created 4 years, 3 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
« no previous file with comments | « no previous file | ui/views/widget/native_widget_mac_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « no previous file | ui/views/widget/native_widget_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698