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

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: 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
Index: Source/core/storage/Storage.cpp
diff --git a/Source/core/storage/Storage.cpp b/Source/core/storage/Storage.cpp
index fe7955bf14dabd28b21741fd0dca13040d1f63fc..350dafc09b02b78072300dd4c6a59ba87670c98d 100644
--- a/Source/core/storage/Storage.cpp
+++ b/Source/core/storage/Storage.cpp
@@ -73,10 +73,15 @@ String Storage::anonymousNamedGetter(const AtomicString& name, ExceptionCode& ec
return result;
}
-bool Storage::anonymousNamedSetter(const AtomicString& name, const AtomicString& value, ExceptionCode& ec)
+bool Storage::anonymousNamedSetter(const AtomicString& name, const AtomicString& value, bool isValueNull, bool isValueUndefined, ExceptionCode& ec)
{
setItem(name, value, ec);
return true;
}
+bool Storage::anonymousIndexedSetter(unsigned index, const AtomicString& value, bool isValueNull, bool isValueUndefined, ExceptionCode& ec)
+{
+ return anonymousNamedSetter(String::number(index), value, isValueNull, isValueUndefined, ec);
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698