| Index: third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp b/third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp
|
| index a4abd53dbbb3f90bd69c423d10a18e0c012e033a..bcd755aae2d9e3e00a6af73a15953167f1b10f5c 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp
|
| @@ -23,8 +23,8 @@
|
|
|
| #include "core/svg/SVGAnimationElement.h"
|
| #include "core/svg/SVGParserUtilities.h"
|
| +#include "platform/ParsingUtilities.h"
|
| #include "platform/geometry/FloatRect.h"
|
| -#include "platform/text/ParserUtilities.h"
|
| #include "platform/transforms/AffineTransform.h"
|
| #include "wtf/text/WTFString.h"
|
|
|
| @@ -65,7 +65,7 @@ SVGParsingError SVGPreserveAspectRatio::parseInternal(const CharType*& ptr, cons
|
| return SVGParsingError(SVGParseStatus::ExpectedEnumeration, ptr - start);
|
|
|
| if (*ptr == 'n') {
|
| - if (!skipString(ptr, end, "none"))
|
| + if (!skipToken(ptr, end, "none"))
|
| return SVGParsingError(SVGParseStatus::ExpectedEnumeration, ptr - start);
|
| align = SVG_PRESERVEASPECTRATIO_NONE;
|
| skipOptionalSVGSpaces(ptr, end);
|
| @@ -128,11 +128,11 @@ SVGParsingError SVGPreserveAspectRatio::parseInternal(const CharType*& ptr, cons
|
|
|
| if (ptr < end) {
|
| if (*ptr == 'm') {
|
| - if (!skipString(ptr, end, "meet"))
|
| + if (!skipToken(ptr, end, "meet"))
|
| return SVGParsingError(SVGParseStatus::ExpectedEnumeration, ptr - start);
|
| skipOptionalSVGSpaces(ptr, end);
|
| } else if (*ptr == 's') {
|
| - if (!skipString(ptr, end, "slice"))
|
| + if (!skipToken(ptr, end, "slice"))
|
| return SVGParsingError(SVGParseStatus::ExpectedEnumeration, ptr - start);
|
| skipOptionalSVGSpaces(ptr, end);
|
| if (align != SVG_PRESERVEASPECTRATIO_NONE)
|
|
|