| Index: Source/core/paint/SVGRootInlineBoxPainter.cpp
|
| diff --git a/Source/core/paint/SVGRootInlineBoxPainter.cpp b/Source/core/paint/SVGRootInlineBoxPainter.cpp
|
| index 87cca0df83d20be9a1287533654f833631fb59c9..b4c1c4d3608293206473ff4d35e3dbf9ac001d99 100644
|
| --- a/Source/core/paint/SVGRootInlineBoxPainter.cpp
|
| +++ b/Source/core/paint/SVGRootInlineBoxPainter.cpp
|
| @@ -20,8 +20,7 @@ void SVGRootInlineBoxPainter::paint(const PaintInfo& paintInfo, const LayoutPoin
|
| {
|
| ASSERT(paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection);
|
|
|
| - bool isPrinting = m_svgRootInlineBox.layoutObject().document().printing();
|
| - bool hasSelection = !isPrinting && m_svgRootInlineBox.selectionState() != LayoutObject::SelectionNone;
|
| + bool hasSelection = !paintInfo.isPrinting() && m_svgRootInlineBox.selectionState() != LayoutObject::SelectionNone;
|
|
|
| PaintInfo paintInfoBeforeFiltering(paintInfo);
|
| if (hasSelection && !LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfoBeforeFiltering.context, m_svgRootInlineBox.layoutObject(), paintInfoBeforeFiltering.phase)) {
|
|
|