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

Issue 196723009: Not submitted - Fixing invalid visibility states with layers which showed up in unittests ... (Closed)

Created:
6 years, 9 months ago by Mr4D (OOO till 08-26)
Modified:
6 years, 8 months ago
Reviewers:
CC:
chromium-reviews, kalyank, ben+aura_chromium.org, sadrul, ben+ash_chromium.org
Visibility:
Public.

Description

Fixing invalid visibility states with layers which showed up in unittests (opacity==0, visibility==true) When fixing an animation problem yesterday, I added a DCHECK to test for an invalid layer state. In that state, the layer's alpha is 0 while the layers visibility is true. Several function will fail if this condition is present. As an example: Window::Show / Window::Hide. After adding the DCHECK several unit tests failed and this patch is addressing this problem. BUG=351553 TEST=unittests

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -12 lines) Patch
M ash/wm/overview/window_overview.cc View 4 chunks +8 lines, -3 lines 1 comment Download
M ash/wm/overview/window_selector_panels.cc View 1 chunk +4 lines, -1 line 0 comments Download
M ash/wm/panels/panel_layout_manager.cc View 5 chunks +10 lines, -5 lines 0 comments Download
M ash/wm/system_modal_container_layout_manager.cc View 1 chunk +4 lines, -1 line 0 comments Download
M ui/aura/window.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mr4D (OOO till 08-26)
Please have a look!
6 years, 9 months ago (2014-03-12 18:41:29 UTC) #1
flackr
Isn't this just working around the problem? I.e. if we want what is effectively 0 ...
6 years, 9 months ago (2014-03-12 19:12:20 UTC) #2
sky
6 years, 9 months ago (2014-03-12 19:31:39 UTC) #3
https://codereview.chromium.org/196723009/diff/1/ash/wm/overview/window_overv...
File ash/wm/overview/window_overview.cc (right):

https://codereview.chromium.org/196723009/diff/1/ash/wm/overview/window_overv...
ash/wm/overview/window_overview.cc:55: const float kWindowLayerNotShown =
0.001f;
Ugh. Why can't you actually hide here and evervy where?

Powered by Google App Engine
This is Rietveld 408576698