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

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

Issue 2539693002: Early-out from the prepaint tree walk (Closed)
Patch Set: Address chrishtrs comments Created 4 years 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
Index: third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp b/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
index 8ed7a2e8750bd33e608b4aff16bb47cd6573e0ee..f3c2d82ce27e246463880d5510b608f681bef875 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
@@ -437,6 +437,7 @@ ClipRect PaintLayerClipper::clipRectWithGeometryMapper(
LayoutRect source(LayoutRect::infiniteIntRect());
bool success = false;
const auto* properties = m_layer.layoutObject()->paintProperties();
+ DCHECK(properties && properties->localBorderBoxProperties());
PropertyTreeState propertyTreeState =
properties->localBorderBoxProperties()->propertyTreeState;
@@ -445,6 +446,7 @@ ClipRect PaintLayerClipper::clipRectWithGeometryMapper(
const auto* ancestorProperties =
context.rootLayer->layoutObject()->paintProperties();
+ DCHECK(ancestorProperties && ancestorProperties->localBorderBoxProperties());
PropertyTreeState destinationPropertyTreeState =
ancestorProperties->localBorderBoxProperties()->propertyTreeState;
if (!context.rootLayer->clipper().shouldRespectOverflowClip(context)) {

Powered by Google App Engine
This is Rietveld 408576698