Chromium Code Reviews| Index: third_party/WebKit/Source/bindings/core/v8/custom/V8EventTargetCustom.cpp |
| diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8EventTargetCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8EventTargetCustom.cpp |
| index f6db604f45d61588b4928add430550941f5b7b3d..4b20d29d37f0eefaf89a5594407c74b220254557 100644 |
| --- a/third_party/WebKit/Source/bindings/core/v8/custom/V8EventTargetCustom.cpp |
| +++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8EventTargetCustom.cpp |
| @@ -95,7 +95,7 @@ void V8EventTarget::addEventListenerMethodCustom(const v8::FunctionCallbackInfo< |
| if (!type.prepare()) |
| return; |
| EventListener* listener = V8EventListenerList::getEventListener(ScriptState::current(info.GetIsolate()), info[1], false, ListenerFindOrCreate); |
| - EventListenerOptionsOrBoolean options; |
| + AddEventListenerOptionsOrBoolean options; |
|
bokan
2016/04/26 19:54:59
This can be moved below the `if` block, right?
haraken
2016/04/27 06:36:15
We want to keep this custom binding as similar to
|
| // TODO(dtapuska): This custom binding code can be eliminated once |
| // EventListenerOptions runtime enabled feature is removed. |
| // http://crbug.com/545163 |
| @@ -105,7 +105,7 @@ void V8EventTarget::addEventListenerMethodCustom(const v8::FunctionCallbackInfo< |
| addEventListenerMethodEpilogueCustom(info, impl); |
| return; |
| } |
| - V8EventListenerOptionsOrBoolean::toImpl(info.GetIsolate(), info[2], options, UnionTypeConversionMode::NotNullable, exceptionState); |
| + V8AddEventListenerOptionsOrBoolean::toImpl(info.GetIsolate(), info[2], options, UnionTypeConversionMode::NotNullable, exceptionState); |
| if (exceptionState.throwIfNeeded()) |
| return; |
| addEventListenerMethodPrologueCustom(info, impl); |