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

Unified Diff: bindings/v8/ScriptObjectQuarantine.cpp

Issue 155477: Dom Storage (webkit side) (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/WebCore/
Patch Set: Created 11 years, 5 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 | « no previous file | bindings/v8/V8Index.h » ('j') | bindings/v8/V8Index.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bindings/v8/ScriptObjectQuarantine.cpp
===================================================================
--- bindings/v8/ScriptObjectQuarantine.cpp (revision 45738)
+++ bindings/v8/ScriptObjectQuarantine.cpp (working copy)
@@ -66,10 +66,15 @@
ASSERT(frame);
ASSERT(storage);
- // FIXME: Implement when DOM Storage V8 bindings are enabled
+#if ENABLE(DOM_STORAGE)
+ v8::Handle<v8::Value> v8Storage = V8DOMWrapper::convertToV8Object(V8ClassIndex::STORAGE, storage);
+ quarantinedObject = ScriptObject(v8::Local<v8::Object>(v8::Object::Cast(*v8Storage)));
+ return true;
+#else
ASSERT_NOT_REACHED();
quarantinedObject = ScriptObject();
- return true;
+ return false;
+#endif
}
bool getQuarantinedScriptObject(Node* node, ScriptObject& quarantinedObject)
« no previous file with comments | « no previous file | bindings/v8/V8Index.h » ('j') | bindings/v8/V8Index.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698