Index: Source/core/paint/ObjectPainter.cpp |
diff --git a/Source/core/paint/ObjectPainter.cpp b/Source/core/paint/ObjectPainter.cpp |
index ef1f3f8a4ff668ee6435cd9f6cb6421417cd2da8..5d27bcd2dcc65963875b62e015ea0deec20713a4 100644 |
--- a/Source/core/paint/ObjectPainter.cpp |
+++ b/Source/core/paint/ObjectPainter.cpp |
@@ -39,10 +39,11 @@ void ObjectPainter::paintOutline(const PaintInfo& paintInfo, const LayoutRect& o |
if (!styleToUse.hasOutline()) |
return; |
- LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutObject, paintInfo.phase, visualOverflowBounds); |
- if (recorder.canUseCachedDrawing()) |
+ if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, m_layoutObject, paintInfo.phase)) |
return; |
+ LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutObject, paintInfo.phase, visualOverflowBounds); |
+ |
if (styleToUse.outlineStyleIsAuto()) { |
if (LayoutTheme::theme().shouldDrawDefaultFocusRing(&m_layoutObject)) { |
// Only paint the focus ring by hand if the theme isn't able to draw the focus ring. |
@@ -84,10 +85,10 @@ void ObjectPainter::addPDFURLRectIfNeeded(const PaintInfo& paintInfo, const Layo |
if (rect.isEmpty()) |
return; |
- LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutObject, DisplayItem::PrintedContentPDFURLRect, rect); |
- if (recorder.canUseCachedDrawing()) |
+ if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, m_layoutObject, DisplayItem::PrintedContentPDFURLRect)) |
return; |
+ LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutObject, DisplayItem::PrintedContentPDFURLRect, rect); |
if (url.hasFragmentIdentifier() && equalIgnoringFragmentIdentifier(url, m_layoutObject.document().baseURL())) { |
String fragmentName = url.fragmentIdentifier(); |
if (m_layoutObject.document().findAnchor(fragmentName)) |