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

Issue 2407153004: MacViews: Don't set window's alpha to 0 if window is already visible. (Closed)

Created:
4 years, 2 months ago by atimoxin
Modified:
4 years, 2 months ago
Reviewers:
tapted
CC:
chromium-reviews, tfarina, karandeepb
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Don't set window's alpha to 0 if window is already visible. Currently repeated calls to Show() a Widget cause a flash. This is because of flag initial_visibility_suppressed_ in BridgedNativeWidget which was added in r417863 to show some dialogs with an alpha value of 0 initially, till the frames from the compositor arrive. See http://crbug.com/623950#c18 To fix the problem this patch adds an additional check, so this logic would be applied only if window isn't already visible. BUG=654961 Committed: https://crrev.com/2b3fd8fa7e745eda9e69f49190f372aba03687d7 Cr-Commit-Position: refs/heads/master@{#424974}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Check window's visibility before setting alpha to 0 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M ui/views/cocoa/bridged_native_widget.mm View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (10 generated)
atimoxin
4 years, 2 months ago (2016-10-11 15:32:43 UTC) #3
tapted
https://codereview.chromium.org/2407153004/diff/1/ui/views/cocoa/bridged_native_widget.mm File ui/views/cocoa/bridged_native_widget.mm (right): https://codereview.chromium.org/2407153004/diff/1/ui/views/cocoa/bridged_native_widget.mm#newcode1 ui/views/cocoa/bridged_native_widget.mm:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
4 years, 2 months ago (2016-10-11 23:05:16 UTC) #4
atimoxin
On 2016/10/11 23:05:16, tapted wrote: > https://codereview.chromium.org/2407153004/diff/1/ui/views/cocoa/bridged_native_widget.mm > File ui/views/cocoa/bridged_native_widget.mm (right): > > https://codereview.chromium.org/2407153004/diff/1/ui/views/cocoa/bridged_native_widget.mm#newcode1 > ...
4 years, 2 months ago (2016-10-12 12:43:07 UTC) #6
tapted
lgtm
4 years, 2 months ago (2016-10-13 00:20:02 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2407153004/20001
4 years, 2 months ago (2016-10-13 07:25:14 UTC) #13
commit-bot: I haz the power
Failed to apply the patch. On branch working_branch Your branch is up-to-date with 'origin/refs/pending/heads/master'. nothing ...
4 years, 2 months ago (2016-10-13 07:33:39 UTC) #15
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 07:33:44 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2b3fd8fa7e745eda9e69f49190f372aba03687d7
Cr-Commit-Position: refs/heads/master@{#424974}

Powered by Google App Engine
This is Rietveld 408576698