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

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

Issue 1901193002: Check null m_parent in PaintLayer::insertOnlyThisLayerAfterStyleChange() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index 8f606340fb102fe5fba67b19f2f46608a8e549a8..204b32b6d9ac004b94047125d7b47b3fbf9312ab 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -1336,7 +1336,7 @@ void PaintLayer::insertOnlyThisLayerAfterStyleChange()
}
}
- if (!didSetPaintInvalidation && isSelfPaintingLayer()) {
+ if (!didSetPaintInvalidation && isSelfPaintingLayer() && m_parent) {
if (PaintLayer* enclosingSelfPaintingLayer = m_parent->enclosingSelfPaintingLayer())
mergeNeedsPaintPhaseFlagsFrom(*enclosingSelfPaintingLayer);
}
« 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