| Index: third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp b/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp
|
| index 83fe10cc449558e1f07cffeb49d95b341db00594..646a3f4c2311e295d8193b64d956084229ca0688 100644
|
| --- a/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp
|
| @@ -124,6 +124,17 @@ bool SVGLayoutSupport::mapToVisualRectInAncestorSpace(const LayoutObject& object
|
| AffineTransform rootBorderBoxTransform;
|
| const LayoutSVGRoot& svgRoot = computeTransformToSVGRoot(object, rootBorderBoxTransform);
|
| resultRect = transformPaintInvalidationRect(object, rootBorderBoxTransform, localPaintInvalidationRect);
|
| +
|
| + // Apply initial viewport clip.
|
| + if (svgRoot.shouldApplyViewportClip()) {
|
| + LayoutRect clipRect(svgRoot.pixelSnappedBorderBoxRect());
|
| + if (visualRectFlags & EdgeInclusive) {
|
| + if (!resultRect.inclusiveIntersect(clipRect))
|
| + return false;
|
| + } else {
|
| + resultRect.intersect(clipRect);
|
| + }
|
| + }
|
| return svgRoot.mapToVisualRectInAncestorSpace(ancestor, resultRect, visualRectFlags);
|
| }
|
|
|
|
|