| Index: Source/core/paint/BlockPainter.cpp
|
| diff --git a/Source/core/paint/BlockPainter.cpp b/Source/core/paint/BlockPainter.cpp
|
| index 063137121ed707a7061a80678f5ff877bfa04c26..f613897f5f0af0c4ccab065512ce878f02787c5f 100644
|
| --- a/Source/core/paint/BlockPainter.cpp
|
| +++ b/Source/core/paint/BlockPainter.cpp
|
| @@ -185,7 +185,7 @@ void BlockPainter::paintObject(const PaintInfo& paintInfo, const LayoutPoint& pa
|
|
|
| // FIXME: When Skia supports annotation rect covering (https://code.google.com/p/skia/issues/detail?id=3872),
|
| // this rect may be covered by foreground and descendant drawings. Then we may need a dedicated paint phase.
|
| - if (paintPhase == PaintPhaseForeground && paintInfo.context->printing())
|
| + if (paintPhase == PaintPhaseForeground && paintInfo.printing())
|
| ObjectPainter(m_layoutBlock).addPDFURLRectIfNeeded(paintInfo, paintOffset);
|
|
|
| {
|
| @@ -209,7 +209,7 @@ void BlockPainter::paintObject(const PaintInfo& paintInfo, const LayoutPoint& pa
|
| if (paintPhase != PaintPhaseSelfOutline)
|
| paintContents(contentsPaintInfo, paintOffset);
|
|
|
| - if (paintPhase == PaintPhaseForeground && !m_layoutBlock.document().printing())
|
| + if (paintPhase == PaintPhaseForeground && !paintInfo.printing())
|
| m_layoutBlock.paintSelection(contentsPaintInfo, paintOffset); // Fill in gaps in selection on lines and between blocks.
|
|
|
| if (paintPhase == PaintPhaseFloat || paintPhase == PaintPhaseSelection || paintPhase == PaintPhaseTextClip)
|
|
|