| Index: Source/core/rendering/svg/RenderSVGRect.cpp
|
| diff --git a/Source/core/rendering/svg/RenderSVGRect.cpp b/Source/core/rendering/svg/RenderSVGRect.cpp
|
| index 5fd79e7f626db218567312903f35270f851a0349..abfcc4ab3ce1ac98314d69d021bb40007080f769 100644
|
| --- a/Source/core/rendering/svg/RenderSVGRect.cpp
|
| +++ b/Source/core/rendering/svg/RenderSVGRect.cpp
|
| @@ -129,4 +129,13 @@ bool RenderSVGRect::shapeDependentFillContains(const FloatPoint& point, const Wi
|
| return m_fillBoundingBox.contains(point.x(), point.y());
|
| }
|
|
|
| +bool RenderSVGRect::isRenderingDisabled() const
|
| +{
|
| + // Some combinations of attributes cause SVG elements
|
| + // to not render.
|
| + // For rects a negative dimension is an error and
|
| + // a zero dimension disables rendering.
|
| + return m_fillBoundingBox.isEmpty();
|
| +}
|
| +
|
| }
|
|
|