Index: third_party/WebKit/Source/core/paint/SVGContainerPainter.cpp |
diff --git a/third_party/WebKit/Source/core/paint/SVGContainerPainter.cpp b/third_party/WebKit/Source/core/paint/SVGContainerPainter.cpp |
index 94e198a4a9d4744583cfe22d1de49311c4a60b22..6ff1ca7467bda3594dc8ee1128d4dceaedfe5117 100644 |
--- a/third_party/WebKit/Source/core/paint/SVGContainerPainter.cpp |
+++ b/third_party/WebKit/Source/core/paint/SVGContainerPainter.cpp |
@@ -24,7 +24,9 @@ void SVGContainerPainter::paint(const PaintInfo& paintInfo) |
return; |
FloatRect boundingBox = m_layoutSVGContainer.paintInvalidationRectInLocalSVGCoordinates(); |
- if (!paintInfo.cullRect().intersectsCullRect(m_layoutSVGContainer.localToSVGParentTransform(), boundingBox)) |
+ // LayoutSVGHiddenContainer's paint invalidation rect is always empty but we need to paint its descendants. |
+ if (!m_layoutSVGContainer.isSVGHiddenContainer() |
+ && !paintInfo.cullRect().intersectsCullRect(m_layoutSVGContainer.localToSVGParentTransform(), boundingBox)) |
return; |
// Spec: An empty viewBox on the <svg> element disables rendering. |