Index: Source/core/paint/InlinePainter.cpp |
diff --git a/Source/core/paint/InlinePainter.cpp b/Source/core/paint/InlinePainter.cpp |
index 73a8e1f763bf26c436b818c7ec032e81ba2c2900..f591f415968f39eeeea921300e1092f95657a8a9 100644 |
--- a/Source/core/paint/InlinePainter.cpp |
+++ b/Source/core/paint/InlinePainter.cpp |
@@ -23,7 +23,7 @@ void InlinePainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOf |
{ |
// 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 (paintInfo.phase == PaintPhaseForeground && paintInfo.context->printing()) |
+ if (paintInfo.phase == PaintPhaseForeground && paintInfo.isPrinting()) |
ObjectPainter(m_layoutInline).addPDFURLRectIfNeeded(paintInfo, paintOffset); |
LineBoxListPainter(*m_layoutInline.lineBoxes()).paint(&m_layoutInline, paintInfo, paintOffset); |