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

Unified Diff: components/exo/shell_surface.cc

Issue 2690713002: 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 b4f27fa828e643af75e1f3e6b7a9f577a5a4b8a0..0cd949c193c657879da65ee68c4b619c75fbfb74 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -1415,7 +1415,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