Index: third_party/WebKit/Source/core/svg/SVGZoomAndPan.cpp |
diff --git a/third_party/WebKit/Source/core/svg/SVGZoomAndPan.cpp b/third_party/WebKit/Source/core/svg/SVGZoomAndPan.cpp |
index 1ad1288ffddc72e057ff4a2238cc4aa2a26ab1e6..62b8313eca9a5b9b84d5137f81e7a424d2bd5bad 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGZoomAndPan.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGZoomAndPan.cpp |
@@ -21,7 +21,7 @@ |
#include "core/svg/SVGZoomAndPan.h" |
-#include "platform/text/ParserUtilities.h" |
+#include "platform/ParsingUtilities.h" |
namespace blink { |
@@ -40,17 +40,14 @@ bool SVGZoomAndPan::isKnownAttribute(const QualifiedName& attrName) |
return attrName == SVGNames::zoomAndPanAttr; |
} |
-static const LChar disable[] = {'d', 'i', 's', 'a', 'b', 'l', 'e'}; |
-static const LChar magnify[] = {'m', 'a', 'g', 'n', 'i', 'f', 'y'}; |
- |
template<typename CharType> |
static bool parseZoomAndPanInternal(const CharType*& start, const CharType* end, SVGZoomAndPanType& zoomAndPan) |
{ |
- if (skipString(start, end, disable, WTF_ARRAY_LENGTH(disable))) { |
+ if (skipToken(start, end, "disable")) { |
zoomAndPan = SVGZoomAndPanDisable; |
return true; |
} |
- if (skipString(start, end, magnify, WTF_ARRAY_LENGTH(magnify))) { |
+ if (skipToken(start, end, "magnify")) { |
zoomAndPan = SVGZoomAndPanMagnify; |
return true; |
} |