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

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

Issue 2176623003: Remove platform/text/ParserUtilities.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove from blink_platform.gypi 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 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;
}
« 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