Index: Source/core/rendering/svg/SVGRenderSupport.cpp |
diff --git a/Source/core/rendering/svg/SVGRenderSupport.cpp b/Source/core/rendering/svg/SVGRenderSupport.cpp |
index 9dd0415e574bce090d11c0e3b03f23355eec91dd..027a69b0b23a1c7fe8d45dd790598b206daabec1 100644 |
--- a/Source/core/rendering/svg/SVGRenderSupport.cpp |
+++ b/Source/core/rendering/svg/SVGRenderSupport.cpp |
@@ -137,6 +137,10 @@ void SVGRenderSupport::computeContainerBoundingBoxes(const RenderObject* contain |
if (current->isSVGHiddenContainer()) |
continue; |
+ // Don't include elements in the union that do not render. |
+ if (current->isSVGShape() && toRenderSVGShape(current)->isRenderingDisabled()) |
+ continue; |
+ |
const AffineTransform& transform = current->localToParentTransform(); |
updateObjectBoundingBox(objectBoundingBox, objectBoundingBoxValid, current, |
transform.mapRect(current->objectBoundingBox())); |