Index: Source/bindings/v8/V8Binding.h |
diff --git a/Source/bindings/v8/V8Binding.h b/Source/bindings/v8/V8Binding.h |
index 86602d66f86fb6077ef4df698950292d8c716adc..51a69b2a3578165520730dea4deddf6715e7aed4 100644 |
--- a/Source/bindings/v8/V8Binding.h |
+++ b/Source/bindings/v8/V8Binding.h |
@@ -678,6 +678,13 @@ void moveEventListenerToNewWrapper(v8::Handle<v8::Object>, EventListener* oldVal |
// Each specialized implementation will be generated. |
template<typename T> |
v8::Handle<v8::Value> toV8NoInline(T* impl, v8::Handle<v8::Object> creationContext, v8::Isolate*); |
+template<typename T> |
+v8::Handle<v8::Value> toV8NoInline(T* impl, ExecutionContext* context) |
+{ |
+ v8::Isolate* isolate = toIsolate(context); |
+ v8::Handle<v8::Context> v8Context = toV8Context(context, DOMWrapperWorld::current(isolate)); |
+ return toV8NoInline(impl, v8Context->Global(), isolate); |
+} |
// Result values for platform object 'deleter' methods, |
// http://www.w3.org/TR/WebIDL/#delete |