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

Unified Diff: components/exo/shell_surface.cc

Issue 2681233003: Skip UpdateShadow if the surface has already been destroyed (Closed)
Patch Set: Created 3 years, 10 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: components/exo/shell_surface.cc
diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc
index c9927a857b9ef5dfe2bbc204049cd66eee705262..89cbc347f190029c25c4c4cae6d3af06f5c2e73d 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -1418,7 +1418,7 @@ void ShellSurface::UpdateWidgetBounds() {
}
void ShellSurface::UpdateShadow() {
- if (!widget_)
+ if (!widget_ || !surface_)
return;
aura::Window* window = widget_->GetNativeWindow();
if (!shadow_enabled_) {
« 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