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

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

Issue 545173003: Support scientific notation in CSS numbers/percentages/dimensions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop parseSVGNumber; Add additional TC. Created 6 years, 3 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') | no next file » | 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 86b1ef0fe3897dbe098f5e0cdb55b62665c0c694..21a4aea865988b6a8029e0ca131933ce46789f35 100644
--- a/Source/core/svg/SVGParserUtilities.cpp
+++ b/Source/core/svg/SVGParserUtilities.cpp
@@ -145,18 +145,6 @@ static bool genericParseNumber(const CharType*& ptr, const CharType* end, FloatT
return true;
}
-template <typename CharType>
-bool parseSVGNumber(CharType* begin, size_t length, double& number)
-{
- const CharType* ptr = begin;
- const CharType* end = ptr + length;
- return genericParseNumber(ptr, end, number, AllowLeadingAndTrailingWhitespace);
-}
-
-// Explicitly instantiate the two flavors of parseSVGNumber() to satisfy external callers
-template bool parseSVGNumber(LChar* begin, size_t length, double&);
-template bool parseSVGNumber(UChar* begin, size_t length, double&);
-
bool parseNumber(const LChar*& ptr, const LChar* end, float& number, WhitespaceMode mode)
{
return genericParseNumber(ptr, end, number, mode);
« no previous file with comments | « Source/core/svg/SVGParserUtilities.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698