diff --git a/Source/WebCore/rendering/svg/RenderSVGImage.cpp b/Source/WebCore/rendering/svg/RenderSVGImage.cpp index 2c6f3178e..982dcd27b 100644 --- a/Source/WebCore/rendering/svg/RenderSVGImage.cpp +++ b/Source/WebCore/rendering/svg/RenderSVGImage.cpp @@ -150,7 +150,7 @@ void RenderSVGImage::paint(PaintInfo& paintInfo, const LayoutPoint&) GraphicsContextStateSaver stateSaver(childPaintInfo.context()); childPaintInfo.applyTransform(m_localTransform); - if (childPaintInfo.phase == PaintPhase::Foreground) { + if (childPaintInfo.phase == PaintPhase::Foreground && !m_objectBoundingBox.isEmpty()) { SVGRenderingContext renderingContext(*this, childPaintInfo); if (renderingContext.isRenderingPrepared()) {