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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPathElement.cpp

Issue 1476283002: Drop PathParsingMode argument to buildStringFromByteStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove include; Drop forward decl. Created 5 years, 1 month 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
Index: third_party/WebKit/Source/core/svg/SVGPathElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPathElement.cpp b/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
index 676146dab788cb9592c3eaf4fcaf2b641047589f..dc0b4b416ad6382fa0fb6c8552b6b3138345e7dd 100644
--- a/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
@@ -81,18 +81,18 @@ Path SVGPathElement::asPath() const
float SVGPathElement::getTotalLength()
{
- return SVGPathQuery(pathByteStream()).getTotalLength();
+ return SVGPathQuery(m_path->currentValue()->byteStream()).getTotalLength();
}
PassRefPtrWillBeRawPtr<SVGPointTearOff> SVGPathElement::getPointAtLength(float length)
{
- FloatPoint point = SVGPathQuery(pathByteStream()).getPointAtLength(length);
+ FloatPoint point = SVGPathQuery(m_path->currentValue()->byteStream()).getPointAtLength(length);
return SVGPointTearOff::create(SVGPoint::create(point), 0, PropertyIsNotAnimVal);
}
unsigned SVGPathElement::getPathSegAtLength(float length)
{
- return SVGPathQuery(pathByteStream()).getPathSegIndexAtLength(length);
+ return SVGPathQuery(m_path->currentValue()->byteStream()).getPathSegIndexAtLength(length);
}
void SVGPathElement::svgAttributeChanged(const QualifiedName& attrName)
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathElement.h ('k') | third_party/WebKit/Source/core/svg/SVGPathUtilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698