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

Unified Diff: third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp

Issue 2809563003: Null check view during paint invalidation (Closed)
Patch Set: Created 3 years, 8 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: third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp
index b501d3f42cf7340db2f19e7af541765984022e13..ecf9e80af8a36a30680fb5115223b52d77a1d4e0 100644
--- a/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp
@@ -382,10 +382,12 @@ void ObjectPaintInvalidator::InvalidatePaintUsingContainer(
EnclosingIntRect(dirty_rect));
}
- if (paint_invalidation_container.View()->UsesCompositing() &&
- paint_invalidation_container.IsPaintInvalidationContainer()) {
- SetBackingNeedsPaintInvalidationInRect(paint_invalidation_container,
- dirty_rect, invalidation_reason);
+ auto* view = paint_invalidation_container.View();
+ if (view && view->UsesCompositing()) {
+ if (paint_invalidation_container.IsPaintInvalidationContainer()) {
+ SetBackingNeedsPaintInvalidationInRect(paint_invalidation_container,
+ dirty_rect, invalidation_reason);
+ }
}
}
« 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