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

Unified Diff: Source/core/dom/DOMStringList.h

Issue 966843002: Mark DOMStringList.contains() as deprecated, add console warning. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased 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
Index: Source/core/dom/DOMStringList.h
diff --git a/Source/core/dom/DOMStringList.h b/Source/core/dom/DOMStringList.h
index 1c94de5e38ee34b75088ff820fc28c04a6999b82..5131c51fb8ab21837b997e5f9ec2456d6db8346a 100644
--- a/Source/core/dom/DOMStringList.h
+++ b/Source/core/dom/DOMStringList.h
@@ -53,6 +53,7 @@ public:
// Implements the IDL.
size_t length() const { return m_strings.size(); }
+ String anonymousIndexedGetter(unsigned index) const { return item(index); }
String item(unsigned index) const;
bool contains(const String& str) const;

Powered by Google App Engine
This is Rietveld 408576698