Index: Source/WebCore/rendering/RenderBoxModelObject.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderBoxModelObject.cpp (revision 144663) |
+++ Source/WebCore/rendering/RenderBoxModelObject.cpp (working copy) |
@@ -711,7 +711,14 @@ |
if (hasRoundedBorder && bleedAvoidance != BackgroundBleedUseTransparencyLayer) { |
RoundedRect border = backgroundRoundedRectAdjustedForBleedAvoidance(context, rect, bleedAvoidance, box, boxSize, includeLeftEdge, includeRightEdge); |
- context->fillRoundedRect(border, bgColor, style()->colorSpace()); |
+ if (border.isRenderable()) |
+ context->fillRoundedRect(border, bgColor, style()->colorSpace()); |
+ else { |
+ context->save(); |
+ clipRoundedInnerRect(context, rect, border); |
+ context->fillRect(border.rect(), bgColor, style()->colorSpace()); |
+ context->restore(); |
+ } |
} else |
context->fillRect(pixelSnappedIntRect(rect), bgColor, style()->colorSpace()); |