Index: third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.cpp b/third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.cpp |
index 4558b88dcaa34853c96606257d7d6a9362a8a1bc..202a06ec3a544304f8479de75e868293d11291c7 100644 |
--- a/third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.cpp |
@@ -46,7 +46,8 @@ |
return; |
// Must check DrawingRecorder::useCachedDrawingIfPossible before creating the DrawingRecorder. |
- DCHECK(RuntimeEnabledFeatures::slimmingPaintUnderInvalidationCheckingEnabled() |
+ ASSERT((RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled() && context.getPaintController().paintOffsetWasInvalidated(displayItemClient)) |
+ || RuntimeEnabledFeatures::slimmingPaintUnderInvalidationCheckingEnabled() |
|| !useCachedDrawingIfPossible(m_context, m_displayItemClient, m_displayItemType)); |
ASSERT(DisplayItem::isDrawingType(displayItemType)); |