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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp

Issue 2179563002: Revert of Remove platform/text/ParserUtilities.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | third_party/WebKit/Source/core/svg/SVGTransformList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bcd755aae2d9e3e00a6af73a15953167f1b10f5c..a4abd53dbbb3f90bd69c423d10a18e0c012e033a 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 @@
return SVGParsingError(SVGParseStatus::ExpectedEnumeration, ptr - start);
if (*ptr == 'n') {
- if (!skipToken(ptr, end, "none"))
+ if (!skipString(ptr, end, "none"))
return SVGParsingError(SVGParseStatus::ExpectedEnumeration, ptr - start);
align = SVG_PRESERVEASPECTRATIO_NONE;
skipOptionalSVGSpaces(ptr, end);
@@ -128,11 +128,11 @@
if (ptr < end) {
if (*ptr == 'm') {
- if (!skipToken(ptr, end, "meet"))
+ if (!skipString(ptr, end, "meet"))
return SVGParsingError(SVGParseStatus::ExpectedEnumeration, ptr - start);
skipOptionalSVGSpaces(ptr, end);
} else if (*ptr == 's') {
- if (!skipToken(ptr, end, "slice"))
+ if (!skipString(ptr, end, "slice"))
return SVGParsingError(SVGParseStatus::ExpectedEnumeration, ptr - start);
skipOptionalSVGSpaces(ptr, end);
if (align != SVG_PRESERVEASPECTRATIO_NONE)
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGTransformList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698