Index: Source/bindings/core/v8/custom/V8EventCustom.cpp |
diff --git a/Source/bindings/core/v8/custom/V8EventCustom.cpp b/Source/bindings/core/v8/custom/V8EventCustom.cpp |
index 6b6bfd6654328d846cd515759117fc9608f83b27..37f8d53c60b2fdafe42c3cf7bc219f88b1f20065 100644 |
--- a/Source/bindings/core/v8/custom/V8EventCustom.cpp |
+++ b/Source/bindings/core/v8/custom/V8EventCustom.cpp |
@@ -31,11 +31,8 @@ |
#include "config.h" |
#include "bindings/core/v8/V8Event.h" |
-#include "bindings/core/v8/ModuleProxy.h" |
#include "bindings/core/v8/V8Binding.h" |
#include "bindings/core/v8/V8DataTransfer.h" |
-#include "core/EventHeaders.h" |
-#include "core/EventInterfaces.h" |
#include "core/clipboard/DataTransfer.h" |
#include "core/events/ClipboardEvent.h" |
#include "core/events/Event.h" |
@@ -52,23 +49,4 @@ void V8Event::clipboardDataAttributeGetterCustom(const v8::PropertyCallbackInfo< |
} |
} |
-#define TRY_TO_WRAP_WITH_INTERFACE(interfaceName) \ |
- if (EventNames::interfaceName == desiredInterface) \ |
- return wrap(static_cast<interfaceName*>(event), creationContext, isolate); |
- |
-v8::Handle<v8::Object> wrap(Event* event, v8::Handle<v8::Object> creationContext, v8::Isolate *isolate) |
-{ |
- ASSERT(event); |
- |
- String desiredInterface = event->interfaceName(); |
- |
- // We need to check Event first to avoid infinite recursion. |
- if (EventNames::Event == desiredInterface) |
- return V8Event::createWrapper(event, creationContext, isolate); |
- |
- EVENT_INTERFACES_FOR_EACH(TRY_TO_WRAP_WITH_INTERFACE); |
- |
- return ModuleProxy::moduleProxy().wrapForEvent(event, creationContext, isolate); |
-} |
- |
} // namespace blink |