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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 2473293002: Naive fix of a call on a nil object in CompositedLayerMapping::containingSquashedLayer. (Closed)
Patch Set: Naive fix of a call on a nil object in CompositedLayerMapping::containingSquashedLayer. Created 4 years, 1 month 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/layout/compositing/CompositedLayerMapping.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
index 0940c3e15bb0ed52846c2db078e86417316964b1..ebe400f573dabc4f76ab52aa00f487e94387c851 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -2610,6 +2610,8 @@ const GraphicsLayerPaintInfo* CompositedLayerMapping::containingSquashedLayer(
const LayoutObject* layoutObject,
const Vector<GraphicsLayerPaintInfo>& layers,
unsigned maxSquashedLayerIndex) {
+ if (!layoutObject)
+ return nullptr;
for (size_t i = 0; i < layers.size() && i < maxSquashedLayerIndex; ++i) {
if (layoutObject->isDescendantOf(layers[i].paintLayer->layoutObject()))
return &layers[i];
« 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