Index: Source/core/paint/BlockFlowPainter.cpp |
diff --git a/Source/core/paint/BlockFlowPainter.cpp b/Source/core/paint/BlockFlowPainter.cpp |
index 95963c2fca7afd6220ecf355ad998b17cbe5bb57..3ae78d194448c855bf67333d470bb1c6663cfb0b 100644 |
--- a/Source/core/paint/BlockFlowPainter.cpp |
+++ b/Source/core/paint/BlockFlowPainter.cpp |
@@ -64,11 +64,11 @@ void BlockFlowPainter::paintSelection(const PaintInfo& paintInfo, const LayoutPo |
// Only create a DrawingRecorder and ClipScope if skipRecording is false. This logic is needed |
// because selectionGaps(...) needs to be called even when we do not record. |
- bool skipRecording = LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, m_layoutBlockFlow, DisplayItem::SelectionGap); |
+ bool skipRecording = LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, m_layoutBlockFlow, DisplayItem::SelectionGap, paintOffset); |
Optional<LayoutObjectDrawingRecorder> drawingRecorder; |
Optional<ClipScope> clipScope; |
if (!skipRecording) { |
- drawingRecorder.emplace(*paintInfo.context, m_layoutBlockFlow, DisplayItem::SelectionGap, FloatRect(bounds)); |
+ drawingRecorder.emplace(*paintInfo.context, m_layoutBlockFlow, DisplayItem::SelectionGap, FloatRect(bounds), paintOffset); |
clipScope.emplace(paintInfo.context); |
} |