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..cd31aef5a4c6cef225de8e1e003328d1bf195a1e 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)->isShapeEmpty()) |
f(malita)
2014/06/25 15:16:50
We have a similar check for containers in updateOb
|
+ continue; |
+ |
const AffineTransform& transform = current->localToParentTransform(); |
updateObjectBoundingBox(objectBoundingBox, objectBoundingBoxValid, current, |
transform.mapRect(current->objectBoundingBox())); |