Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(720)

Unified Diff: Source/core/svg/SVGGeometryElement.cpp

Issue 132233016: [SVG] SVGAnimatedPointList migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: set NeedsRebaseline Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGGeometryElement.h ('k') | Source/core/svg/SVGParserUtilities.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGGeometryElement.cpp
diff --git a/Source/core/svg/SVGGeometryElement.cpp b/Source/core/svg/SVGGeometryElement.cpp
index 56b3d03b56089c0f849a9eaf40257b35047f450a..c8c125b19ddd5284d2ede21dbf0e868f4f5d5e4e 100644
--- a/Source/core/svg/SVGGeometryElement.cpp
+++ b/Source/core/svg/SVGGeometryElement.cpp
@@ -35,6 +35,7 @@
#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);
}
}
« no previous file with comments | « Source/core/svg/SVGGeometryElement.h ('k') | Source/core/svg/SVGParserUtilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698