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

Issue 2373943002: Mac: Don't call -[BWC layoutSubviews] before updating the fullscreen bubble. (Closed)

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

Description

Mac: Don't call -[BWC layoutSubviews] before updating the fullscreen bubble. ExclusiveAccessController always repositions the bubble according to the size of the browser window. So invoking -[BrowserWindowController layoutSubviews] isn't necessary to update the bubble Doing layoutSubviews is expensive, unnecessary, and can cause a repositioning attempt of a bubble that is about to go away, since the bubble type isn't checked until updateFullscreenExitBubble calls BWC(Private) updateFullscreenExitBubble (which it does immediately *after* layoutSubviews). This sequence of events seems to be responsible for some AppKit crashes on older versions of OSX. ExclusiveAccessController::Layout() can be removed completely (it already ignores it's max_y argument, so remove some plumbing for that). BUG=650538 TEST=Manually tested fullscreen flows, and ensured there were no regressions running `interactive_ui_tests --gtest_filter=FullscreenControllerInteractiveTest.* --gtest_also_run_disabled_tests` locally. Committed: https://crrev.com/19b0e2dd976fb5fc1ec028c1cbbc584b4ca7dde2 Cr-Commit-Position: refs/heads/master@{#421974}

Patch Set 1 #

Patch Set 2 : purge more #

Patch Set 3 : Layout() unused #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -15 lines) Patch
M chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.mm View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_layout.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_layout.mm View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_layout_unittest.mm View 1 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (17 generated)
tapted
4 years, 2 months ago (2016-09-29 01:53:10 UTC) #13
Matt Giuca
Hmmm looks fine, but I don't know any of this code. Should you get a ...
4 years, 2 months ago (2016-09-29 03:34:19 UTC) #14
tapted
+spqchan - you probably know this BWC stuff the best - please take a look ...
4 years, 2 months ago (2016-09-29 03:38:36 UTC) #16
Matt Giuca
Can you make this sentence clearer: > So -[BrowserWindowController layoutSubviews] > doesn't need to affect ...
4 years, 2 months ago (2016-09-29 03:48:46 UTC) #17
spqchan
lgtm
4 years, 2 months ago (2016-09-29 19:13:34 UTC) #18
tapted
Thanks all! On 2016/09/29 03:48:46, Matt Giuca (OOO til Oct 4) wrote: > Can you ...
4 years, 2 months ago (2016-09-29 23:07:13 UTC) #20
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/2373943002/40001
4 years, 2 months ago (2016-09-29 23:08:11 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-09-29 23:14:25 UTC) #24
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 23:16:32 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/19b0e2dd976fb5fc1ec028c1cbbc584b4ca7dde2
Cr-Commit-Position: refs/heads/master@{#421974}

Powered by Google App Engine
This is Rietveld 408576698