Index: Source/core/rendering/svg/RenderSVGShape.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGShape.cpp b/Source/core/rendering/svg/RenderSVGShape.cpp |
index 9ea30e9b8251772c787fbd98e7ea5169fc5be4ac..04298f7e49d8d64694ea67ec3e81445086a2af21 100644 |
--- a/Source/core/rendering/svg/RenderSVGShape.cpp |
+++ b/Source/core/rendering/svg/RenderSVGShape.cpp |
@@ -338,7 +338,8 @@ bool RenderSVGShape::nodeAtFloatPointInternal(const HitTestRequest& request, con |
WindRule fillRule = svgStyle->fillRule(); |
if (request.svgClipContent()) |
fillRule = svgStyle->clipRule(); |
- if ((hitRules.canHitStroke && (svgStyle->hasStroke() || !hitRules.requireStroke) && strokeContains(localPoint, hitRules.requireStroke)) |
+ if ((hitRules.canHitBoundingBox && objectBoundingBox().contains(localPoint)) |
+ || (hitRules.canHitStroke && (svgStyle->hasStroke() || !hitRules.requireStroke) && strokeContains(localPoint, hitRules.requireStroke)) |
|| (hitRules.canHitFill && (svgStyle->hasFill() || !hitRules.requireFill) && fillContains(localPoint, hitRules.requireFill, fillRule))) |
return true; |
} |