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

Issue 2737913002: Fix missing buttons on the Edit Bookmark dialog. (Closed)

Created:
3 years, 9 months ago by tapted
Modified:
3 years, 9 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix missing buttons on the Edit Bookmark dialog. This regressed in r454823. The buttons disappear because a spurious Layout() is triggered when adding a LabelButton as an extra view on Windows. The GridLayout is still being set up at this point, so the Layout attempt gets horribly confused and thinks the button row only needs to be a few pixels high. The Layout() results when the views::Label inside the dialog's extra view does a PreferredSizeChanged() when shadows are added to the text on Windows. MD text buttons do not have shadows, and Mac and Linux never have text shadows, so they are not affected. Fix by extending the scope of a bool that tracks when DialogClientView is manipulating the view hierarchy, and ignore calls to ChildPreferredSizeChanged() in that case. BUG=699390 TEST=On Windows, right-click a bookmark and select "Edit". The dialog should have buttons. R=pkasting@chromium.org Review-Url: https://codereview.chromium.org/2737913002 . Cr-Commit-Position: refs/heads/master@{#455438} Committed: https://chromium.googlesource.com/chromium/src/+/1ffcf3d8575a7cea0a759b7df23e5b45138ed0dd

Patch Set 1 #

Total comments: 5

Patch Set 2 : update comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -12 lines) Patch
M ui/views/window/dialog_client_view.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M ui/views/window/dialog_client_view.cc View 4 chunks +8 lines, -10 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
tapted
Hi Peter, please take a look. This is to fix a bad dev blocker.. I ...
3 years, 9 months ago (2017-03-08 11:25:26 UTC) #6
Peter Kasting
LGTM https://codereview.chromium.org/2737913002/diff/1/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/2737913002/diff/1/ui/views/window/dialog_client_view.cc#newcode244 ui/views/window/dialog_client_view.cc:244: Layout(); On 2017/03/08 11:25:26, tapted wrote: > This ...
3 years, 9 months ago (2017-03-08 11:33:17 UTC) #7
tapted
Thanks Peter! https://codereview.chromium.org/2737913002/diff/1/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/2737913002/diff/1/ui/views/window/dialog_client_view.cc#newcode244 ui/views/window/dialog_client_view.cc:244: Layout(); On 2017/03/08 11:33:17, Peter Kasting wrote: ...
3 years, 9 months ago (2017-03-08 12:19:03 UTC) #11
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/2737913002/20001
3 years, 9 months ago (2017-03-08 12:20:09 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/336064)
3 years, 9 months ago (2017-03-08 12:57:58 UTC) #16
tapted
3 years, 9 months ago (2017-03-08 13:05:16 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
1ffcf3d8575a7cea0a759b7df23e5b45138ed0dd (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698