| Index: chrome/browser/ui/cocoa/panels/panel_stack_window_cocoa.mm
|
| diff --git a/chrome/browser/ui/cocoa/panels/panel_stack_window_cocoa.mm b/chrome/browser/ui/cocoa/panels/panel_stack_window_cocoa.mm
|
| index 8c03cb6f7f2d5403349578a0ee2e1b438e711564..e2a75fa1a8204274962ab0e1a6d5dee172f381e7 100644
|
| --- a/chrome/browser/ui/cocoa/panels/panel_stack_window_cocoa.mm
|
| +++ b/chrome/browser/ui/cocoa/panels/panel_stack_window_cocoa.mm
|
| @@ -82,6 +82,11 @@ void PanelStackWindowCocoa::AddPanel(Panel* panel) {
|
| }
|
|
|
| void PanelStackWindowCocoa::RemovePanel(Panel* panel) {
|
| + if (IsAnimatingPanelBounds()) {
|
| + // This panel is gone. We should not perform any update to it.
|
| + bounds_updates_.erase(panel);
|
| + }
|
| +
|
| panels_.remove(panel);
|
|
|
| // If the native panel is closed, the native window should already be gone.
|
|
|