Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(464)

Unified Diff: chrome/browser/ui/cocoa/panels/panel_stack_window_cocoa.mm

Issue 143453008: [Mac] Remove a panel from stack window bounds update list when it is being removed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698