Skip to content

Commit

Permalink
Mac: Fix throbber not spinning after dragging tabs.
Browse files Browse the repository at this point in the history
We want the throbber to spin when it's attached to a window, and that window is
not miniaturized.
We were calling -updateAnimation: from -viewWillMoveToWindow where [self window]
is still the old window. We want to update the animation based on the new
window, so the fix is to call it from -viewDidMoveToWindow.

BUG=361969

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263363 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
[email protected] committed Apr 11, 2014
1 parent a8054d3 commit 2c4d732
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chrome/browser/ui/cocoa/sprite_view.mm
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ - (void)viewWillMoveToWindow:(NSWindow*)newWindow {
name:NSWindowDidDeminiaturizeNotification
object:newWindow];
}
}

- (void)viewDidMoveToWindow {
[self updateAnimation:nil];
}

Expand Down

0 comments on commit 2c4d732

Please sign in to comment.