Chromium Code Reviews
DescriptionMac: 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 #
Messages
Total messages: 26 (17 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||