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

Issue 2895003002: Fix the white background regression on the Extensions overflow menu. (Closed)

Created:
3 years, 7 months ago by ananta
Modified:
3 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the white background regression on the Extensions overflow menu. This was a regression introduced by my patch https://codereview.chromium.org/2813353002/ for bugs 665412, 656198. This patch ensured that the parent views get notified when a child adds a layer. This notification is handled by the scrollview, where we enable layering on the viewport. We need to call SetFillsBoundsOpaquely() on the viewport layer for the scrollview to ensure that transparent views like the overflow menu work correctly. Thanks for timbrown for helping debug on his Linux Box and to sky for the suggestions. BUG=722965 Review-Url: https://codereview.chromium.org/2895003002 Cr-Commit-Position: refs/heads/master@{#473787} Committed: https://chromium.googlesource.com/chromium/src/+/9c46717e8d85b283ccb79dd4e305d33ba99b1432

Patch Set 1 #

Patch Set 2 : Fix comment #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -3 lines) Patch
M ui/views/controls/scroll_view.cc View 1 chunk +11 lines, -3 lines 2 comments Download
M ui/views/view_unittest.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (12 generated)
ananta
3 years, 7 months ago (2017-05-19 22:07:13 UTC) #3
sky
https://codereview.chromium.org/2895003002/diff/20001/ui/views/controls/scroll_view.cc File ui/views/controls/scroll_view.cc (right): https://codereview.chromium.org/2895003002/diff/20001/ui/views/controls/scroll_view.cc#newcode751 ui/views/controls/scroll_view.cc:751: contents_viewport_->SetPaintToLayer(); Does supplying LAYER_SOLID_COLOR work for your needs? That's ...
3 years, 7 months ago (2017-05-22 16:23:40 UTC) #10
ananta
https://codereview.chromium.org/2895003002/diff/20001/ui/views/controls/scroll_view.cc File ui/views/controls/scroll_view.cc (right): https://codereview.chromium.org/2895003002/diff/20001/ui/views/controls/scroll_view.cc#newcode751 ui/views/controls/scroll_view.cc:751: contents_viewport_->SetPaintToLayer(); On 2017/05/22 16:23:40, sky wrote: > Does supplying ...
3 years, 7 months ago (2017-05-22 19:22:43 UTC) #11
sky
On 2017/05/22 19:22:43, ananta wrote: > https://codereview.chromium.org/2895003002/diff/20001/ui/views/controls/scroll_view.cc > File ui/views/controls/scroll_view.cc (right): > > https://codereview.chromium.org/2895003002/diff/20001/ui/views/controls/scroll_view.cc#newcode751 > ...
3 years, 7 months ago (2017-05-22 21:14:30 UTC) #12
ananta
On 2017/05/22 21:14:30, sky wrote: > On 2017/05/22 19:22:43, ananta wrote: > > > https://codereview.chromium.org/2895003002/diff/20001/ui/views/controls/scroll_view.cc ...
3 years, 7 months ago (2017-05-22 22:16:39 UTC) #13
sky
What I suggested doesn't make sense because we still need child views to paint. Ok, ...
3 years, 7 months ago (2017-05-22 22:20:06 UTC) #14
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/2895003002/20001
3 years, 7 months ago (2017-05-23 01:21:03 UTC) #16
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 02:13:35 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/9c46717e8d85b283ccb79dd4e305...

Powered by Google App Engine
This is Rietveld 408576698