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

Unified Diff: Source/bindings/core/v8/V8DOMConfiguration.cpp

Issue 483163003: Introduce ES6 iterator for DOM objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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/bindings/core/v8/V8DOMConfiguration.h ('k') | Source/bindings/scripts/v8_interface.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/V8DOMConfiguration.cpp
diff --git a/Source/bindings/core/v8/V8DOMConfiguration.cpp b/Source/bindings/core/v8/V8DOMConfiguration.cpp
index f67dd76451ff290f6afeb94ba3f5786bc0a1a8de..b15b9869d3633a94af91e4294075c2b384efa07d 100644
--- a/Source/bindings/core/v8/V8DOMConfiguration.cpp
+++ b/Source/bindings/core/v8/V8DOMConfiguration.cpp
@@ -107,12 +107,9 @@ void V8DOMConfiguration::installMethods(v8::Handle<v8::ObjectTemplate> prototype
installMethod(prototype, signature, attributes, callbacks[i], isolate);
}
-v8::Handle<v8::FunctionTemplate> V8DOMConfiguration::functionTemplateForMethod(v8::Handle<v8::Signature> signature, const MethodConfiguration& callback, v8::Isolate* isolate)
+v8::Handle<v8::FunctionTemplate> V8DOMConfiguration::functionTemplateForCallback(v8::Handle<v8::Signature> signature, v8::FunctionCallback callback, int length, v8::Isolate* isolate)
{
- v8::FunctionCallback functionCallback = callback.callback;
- if (DOMWrapperWorld::current(isolate).isMainWorld() && callback.callbackForMainWorld)
- functionCallback = callback.callbackForMainWorld;
- v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate::New(isolate, functionCallback, v8Undefined(), signature, callback.length);
+ v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate::New(isolate, callback, v8Undefined(), signature, length);
functionTemplate->RemovePrototype();
return functionTemplate;
}
« no previous file with comments | « Source/bindings/core/v8/V8DOMConfiguration.h ('k') | Source/bindings/scripts/v8_interface.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698