summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGPathStringSource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGPathStringSource.cpp')
-rw-r--r--Source/WebCore/svg/SVGPathStringSource.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/WebCore/svg/SVGPathStringSource.cpp b/Source/WebCore/svg/SVGPathStringSource.cpp
index 6cec31659..21776b5fe 100644
--- a/Source/WebCore/svg/SVGPathStringSource.cpp
+++ b/Source/WebCore/svg/SVGPathStringSource.cpp
@@ -19,8 +19,6 @@
*/
#include "config.h"
-
-#if ENABLE(SVG)
#include "SVGPathStringSource.h"
#include "FloatPoint.h"
@@ -136,7 +134,7 @@ template <typename CharacterType>
static bool nextCommandHelper(const CharacterType*& current, SVGPathSegType previousCommand, SVGPathSegType& nextCommand)
{
// Check for remaining coordinates in the current command.
- if ((*current == '+' || *current == '-' || *current == '.' || (*current >= '0' && *current <= '9'))
+ if ((*current == '+' || *current == '-' || *current == '.' || isASCIIDigit(*current))
&& previousCommand != PathSegClosePath) {
if (previousCommand == PathSegMoveToAbs) {
nextCommand = PathSegLineToAbs;
@@ -249,5 +247,3 @@ bool SVGPathStringSource::parseArcToSegment(float& rx, float& ry, float& angle,
}
} // namespace WebKit
-
-#endif // ENABLE(SVG)