summaryrefslogtreecommitdiffstats
path: root/WebCore/rendering/RenderFieldset.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/rendering/RenderFieldset.cpp')
-rw-r--r--WebCore/rendering/RenderFieldset.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/WebCore/rendering/RenderFieldset.cpp b/WebCore/rendering/RenderFieldset.cpp
index 1f2b371..889b0bc 100644
--- a/WebCore/rendering/RenderFieldset.cpp
+++ b/WebCore/rendering/RenderFieldset.cpp
@@ -119,6 +119,9 @@ RenderBox* RenderFieldset::findLegend() const
void RenderFieldset::paintBoxDecorations(PaintInfo& paintInfo, int tx, int ty)
{
+ if (!shouldPaintWithinRoot(paintInfo))
+ return;
+
int w = width();
int h = height();
RenderBox* legend = findLegend();