| Index: Source/platform/graphics/paint/DrawingRecorder.cpp
|
| diff --git a/Source/platform/graphics/paint/DrawingRecorder.cpp b/Source/platform/graphics/paint/DrawingRecorder.cpp
|
| index d24abbc264209f9c7aa4e70be8aa6e6a826365d8..3d9887588f8b162107d3bd085ed33ba00d1c0eb2 100644
|
| --- a/Source/platform/graphics/paint/DrawingRecorder.cpp
|
| +++ b/Source/platform/graphics/paint/DrawingRecorder.cpp
|
| @@ -49,7 +49,8 @@ DrawingRecorder::DrawingRecorder(GraphicsContext& context, const DisplayItemClie
|
| return;
|
|
|
| // Must check DrawingRecorder::useCachedDrawingIfPossible before creating the DrawingRecorder.
|
| - ASSERT(!useCachedDrawingIfPossible(m_context, m_displayItemClient, m_displayItemType));
|
| + ASSERT((RuntimeEnabledFeatures::slimmingPaintV2Enabled() && context.displayItemList()->paintOffsetWasInvalidated(displayItemClient.displayItemClient()))
|
| + || !useCachedDrawingIfPossible(m_context, m_displayItemClient, m_displayItemType));
|
|
|
| ASSERT(DisplayItem::isDrawingType(displayItemType));
|
|
|
|
|