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

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

Issue 1023993002: Rework the SVGPathSource interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Blender fixups. Created 5 years, 9 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/SVGParserUtilities.h ('k') | Source/core/svg/SVGPathBlender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGParserUtilities.cpp
diff --git a/Source/core/svg/SVGParserUtilities.cpp b/Source/core/svg/SVGParserUtilities.cpp
index a810bc91d8c8762499a65d86006772c2f8f95d6e..5cb58a395ef3050e5021165aa99f2f842f80fe3b 100644
--- a/Source/core/svg/SVGParserUtilities.cpp
+++ b/Source/core/svg/SVGParserUtilities.cpp
@@ -251,66 +251,6 @@ bool parseNumberOrPercentage(const String& string, float& number)
return genericParseNumberOrPercentage(ptr, end, number);
}
-template <typename CharType>
-bool parseFloatPoint(const CharType*& current, const CharType* end, FloatPoint& point)
-{
- float x;
- float y;
- if (!parseNumber(current, end, x)
- || !parseNumber(current, end, y))
- return false;
- point = FloatPoint(x, y);
- return true;
-}
-
-template bool parseFloatPoint(const LChar*& current, const LChar* end, FloatPoint& point1);
-template bool parseFloatPoint(const UChar*& current, const UChar* end, FloatPoint& point1);
-
-template <typename CharType>
-inline bool parseFloatPoint2(const CharType*& current, const CharType* end, FloatPoint& point1, FloatPoint& point2)
-{
- float x1;
- float y1;
- float x2;
- float y2;
- if (!parseNumber(current, end, x1)
- || !parseNumber(current, end, y1)
- || !parseNumber(current, end, x2)
- || !parseNumber(current, end, y2))
- return false;
- point1 = FloatPoint(x1, y1);
- point2 = FloatPoint(x2, y2);
- return true;
-}
-
-template bool parseFloatPoint2(const LChar*& current, const LChar* end, FloatPoint& point1, FloatPoint& point2);
-template bool parseFloatPoint2(const UChar*& current, const UChar* end, FloatPoint& point1, FloatPoint& point2);
-
-template <typename CharType>
-bool parseFloatPoint3(const CharType*& current, const CharType* end, FloatPoint& point1, FloatPoint& point2, FloatPoint& point3)
-{
- float x1;
- float y1;
- float x2;
- float y2;
- float x3;
- float y3;
- if (!parseNumber(current, end, x1)
- || !parseNumber(current, end, y1)
- || !parseNumber(current, end, x2)
- || !parseNumber(current, end, y2)
- || !parseNumber(current, end, x3)
- || !parseNumber(current, end, y3))
- return false;
- point1 = FloatPoint(x1, y1);
- point2 = FloatPoint(x2, y2);
- point3 = FloatPoint(x3, y3);
- return true;
-}
-
-template bool parseFloatPoint3(const LChar*& current, const LChar* end, FloatPoint& point1, FloatPoint& point2, FloatPoint& point3);
-template bool parseFloatPoint3(const UChar*& current, const UChar* end, FloatPoint& point1, FloatPoint& point2, FloatPoint& point3);
-
static const LChar skewXDesc[] = {'s', 'k', 'e', 'w', 'X'};
static const LChar skewYDesc[] = {'s', 'k', 'e', 'w', 'Y'};
static const LChar scaleDesc[] = {'s', 'c', 'a', 'l', 'e'};
« no previous file with comments | « Source/core/svg/SVGParserUtilities.h ('k') | Source/core/svg/SVGPathBlender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698