| 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 62b8313eca9a5b9b84d5137f81e7a424d2bd5bad..1ad1288ffddc72e057ff4a2238cc4aa2a26ab1e6 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/ParsingUtilities.h"
|
| +#include "platform/text/ParserUtilities.h"
|
|
|
| namespace blink {
|
|
|
| @@ -40,14 +40,17 @@
|
| 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 (skipToken(start, end, "disable")) {
|
| + if (skipString(start, end, disable, WTF_ARRAY_LENGTH(disable))) {
|
| zoomAndPan = SVGZoomAndPanDisable;
|
| return true;
|
| }
|
| - if (skipToken(start, end, "magnify")) {
|
| + if (skipString(start, end, magnify, WTF_ARRAY_LENGTH(magnify))) {
|
| zoomAndPan = SVGZoomAndPanMagnify;
|
| return true;
|
| }
|
|
|