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

Issue 2521453002: [mac] Disable usage of full size content view. (Closed)

Created:
4 years, 1 month ago by tapted
Modified:
4 years, 1 month ago
Reviewers:
erikchen
CC:
chromium-reviews, mac-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org, shrike
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[mac] Disable usage of full size content view. Usually AppKit gives the contentView of a framed NSWindow an NSThemeFrame as its superview. For a long time, Chrome has hacked around this requirement, so we have more control over the frame layout. We would instead add our contentView as a sibling of NSThemeFrame. But AppKit warns, "NSWindow warning: adding an unknown subview" when we do this. In r424609 we started using NSFullSizeContentViewWindowMask to avoid the warning. However, NSThemeFrame uses autolayout for the "traffic light" buttons. The prevailing theory is that adding the browser view hierarchy as a subview of NSThemeFrame (rather than a sibling) we are unexpectedly increasing the exposure that the browser view layout has to autolayout; layout constraints and the constraint resolution alogithm. This resulted in some known performance and layout regressions (fixed in r427290 and r432024). There's concern of additional, yet unknown regressions. So we want to revert to the old ways for m56 so there is time for additional analysis. BUG=666415, 605219 Committed: https://crrev.com/fd7cfb578fb058ee68c19051fb1ecd564b563f73 Cr-Commit-Position: refs/heads/master@{#433658}

Patch Set 1 #

Patch Set 2 : more comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -7 lines) Patch
M chrome/browser/ui/cocoa/browser_window_layout.mm View 1 1 chunk +12 lines, -7 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
tapted
Hi Jayson - WDYT? (Does this capture the rationale?)
4 years, 1 month ago (2016-11-21 04:39:35 UTC) #7
tapted
+erik On 2016/11/21 04:39:35, tapted wrote: > Hi Jayson^H^H^H^H^H^HErik - WDYT? (Does this capture the ...
4 years, 1 month ago (2016-11-21 05:47:01 UTC) #9
erikchen
thanks, lgtm
4 years, 1 month ago (2016-11-21 18:31:59 UTC) #10
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/2521453002/20001
4 years, 1 month ago (2016-11-21 21:36:08 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-21 21:40:56 UTC) #16
commit-bot: I haz the power
4 years, 1 month ago (2016-11-21 21:43:41 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/fd7cfb578fb058ee68c19051fb1ecd564b563f73
Cr-Commit-Position: refs/heads/master@{#433658}

Powered by Google App Engine
This is Rietveld 408576698