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

Unified Diff: Source/core/storage/Storage.cpp

Issue 15899009: Support indexed setter generation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebased Created 7 years, 7 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/storage/Storage.h ('k') | Source/core/storage/Storage.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/storage/Storage.cpp
diff --git a/Source/core/storage/Storage.cpp b/Source/core/storage/Storage.cpp
index 99557b16f10f015f17e69b297f4842746c4f1237..14c912acf89480bddb83ea73e1f717a81a59e293 100644
--- a/Source/core/storage/Storage.cpp
+++ b/Source/core/storage/Storage.cpp
@@ -79,6 +79,11 @@ bool Storage::anonymousNamedSetter(const AtomicString& name, const AtomicString&
return true;
}
+bool Storage::anonymousIndexedSetter(unsigned index, const AtomicString& value, ExceptionCode& ec)
+{
+ return anonymousNamedSetter(String::number(index), value, ec);
+}
+
bool Storage::anonymousNamedDeleter(const AtomicString& name, ExceptionCode& ec)
{
bool found = contains(name, ec);
« no previous file with comments | « Source/core/storage/Storage.h ('k') | Source/core/storage/Storage.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698