Chromium Code Reviews| Index: chrome/browser/ui/cocoa/status_bubble_mac.mm |
| =================================================================== |
| --- chrome/browser/ui/cocoa/status_bubble_mac.mm (revision 133437) |
| +++ chrome/browser/ui/cocoa/status_bubble_mac.mm (working copy) |
| @@ -447,8 +447,11 @@ |
| if (state == state_) |
| return; |
| - if (state == kBubbleHidden) |
| - [window_ setFrame:NSMakeRect(0, 0, 1, 1) display:YES]; |
| + if (state == kBubbleHidden) { |
| + NSRect frame = [window_ frame]; |
|
sail
2012/04/23 19:28:07
can you add a comment explaining this (for example
Alexei Svitkine (slow)
2012/04/23 19:43:57
Done.
|
| + frame.size = NSMakeSize(1, 1); |
| + [window_ setFrame:frame display:YES]; |
| + } |
| if ([delegate_ respondsToSelector:@selector(statusBubbleWillEnterState:)]) |
| [delegate_ statusBubbleWillEnterState:state]; |