DescriptionMac: 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
Committed: https://crrev.com/96003d8405aa0f715a6ebf48f25d5cfcbd715107
Cr-Commit-Position: refs/heads/master@{#296479}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Fix for rsesek #Messages
Total messages: 9 (2 generated)
|