Index: Source/core/paint/ReplacedPainter.cpp |
diff --git a/Source/core/paint/ReplacedPainter.cpp b/Source/core/paint/ReplacedPainter.cpp |
index 65c065e8c8d43586b9396ac60f75a7b7dfae70a2..a61f1b7654aea40d38db3f53dde5b1025ec65ca9 100644 |
--- a/Source/core/paint/ReplacedPainter.cpp |
+++ b/Source/core/paint/ReplacedPainter.cpp |
@@ -42,8 +42,11 @@ void ReplacedPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paint |
if (paintInfo.phase == PaintPhaseClippingMask && (!m_layoutReplaced.hasLayer() || !m_layoutReplaced.layer()->hasCompositedClippingMask())) |
return; |
- if ((paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) && m_layoutReplaced.style()->outlineWidth()) |
- ObjectPainter(m_layoutReplaced).paintOutline(paintInfo, paintRect, visualOverflowRect); |
+ if (paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) { |
+ if (m_layoutReplaced.styleRef().outlineWidth()) |
+ ObjectPainter(m_layoutReplaced).paintOutline(paintInfo, paintRect, visualOverflowRect); |
+ return; |
+ } |
if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseSelection && !m_layoutReplaced.canHaveChildren() && paintInfo.phase != PaintPhaseClippingMask) |
return; |