Mac: Don't relayout tabs if the tab strip's frame didn't change.
When we reshow the find bar after dropping a tab into a new window, -[BrowserWindowController layoutSubviews] is called which causes a relayout of the tabs (without animation). In this case, a tab is in the beginning of being animated to a new position and this relayout interrupted it by calling setFrame on the tab view, but the tab frame ended up being the animator's target frame instead of the relayout setFrame. This seems like an AppKit bug because it behaves as expected on 10.9. It is undesirable for layoutSubviews to force tabs relayout when the tap strip's frame did not change, because it will interrupt tab animations in progress. This change compares the old and new tab strip frame and skips tabs relayout if the frame did not change. BUG=415093 Review URL: https://codereview.chromium.org/593223002 Cr-Commit-Position: refs/heads/master@{#296479}
Showing
Please register or sign in to comment