| Index: Source/bindings/v8/custom/V8EventCustom.cpp
|
| diff --git a/Source/bindings/v8/custom/V8EventCustom.cpp b/Source/bindings/v8/custom/V8EventCustom.cpp
|
| index bcfe250b2ab6a23f1554d4369bf16ad3b6427b90..f51c72e8b9f6de34c2b2f10b884464223ead151f 100644
|
| --- a/Source/bindings/v8/custom/V8EventCustom.cpp
|
| +++ b/Source/bindings/v8/custom/V8EventCustom.cpp
|
| @@ -53,7 +53,7 @@ void V8Event::clipboardDataAttributeGetterCustom(v8::Local<v8::String> name, con
|
| }
|
|
|
| #define TRY_TO_WRAP_WITH_INTERFACE(interfaceName) \
|
| - if (eventNames().interfaceFor##interfaceName == desiredInterface) \
|
| + 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)
|
| @@ -63,7 +63,7 @@ v8::Handle<v8::Object> wrap(Event* event, v8::Handle<v8::Object> creationContext
|
| String desiredInterface = event->interfaceName();
|
|
|
| // We need to check Event first to avoid infinite recursion.
|
| - if (eventNames().interfaceForEvent == desiredInterface)
|
| + if (EventNames::Event == desiredInterface)
|
| return V8Event::createWrapper(event, creationContext, isolate);
|
|
|
| EVENT_INTERFACES_FOR_EACH(TRY_TO_WRAP_WITH_INTERFACE)
|
|
|