Index: Source/core/paint/FieldsetPainter.cpp |
diff --git a/Source/core/paint/FieldsetPainter.cpp b/Source/core/paint/FieldsetPainter.cpp |
index 201a1dc3af04e4942ff472f384948943ef891f45..f8bcf9ecbe4af767fad4fa2ab9b77991f5837ae8 100644 |
--- a/Source/core/paint/FieldsetPainter.cpp |
+++ b/Source/core/paint/FieldsetPainter.cpp |
@@ -19,7 +19,7 @@ void FieldsetPainter::paintBoxDecorationBackground(const PaintInfo& paintInfo, c |
return; |
LayoutRect paintRect(paintOffset, m_layoutFieldset.size()); |
- LayoutBox* legend = m_layoutFieldset.findLegend(); |
+ LayoutBox* legend = m_layoutFieldset.findInFlowLegend(); |
if (!legend) |
return BoxPainter(m_layoutFieldset).paintBoxDecorationBackground(paintInfo, paintOffset); |
@@ -76,7 +76,7 @@ void FieldsetPainter::paintMask(const PaintInfo& paintInfo, const LayoutPoint& p |
return; |
LayoutRect paintRect = LayoutRect(paintOffset, m_layoutFieldset.size()); |
- LayoutBox* legend = m_layoutFieldset.findLegend(); |
+ LayoutBox* legend = m_layoutFieldset.findInFlowLegend(); |
if (!legend) |
return BoxPainter(m_layoutFieldset).paintMask(paintInfo, paintOffset); |