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

Issue 2435593008: Cocoa: Fix a constraint violation when navigating away from a detached bookmark bar. (Closed)

Created:
4 years, 2 months ago by tapted
Modified:
4 years, 2 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews, tfarina, mac-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cocoa: Fix a constraint violation when navigating away from a detached bookmark bar. On 10.11+, when navigating away from the NTP with the bookmarks bar "detached", AppKit currently complains about a constraint violation when setting the bookmarks bar height to zero. It seems to occur because the subview previously asked for 6 DIP of padding on the top and bottom which won't fit in a height of 0 DIP. The subview height is set to 0 DIP shortly after. BookmarkBarView currently says it has a flexible height and fixed padding. Change it to a fixed height and flexible padding to stop AppKit complaining. While investigating, improve the encapsulation of -layoutSubviews slightly. BrowserWindowController called it after setting the view's frame manually and unnecessarily tweaking (a different set of) layout constraints. DCHECK instead. BUG=655112 Committed: https://crrev.com/e6144c977967c4ebbf5dedf8706e4ed5aca65124 Cr-Commit-Position: refs/heads/master@{#426944}

Patch Set 1 #

Patch Set 2 : redundant #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -15 lines) Patch
M chrome/app/nibs/BookmarkBar.xib View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm View 1 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 chunk +2 lines, -10 lines 1 comment Download

Dependent Patchsets:

Messages

Total messages: 18 (13 generated)
tapted
Hi mark - please take a look (I picked you since you're cc'd on the ...
4 years, 2 months ago (2016-10-21 04:51:30 UTC) #11
Mark Mentovai
LGTM
4 years, 2 months ago (2016-10-21 16:10:07 UTC) #12
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/2435593008/20001
4 years, 2 months ago (2016-10-21 22:47:08 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-22 01:20:05 UTC) #16
commit-bot: I haz the power
4 years, 2 months ago (2016-10-22 01:25:38 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e6144c977967c4ebbf5dedf8706e4ed5aca65124
Cr-Commit-Position: refs/heads/master@{#426944}

Powered by Google App Engine
This is Rietveld 408576698