Mac: Fix tab strip relayout bug.
commit5eb473129dda33c370598739204470978be59af1
authorerikchen <erikchen@chromium.org>
Fri, 26 Sep 2014 01:40:39 +0000 (25 18:40 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 26 Sep 2014 01:40:53 +0000 (26 01:40 +0000)
tree66c6db33a308aa72a424e47135289513384fbe85
parentc3e1176781bca397af115d2357f669cd56045c2b
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

Review URL: https://codereview.chromium.org/603243002

Cr-Commit-Position: refs/heads/master@{#296852}
chrome/browser/ui/cocoa/browser_window_controller_private.mm