Index: third_party/WebKit/Source/core/paint/LayoutObjectDrawingRecorder.h |
diff --git a/third_party/WebKit/Source/core/paint/LayoutObjectDrawingRecorder.h b/third_party/WebKit/Source/core/paint/LayoutObjectDrawingRecorder.h |
index 394bd7c8cae4cf3abc80d796e6483a714ccfdb62..d904957de1daabe348671e0cd403378302b4258c 100644 |
--- a/third_party/WebKit/Source/core/paint/LayoutObjectDrawingRecorder.h |
+++ b/third_party/WebKit/Source/core/paint/LayoutObjectDrawingRecorder.h |
@@ -38,7 +38,7 @@ public: |
LayoutObjectDrawingRecorder(GraphicsContext& context, const LayoutObject& layoutObject, DisplayItem::Type displayItemType, const FloatRect& clip, const LayoutPoint& paintOffset) |
{ |
- updatePaintOffsetIfNeeded(context.displayItemList(), layoutObject, paintOffset); |
+ updatePaintOffsetIfNeeded(context.paintController(), layoutObject, paintOffset); |
// We may paint a delayed-invalidation object before it's actually invalidated. |
if (layoutObject.fullPaintInvalidationReason() == PaintInvalidationDelayedFull) |
m_cacheSkipper.emplace(context); |
@@ -62,15 +62,15 @@ public: |
#endif |
private: |
- static void updatePaintOffsetIfNeeded(DisplayItemList* displayItemList, const LayoutObject& layoutObject, const LayoutPoint& paintOffset) |
+ static void updatePaintOffsetIfNeeded(PaintController* paintController, const LayoutObject& layoutObject, const LayoutPoint& paintOffset) |
{ |
- if (!RuntimeEnabledFeatures::slimmingPaintOffsetCachingEnabled() || displayItemList->skippingCache()) |
+ if (!RuntimeEnabledFeatures::slimmingPaintOffsetCachingEnabled() || paintController->skippingCache()) |
return; |
if (layoutObject.paintOffsetChanged(paintOffset)) |
- displayItemList->invalidatePaintOffset(layoutObject); |
+ paintController->invalidatePaintOffset(layoutObject); |
else |
- ASSERT(!displayItemList->paintOffsetWasInvalidated(layoutObject.displayItemClient()) || !displayItemList->clientCacheIsValid(layoutObject.displayItemClient())); |
+ ASSERT(!paintController->paintOffsetWasInvalidated(layoutObject.displayItemClient()) || !paintController->clientCacheIsValid(layoutObject.displayItemClient())); |
layoutObject.mutableForPainting().setPreviousPaintOffset(paintOffset); |
} |