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

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

Issue 2343433005: MacViews: Modify condition for setting window alpha to 0 on initial display. (Closed)
Patch Set: 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 | no next file » | 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..c4d2d5c13841a0137a20d09212144e0559fff5a9 100644
--- a/ui/views/cocoa/bridged_native_widget.mm
+++ b/ui/views/cocoa/bridged_native_widget.mm
@@ -578,7 +578,8 @@ NSComparisonResult SubviewSorter(NSViewComparatorValue lhs,
// mouse clicks till then.
// TODO(karandeepb): Investigate whether similar technique is needed for other
// dialog types.
- if ([window_ isOpaque] && !native_widget_mac_->GetWidget()->IsModal()) {
+ if (layer() && [window_ isOpaque] &&
tapted 2016/09/19 07:35:34 This reminds me a bit of https://codereview.chromi
karandeepb 2016/09/20 08:04:51 NativeWidgetAura initializes the layer before show
+ !native_widget_mac_->GetWidget()->IsModal()) {
initial_visibility_suppressed_ = true;
[window_ setAlphaValue:0.0];
[window_ setIgnoresMouseEvents:YES];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698