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

Issue 419683008: mac: Toolbar renders incorrectly when downloads bar is open. (Closed)

Created:
6 years, 5 months ago by erikchen
Modified:
6 years, 5 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

mac: Toolbar renders incorrectly when downloads bar is open. The toolbar's superview chromeContentView was incorrectly sized and was too small. This happened because chromeContentView's layout was not being updated in -[BrowserWindowController layoutSubviews]. I updated the unit tests in browser_window_controller_unittest.mm with 2 changes: - All layout checking should use window coordinates, to ensure consistency. - Layout checking should ensure that the frame of each view is within the bounds of the superview. BUG=396740 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285796

Patch Set 1 : Syntax. #

Total comments: 7

Patch Set 2 : Comments from shess. #

Total comments: 5

Patch Set 3 : Comments from shess, round two. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -8 lines) Patch
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_unittest.mm View 1 2 2 chunks +51 lines, -8 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
erikchen
shess: Please review.
6 years, 5 months ago (2014-07-25 20:59:42 UTC) #1
Scott Hess - ex-Googler
https://codereview.chromium.org/419683008/diff/20001/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm File chrome/browser/ui/cocoa/browser_window_controller_unittest.mm (right): https://codereview.chromium.org/419683008/diff/20001/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm#newcode261 chrome/browser/ui/cocoa/browser_window_controller_unittest.mm:261: BOOL ViewHierarchyContainmentValid(NSView* view) { What, not implementing this as ...
6 years, 5 months ago (2014-07-25 22:26:53 UTC) #2
erikchen
shess: PTAL https://codereview.chromium.org/419683008/diff/20001/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm File chrome/browser/ui/cocoa/browser_window_controller_unittest.mm (right): https://codereview.chromium.org/419683008/diff/20001/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm#newcode298 chrome/browser/ui/cocoa/browser_window_controller_unittest.mm:298: EXPECT_EQ(NSMinY(contentView), NSMinY(download)); On 2014/07/25 22:26:53, Scott Hess ...
6 years, 5 months ago (2014-07-25 23:22:07 UTC) #3
Scott Hess - ex-Googler
LGTM, but I think the include doesn't belong. https://codereview.chromium.org/419683008/diff/20001/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm File chrome/browser/ui/cocoa/browser_window_controller_unittest.mm (right): https://codereview.chromium.org/419683008/diff/20001/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm#newcode301 chrome/browser/ui/cocoa/browser_window_controller_unittest.mm:301: EXPECT_EQ(NSMaxY(toolbar), ...
6 years, 5 months ago (2014-07-25 23:59:05 UTC) #4
erikchen
https://codereview.chromium.org/419683008/diff/20001/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm File chrome/browser/ui/cocoa/browser_window_controller_unittest.mm (right): https://codereview.chromium.org/419683008/diff/20001/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm#newcode301 chrome/browser/ui/cocoa/browser_window_controller_unittest.mm:301: EXPECT_EQ(NSMaxY(toolbar), NSMinY(tabstrip)); On 2014/07/25 23:59:04, Scott Hess wrote: > ...
6 years, 5 months ago (2014-07-26 00:12:16 UTC) #5
erikchen
The CQ bit was checked by erikchen@chromium.org
6 years, 5 months ago (2014-07-26 00:12:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikchen@chromium.org/419683008/80001
6 years, 5 months ago (2014-07-26 00:12:55 UTC) #7
Scott Hess - ex-Googler
https://codereview.chromium.org/419683008/diff/60001/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm File chrome/browser/ui/cocoa/browser_window_controller_unittest.mm (right): https://codereview.chromium.org/419683008/diff/60001/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm#newcode23 chrome/browser/ui/cocoa/browser_window_controller_unittest.mm:23: #import "chrome/browser/ui/cocoa/fast_resize_view.h" On 2014/07/26 00:12:16, erikchen wrote: > On ...
6 years, 5 months ago (2014-07-26 00:21:27 UTC) #8
erikchen
I played around with it. The compiler is treating FastResizeView like an object with type ...
6 years, 5 months ago (2014-07-26 00:49:08 UTC) #9
commit-bot: I haz the power
Change committed as 285796
6 years, 5 months ago (2014-07-26 19:57:30 UTC) #10
erikchen
6 years, 4 months ago (2014-07-29 01:22:35 UTC) #11
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/425853007/ by erikchen@chromium.org.

The reason for reverting is:  NSInvalidArgumentException reason Unlocking Focus
on wrong view (<NSView: 0x#>), expected <FastResizeView: 0x#>

https://code.google.com/p/chromium/issues/detail?id=397089.

Powered by Google App Engine
This is Rietveld 408576698