Index: Source/core/paint/LayoutObjectDrawingRecorder.h |
diff --git a/Source/core/paint/LayoutObjectDrawingRecorder.h b/Source/core/paint/LayoutObjectDrawingRecorder.h |
index 81fba8cc836e2882f4a809e9b7af59a975ff9123..b0da6bb6a3d838da9605d842919c131470ba19d6 100644 |
--- a/Source/core/paint/LayoutObjectDrawingRecorder.h |
+++ b/Source/core/paint/LayoutObjectDrawingRecorder.h |
@@ -26,7 +26,7 @@ public: |
static bool useCachedDrawingIfPossible(GraphicsContext& context, const LayoutObject& layoutObject, DisplayItem::Type displayItemType, const LayoutPoint& paintOffset) |
{ |
// TODO(pdr): The paint offset cache should be stored on LayoutObject but is temporarily on the DisplayItemList. |
- if (RuntimeEnabledFeatures::slimmingPaintV2Enabled() && !context.displayItemList()->paintOffsetIsUnchanged(layoutObject.displayItemClient(), paintOffset)) |
+ if (RuntimeEnabledFeatures::slimmingPaintOffsetCachingEnabled() && !context.displayItemList()->paintOffsetIsUnchanged(layoutObject.displayItemClient(), paintOffset)) |
return false; |
if (layoutObject.fullPaintInvalidationReason() == PaintInvalidationDelayedFull) |
return false; |
@@ -41,7 +41,7 @@ public: |
static bool useCachedDrawingIfPossible(GraphicsContext& context, const InlineBox& inlineBox, DisplayItem::Type displayItemType, const LayoutPoint& paintOffset) |
{ |
// TODO(pdr): The paint offset cache should be stored on LayoutObject but is temporarily on the DisplayItemList. |
- if (RuntimeEnabledFeatures::slimmingPaintV2Enabled() && !context.displayItemList()->paintOffsetIsUnchanged(inlineBox.displayItemClient(), paintOffset)) |
+ if (RuntimeEnabledFeatures::slimmingPaintOffsetCachingEnabled() && !context.displayItemList()->paintOffsetIsUnchanged(inlineBox.displayItemClient(), paintOffset)) |
return false; |
return DrawingRecorder::useCachedDrawingIfPossible(context, inlineBox, displayItemType); |
} |
@@ -94,7 +94,7 @@ public: |
private: |
static void updatePaintOffsetIfNeeded(DisplayItemList* displayItemList, const DisplayItemClientWrapper& client, const LayoutPoint& paintOffset) |
{ |
- if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) |
+ if (!RuntimeEnabledFeatures::slimmingPaintOffsetCachingEnabled()) |
return; |
// TODO(pdr): The paint offset cache should be stored on LayoutObject but is temporarily on the DisplayItemList. |