Index: Source/core/paint/InlinePainter.cpp |
diff --git a/Source/core/paint/InlinePainter.cpp b/Source/core/paint/InlinePainter.cpp |
index 128162e4ff6f437463ac37d02dd8ac75489ec282..c37e8feb13c8f6770e8c7befa1994ce9c92d2e7f 100644 |
--- a/Source/core/paint/InlinePainter.cpp |
+++ b/Source/core/paint/InlinePainter.cpp |
@@ -38,7 +38,9 @@ void InlinePainter::paintOutline(const PaintInfo& paintInfo, const LayoutPoint& |
bounds = cb->visualOverflowRect(); |
bounds.moveBy(paintOffset); |
} |
- RenderDrawingRecorder recorder(paintInfo.context, &m_renderInline, paintInfo.phase, bounds); |
+ RenderDrawingRecorder recorder(paintInfo.context, m_renderInline, paintInfo.phase, bounds); |
+ if (recorder.canUseCachedDrawing()) |
+ return; |
if (styleToUse->outlineStyleIsAuto()) { |
if (RenderTheme::theme().shouldDrawDefaultFocusRing(&m_renderInline)) { |