| Index: Source/core/paint/ObjectPainter.cpp
|
| diff --git a/Source/core/paint/ObjectPainter.cpp b/Source/core/paint/ObjectPainter.cpp
|
| index 3e96ff3dd80573bd7b68ca47a84bda586d44ee73..eb6bfd89b6c3f6174cb3738fb5d885bcf84ca263 100644
|
| --- a/Source/core/paint/ObjectPainter.cpp
|
| +++ b/Source/core/paint/ObjectPainter.cpp
|
| @@ -31,12 +31,12 @@ void ObjectPainter::paintOutline(const PaintInfo& paintInfo, const LayoutRect& v
|
| if (!styleToUse.hasOutline())
|
| return;
|
|
|
| - if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, m_layoutObject, paintInfo.phase))
|
| + if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, m_layoutObject, paintInfo.phase, paintOffset))
|
| return;
|
|
|
| LayoutRect visualOverflowBounds(visualOverflowRect);
|
| visualOverflowBounds.moveBy(paintOffset);
|
| - LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutObject, paintInfo.phase, visualOverflowBounds);
|
| + LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutObject, paintInfo.phase, visualOverflowBounds, paintOffset);
|
|
|
| if (styleToUse.outlineStyleIsAuto()) {
|
| if (LayoutTheme::theme().shouldDrawDefaultFocusRing(&m_layoutObject)) {
|
| @@ -80,10 +80,10 @@ void ObjectPainter::addPDFURLRectIfNeeded(const PaintInfo& paintInfo, const Layo
|
| if (rect.isEmpty())
|
| return;
|
|
|
| - if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, m_layoutObject, DisplayItem::PrintedContentPDFURLRect))
|
| + if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, m_layoutObject, DisplayItem::PrintedContentPDFURLRect, paintOffset))
|
| return;
|
|
|
| - LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutObject, DisplayItem::PrintedContentPDFURLRect, rect);
|
| + LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutObject, DisplayItem::PrintedContentPDFURLRect, rect, paintOffset);
|
| if (url.hasFragmentIdentifier() && equalIgnoringFragmentIdentifier(url, m_layoutObject.document().baseURL())) {
|
| String fragmentName = url.fragmentIdentifier();
|
| if (m_layoutObject.document().findAnchor(fragmentName))
|
|
|