Index: third_party/WebKit/Source/core/paint/PartPainter.cpp |
diff --git a/third_party/WebKit/Source/core/paint/PartPainter.cpp b/third_party/WebKit/Source/core/paint/PartPainter.cpp |
index f170f500aa9d89521c9dc15c067dc9020696e25b..7b1fe4b9262fe9ad81ed06b63252347e10f27a95 100644 |
--- a/third_party/WebKit/Source/core/paint/PartPainter.cpp |
+++ b/third_party/WebKit/Source/core/paint/PartPainter.cpp |
@@ -55,7 +55,7 @@ void PartPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOffs |
return; |
} |
- if ((paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) && m_layoutPart.style()->hasOutline()) |
+ if (shouldPaintSelfOutline(paintInfo.phase)) |
ObjectPainter(m_layoutPart).paintOutline(paintInfo, adjustedPaintOffset); |
if (paintInfo.phase != PaintPhaseForeground) |