| Index: Source/core/paint/SVGRootInlineBoxPainter.cpp
|
| diff --git a/Source/core/paint/SVGRootInlineBoxPainter.cpp b/Source/core/paint/SVGRootInlineBoxPainter.cpp
|
| index 63dcc468a30b091e66cd573814b356b00158716e..d280b7065b7d8176db2a8d56eec7e602e4391705 100644
|
| --- a/Source/core/paint/SVGRootInlineBoxPainter.cpp
|
| +++ b/Source/core/paint/SVGRootInlineBoxPainter.cpp
|
| @@ -20,12 +20,12 @@ void SVGRootInlineBoxPainter::paint(const PaintInfo& paintInfo, const LayoutPoin
|
| {
|
| ASSERT(paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection);
|
|
|
| - bool isPrinting = m_svgRootInlineBox.renderer().document().printing();
|
| + bool isPrinting = m_svgRootInlineBox.layoutObject().document().printing();
|
| bool hasSelection = !isPrinting && m_svgRootInlineBox.selectionState() != LayoutObject::SelectionNone;
|
|
|
| PaintInfo paintInfoBeforeFiltering(paintInfo);
|
| if (hasSelection) {
|
| - RenderDrawingRecorder recorder(paintInfoBeforeFiltering.context, m_svgRootInlineBox.renderer(), paintInfoBeforeFiltering.phase, paintInfoBeforeFiltering.rect);
|
| + RenderDrawingRecorder recorder(paintInfoBeforeFiltering.context, m_svgRootInlineBox.layoutObject(), paintInfoBeforeFiltering.phase, paintInfoBeforeFiltering.rect);
|
| if (!recorder.canUseCachedDrawing()) {
|
| for (InlineBox* child = m_svgRootInlineBox.firstChild(); child; child = child->nextOnLine()) {
|
| if (child->isSVGInlineTextBox())
|
| @@ -36,7 +36,7 @@ void SVGRootInlineBoxPainter::paint(const PaintInfo& paintInfo, const LayoutPoin
|
| }
|
| }
|
|
|
| - SVGPaintContext paintContext(m_svgRootInlineBox.renderer(), paintInfoBeforeFiltering);
|
| + SVGPaintContext paintContext(m_svgRootInlineBox.layoutObject(), paintInfoBeforeFiltering);
|
| if (paintContext.applyClipMaskAndFilterIfNecessary()) {
|
| for (InlineBox* child = m_svgRootInlineBox.firstChild(); child; child = child->nextOnLine())
|
| child->paint(paintContext.paintInfo(), paintOffset, 0, 0);
|
|
|