diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/svg/SVGGeometryElement.cpp')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/svg/SVGGeometryElement.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chromium/third_party/WebKit/Source/core/svg/SVGGeometryElement.cpp b/chromium/third_party/WebKit/Source/core/svg/SVGGeometryElement.cpp index 56b3d03b560..274f7a53876 100644 --- a/chromium/third_party/WebKit/Source/core/svg/SVGGeometryElement.cpp +++ b/chromium/third_party/WebKit/Source/core/svg/SVGGeometryElement.cpp @@ -31,10 +31,11 @@ #include "config.h" #include "core/svg/SVGGeometryElement.h" -#include "SVGNames.h" +#include "core/SVGNames.h" #include "core/rendering/HitTestRequest.h" #include "core/rendering/PointerEventsHitRules.h" #include "core/rendering/svg/RenderSVGShape.h" +#include "core/svg/SVGPointTearOff.h" namespace WebCore { @@ -43,7 +44,7 @@ SVGGeometryElement::SVGGeometryElement(const QualifiedName& tagName, Document& d { } -bool SVGGeometryElement::isPointInFill(const SVGPoint& point) const +bool SVGGeometryElement::isPointInFill(PassRefPtr<SVGPointTearOff> point) const { document().updateLayoutIgnorePendingStylesheets(); @@ -54,10 +55,10 @@ bool SVGGeometryElement::isPointInFill(const SVGPoint& point) const HitTestRequest request(HitTestRequest::ReadOnly); PointerEventsHitRules hitRules(PointerEventsHitRules::SVG_GEOMETRY_HITTESTING, request, renderer()->style()->pointerEvents()); hitRules.canHitStroke = false; - return toRenderSVGShape(renderer())->nodeAtFloatPointInternal(request, point, hitRules); + return toRenderSVGShape(renderer())->nodeAtFloatPointInternal(request, point->target()->value(), hitRules); } -bool SVGGeometryElement::isPointInStroke(const SVGPoint& point) const +bool SVGGeometryElement::isPointInStroke(PassRefPtr<SVGPointTearOff> point) const { document().updateLayoutIgnorePendingStylesheets(); @@ -68,7 +69,7 @@ bool SVGGeometryElement::isPointInStroke(const SVGPoint& point) const HitTestRequest request(HitTestRequest::ReadOnly); PointerEventsHitRules hitRules(PointerEventsHitRules::SVG_GEOMETRY_HITTESTING, request, renderer()->style()->pointerEvents()); hitRules.canHitFill = false; - return toRenderSVGShape(renderer())->nodeAtFloatPointInternal(request, point, hitRules); + return toRenderSVGShape(renderer())->nodeAtFloatPointInternal(request, point->target()->value(), hitRules); } } |