diff options
Diffstat (limited to 'third_party/WebKit/Source/core/paint/SVGContainerPainter.cpp')
-rw-r--r-- | third_party/WebKit/Source/core/paint/SVGContainerPainter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/WebKit/Source/core/paint/SVGContainerPainter.cpp b/third_party/WebKit/Source/core/paint/SVGContainerPainter.cpp index 94e198a..6ff1ca7 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. |