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

Unified Diff: Source/platform/JSONValues.h

Issue 1167793003: Escape all of invalid values in console messages for INPUT elements. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | « Source/core/html/forms/TimeInputType.cpp ('k') | Source/platform/JSONValues.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/JSONValues.h
diff --git a/Source/platform/JSONValues.h b/Source/platform/JSONValues.h
index 41ebca9fc8592f1a78790e2fb6fec28bdb841b6d..73b19c39ffbbbb994f75c626176fbfdd4be2abeb 100644
--- a/Source/platform/JSONValues.h
+++ b/Source/platform/JSONValues.h
@@ -117,6 +117,8 @@ public:
virtual void writeJSON(StringBuilder* output) const;
virtual void prettyWriteJSON(StringBuilder* output) const;
+ static String quoteString(const String&);
+
protected:
explicit JSONValue(Type type) : m_type(type) { }
virtual void prettyWriteJSONInternal(StringBuilder* output, int depth) const;
« no previous file with comments | « Source/core/html/forms/TimeInputType.cpp ('k') | Source/platform/JSONValues.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698