Index: Source/core/paint/DetailsMarkerPainter.cpp |
diff --git a/Source/core/paint/DetailsMarkerPainter.cpp b/Source/core/paint/DetailsMarkerPainter.cpp |
index 30e4ff5fe2bc67174767f7228c8af445ea2ff0ec..ca8984dbea0a939c54bc36b08e6aea7b5d6d01ff 100644 |
--- a/Source/core/paint/DetailsMarkerPainter.cpp |
+++ b/Source/core/paint/DetailsMarkerPainter.cpp |
@@ -21,6 +21,9 @@ void DetailsMarkerPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& |
return; |
} |
+ if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, m_layoutDetailsMarker, paintInfo.phase)) |
+ return; |
+ |
LayoutPoint boxOrigin(paintOffset + m_layoutDetailsMarker.location()); |
LayoutRect overflowRect(m_layoutDetailsMarker.visualOverflowRect()); |
overflowRect.moveBy(boxOrigin); |
@@ -29,9 +32,6 @@ void DetailsMarkerPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& |
return; |
LayoutObjectDrawingRecorder layoutDrawingRecorder(*paintInfo.context, m_layoutDetailsMarker, paintInfo.phase, overflowRect); |
- if (layoutDrawingRecorder.canUseCachedDrawing()) |
- return; |
- |
const Color color(m_layoutDetailsMarker.resolveColor(CSSPropertyColor)); |
paintInfo.context->setStrokeColor(color); |
paintInfo.context->setStrokeStyle(SolidStroke); |