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

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

Issue 17225003: Support named query generation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 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/storage/Storage.cpp
diff --git a/Source/core/storage/Storage.cpp b/Source/core/storage/Storage.cpp
index c74c4a6d4bd2b23ae5b3abf7dc659599a1950091..6ede07214dffa583c5bc8c4278a7c48e22d24a27 100644
--- a/Source/core/storage/Storage.cpp
+++ b/Source/core/storage/Storage.cpp
@@ -115,4 +115,15 @@ void Storage::namedPropertyEnumerator(Vector<String>& names, ExceptionCode& ec)
}
}
+bool Storage::namedPropertyQuery(const AtomicString& name, int& returnValue, ExceptionCode& ec)
+{
+ if (name == "length")
haraken 2013/06/17 07:41:02 It's OK to leave this check in this CL, but this c
kojih 2013/06/17 07:52:57 I agree.
+ return false;
+ bool found = contains(name, ec);
+ if (ec || !found)
+ return false;
+ returnValue = 0;
+ return true;
+}
+
}
« Source/bindings/scripts/CodeGeneratorV8.pm ('K') | « Source/core/storage/Storage.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698