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

Unified Diff: third_party/WebKit/Source/core/svg/SVGZoomAndPan.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
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;
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGViewSpec.cpp ('k') | third_party/WebKit/Source/platform/blink_platform.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698