| Index: Source/core/rendering/svg/RenderSVGRoot.cpp
|
| diff --git a/Source/core/rendering/svg/RenderSVGRoot.cpp b/Source/core/rendering/svg/RenderSVGRoot.cpp
|
| index f63f5f9a8c9583b583577bff16721aabd575d66e..563a20d6c2d23108977619f652854713f80c4894 100644
|
| --- a/Source/core/rendering/svg/RenderSVGRoot.cpp
|
| +++ b/Source/core/rendering/svg/RenderSVGRoot.cpp
|
| @@ -256,8 +256,9 @@ void RenderSVGRoot::paintReplaced(PaintInfo& paintInfo, const LayoutPoint& paint
|
| PaintInfo childPaintInfo(paintInfo);
|
| childPaintInfo.context->save();
|
|
|
| - // Apply initial viewport clip - not affected by overflow handling
|
| - childPaintInfo.context->clip(pixelSnappedIntRect(overflowClipRect(paintOffset)));
|
| + // Apply initial viewport clip, the outermost svg is clipped if auto
|
| + if (style()->overflowX() == OHIDDEN || style()->overflowX() == OAUTO)
|
| + childPaintInfo.context->clip(pixelSnappedIntRect(overflowClipRect(paintOffset)));
|
|
|
| // Convert from container offsets (html renderers) to a relative transform (svg renderers).
|
| // Transform from our paint container's coordinate system to our local coords.
|
|
|