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

Issue 1812303002: Added Layer based clipping to MenuScrollViewContainer::MenuScrollView (Closed)

Created:
4 years, 9 months ago by bruthig
Modified:
4 years, 8 months ago
Reviewers:
varkha, sky, Evan Stade
CC:
chromium-reviews, tfarina, Evan Stade
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added Layer based clipping to MenuScrollViewContainer::MenuScrollView ToolbarActionViews now own their own Layers so that they can host the material design ripple. The icons were previously clipped via the clipping bounds set on the Canvas passed through the OnPaint() methods. This clipping mechanism no longer works because the icons are painted to their own Layers. Thus this CL updates the MenuScrollView to perform Layer based clipping. BUG=596073 TEST=manual Committed: https://crrev.com/4aa8a6f3be2aafda269f33e9d88a44083210b71b Cr-Commit-Position: refs/heads/master@{#386802}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Replaced SetFillsBoundsOpaquely(false) with a solid background. #

Patch Set 3 : Added TODO with reference to bug. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -0 lines) Patch
M ui/views/controls/menu/menu_scroll_view_container.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_scroll_view_container.cc View 1 2 7 chunks +28 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (9 generated)
bruthig
sky@, can you take a peek?
4 years, 9 months ago (2016-03-18 18:58:58 UTC) #2
Evan Stade
https://codereview.chromium.org/1812303002/diff/1/ui/views/controls/menu/menu_scroll_view_container.cc File ui/views/controls/menu/menu_scroll_view_container.cc (right): https://codereview.chromium.org/1812303002/diff/1/ui/views/controls/menu/menu_scroll_view_container.cc#newcode141 ui/views/controls/menu/menu_scroll_view_container.cc:141: layer()->SetFillsBoundsOpaquely(false); is this correct/necessary?
4 years, 9 months ago (2016-03-18 19:07:02 UTC) #5
bruthig
https://codereview.chromium.org/1812303002/diff/1/ui/views/controls/menu/menu_scroll_view_container.cc File ui/views/controls/menu/menu_scroll_view_container.cc (right): https://codereview.chromium.org/1812303002/diff/1/ui/views/controls/menu/menu_scroll_view_container.cc#newcode141 ui/views/controls/menu/menu_scroll_view_container.cc:141: layer()->SetFillsBoundsOpaquely(false); On 2016/03/18 19:07:02, Evan Stade wrote: > is ...
4 years, 9 months ago (2016-03-18 19:26:44 UTC) #6
Evan Stade
https://codereview.chromium.org/1812303002/diff/1/ui/views/controls/menu/menu_scroll_view_container.cc File ui/views/controls/menu/menu_scroll_view_container.cc (right): https://codereview.chromium.org/1812303002/diff/1/ui/views/controls/menu/menu_scroll_view_container.cc#newcode141 ui/views/controls/menu/menu_scroll_view_container.cc:141: layer()->SetFillsBoundsOpaquely(false); On 2016/03/18 19:26:43, bruthig wrote: > On 2016/03/18 ...
4 years, 9 months ago (2016-03-18 19:34:40 UTC) #7
varkha
https://codereview.chromium.org/1812303002/diff/1/ui/views/controls/menu/menu_scroll_view_container.cc File ui/views/controls/menu/menu_scroll_view_container.cc (right): https://codereview.chromium.org/1812303002/diff/1/ui/views/controls/menu/menu_scroll_view_container.cc#newcode139 ui/views/controls/menu/menu_scroll_view_container.cc:139: SetPaintToLayer(true); I wonder if this should be an optional ...
4 years, 9 months ago (2016-03-22 14:30:01 UTC) #9
bruthig
https://codereview.chromium.org/1812303002/diff/1/ui/views/controls/menu/menu_scroll_view_container.cc File ui/views/controls/menu/menu_scroll_view_container.cc (right): https://codereview.chromium.org/1812303002/diff/1/ui/views/controls/menu/menu_scroll_view_container.cc#newcode139 ui/views/controls/menu/menu_scroll_view_container.cc:139: SetPaintToLayer(true); On 2016/03/22 14:30:01, varkha wrote: > I wonder ...
4 years, 9 months ago (2016-03-22 21:45:30 UTC) #10
bruthig
Adding pkasting@ as a shot in the dark. Peter have you ever seen anything like ...
4 years, 9 months ago (2016-03-22 21:48:36 UTC) #11
Peter Kasting
On 2016/03/22 21:48:36, bruthig wrote: > Adding pkasting@ as a shot in the dark. > ...
4 years, 9 months ago (2016-03-22 22:56:41 UTC) #12
sky
LGTM
4 years, 8 months ago (2016-04-12 19:01:34 UTC) #13
bruthig
https://codereview.chromium.org/1812303002/diff/1/ui/views/controls/menu/menu_scroll_view_container.cc File ui/views/controls/menu/menu_scroll_view_container.cc (right): https://codereview.chromium.org/1812303002/diff/1/ui/views/controls/menu/menu_scroll_view_container.cc#newcode139 ui/views/controls/menu/menu_scroll_view_container.cc:139: SetPaintToLayer(true); On 2016/03/22 21:45:29, bruthig wrote: > On 2016/03/22 ...
4 years, 8 months ago (2016-04-12 19:09:51 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1812303002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1812303002/40001
4 years, 8 months ago (2016-04-12 19:10:22 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/49223)
4 years, 8 months ago (2016-04-12 19:19:28 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1812303002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1812303002/40001
4 years, 8 months ago (2016-04-12 20:50:14 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-12 21:00:50 UTC) #22
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/4aa8a6f3be2aafda269f33e9d88a44083210b71b Cr-Commit-Position: refs/heads/master@{#386802}
4 years, 8 months ago (2016-04-12 21:02:06 UTC) #24
bruthig
4 years, 8 months ago (2016-04-13 12:54:49 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1882143004/ by bruthig@chromium.org.

The reason for reverting is: Reverting due to http://crbug.com/602913.

Powered by Google App Engine
This is Rietveld 408576698