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

Issue 603243002: Mac: Fix tab strip relayout bug. (Closed)

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

Description

Mac: Fix tab strip relayout bug. A CL was recently introduced that prevented unnecessary tab-strip relayouts. (https://codereview.chromium.org/593223002/). That CL had a minor error where it failed to relayout the tab strip when the left and right indentations changed. This CL corrects that oversight. This CL also refactors the browser_window_controller tab strip layout logic into browser_window_layout. There is no intended behavioral change. The tab strip layout logic now has test coverage. BUG=415093 Committed: https://crrev.com/5eb473129dda33c370598739204470978be59af1 Cr-Commit-Position: refs/heads/master@{#296852}

Patch Set 1 : Formatting. #

Total comments: 2

Patch Set 2 : Comments from rsesek. #

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

Messages

Total messages: 16 (6 generated)
erikchen
andresantoso: Please review.
6 years, 2 months ago (2014-09-25 18:31:22 UTC) #3
Andre
lgtm
6 years, 2 months ago (2014-09-25 19:40:23 UTC) #4
erikchen
rsesek: Looking for an OWNER review.
6 years, 2 months ago (2014-09-25 19:42:33 UTC) #6
Robert Sesek
https://codereview.chromium.org/603243002/diff/20001/chrome/browser/ui/cocoa/browser_window_controller_private.mm File chrome/browser/ui/cocoa/browser_window_controller_private.mm (right): https://codereview.chromium.org/603243002/diff/20001/chrome/browser/ui/cocoa/browser_window_controller_private.mm#newcode197 chrome/browser/ui/cocoa/browser_window_controller_private.mm:197: requiresRelayout = YES; BOOL requiresRelayout = !NSEqualRects(tabStripFrame, [tabStripView frame]);
6 years, 2 months ago (2014-09-25 19:44:11 UTC) #7
erikchen
https://codereview.chromium.org/603243002/diff/20001/chrome/browser/ui/cocoa/browser_window_controller_private.mm File chrome/browser/ui/cocoa/browser_window_controller_private.mm (right): https://codereview.chromium.org/603243002/diff/20001/chrome/browser/ui/cocoa/browser_window_controller_private.mm#newcode197 chrome/browser/ui/cocoa/browser_window_controller_private.mm:197: requiresRelayout = YES; On 2014/09/25 19:44:10, Robert Sesek wrote: ...
6 years, 2 months ago (2014-09-25 20:03:33 UTC) #8
Robert Sesek
LGTM. It would probably be good to test this logic, though.
6 years, 2 months ago (2014-09-25 20:23:11 UTC) #9
erikchen
Tests being added in this CL: https://codereview.chromium.org/607723002/ (it got large enough that I'm breaking it ...
6 years, 2 months ago (2014-09-25 23:39:50 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/603243002/40001
6 years, 2 months ago (2014-09-25 23:42:10 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:40001) as d46d29cdabd6e1dda8a658587ad2ae0bce427544
6 years, 2 months ago (2014-09-26 01:40:45 UTC) #15
commit-bot: I haz the power
6 years, 2 months ago (2014-09-26 01:41:23 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5eb473129dda33c370598739204470978be59af1
Cr-Commit-Position: refs/heads/master@{#296852}

Powered by Google App Engine
This is Rietveld 408576698