Index: Source/core/paint/ListMarkerPainter.cpp |
diff --git a/Source/core/paint/ListMarkerPainter.cpp b/Source/core/paint/ListMarkerPainter.cpp |
index 96aeb70eb1c34320cedb96dd6733b24a1ac84730..4d24ece18bb596100cd894251965faf660da1b60 100644 |
--- a/Source/core/paint/ListMarkerPainter.cpp |
+++ b/Source/core/paint/ListMarkerPainter.cpp |
@@ -36,7 +36,10 @@ void ListMarkerPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& pai |
if (!paintInfo.rect.intersects(pixelSnappedOverflowRect)) |
return; |
- RenderDrawingRecorder recorder(paintInfo.context, &m_renderListMarker, paintInfo.phase, pixelSnappedOverflowRect); |
+ RenderDrawingRecorder recorder(paintInfo.context, m_renderListMarker, paintInfo.phase, pixelSnappedOverflowRect); |
+ if (recorder.canUseCachedDrawing()) |
+ return; |
+ |
LayoutRect box(boxOrigin, m_renderListMarker.size()); |
IntRect marker = m_renderListMarker.getRelativeMarkerRect(); |