Index: Source/core/paint/LineBoxListPainter.cpp |
diff --git a/Source/core/paint/LineBoxListPainter.cpp b/Source/core/paint/LineBoxListPainter.cpp |
index 6ddbe3a009dc790648d587ea4e4052f5b2c3b9ab..b715d3fb5b9c1943d6d0add0632f8ab7f051348e 100644 |
--- a/Source/core/paint/LineBoxListPainter.cpp |
+++ b/Source/core/paint/LineBoxListPainter.cpp |
@@ -37,7 +37,7 @@ void LineBoxListPainter::paint(LayoutBoxModelObject* layoutObject, const PaintIn |
// FIXME: When Skia supports annotation rect covering (https://code.google.com/p/skia/issues/detail?id=3872), |
// these rects may be covered line box drawings. Then we may need a dedicated paint phase. |
- if (paintInfo.phase == PaintPhaseForeground && paintInfo.context->printing()) |
+ if (paintInfo.phase == PaintPhaseForeground && paintInfo.isPrinting()) |
addPDFURLRectsForInlineChildrenRecursively(layoutObject, paintInfo, paintOffset); |
// If we have no lines then we have no work to do. |