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 97ae719532d8f7bc7cb8bebaaf27e4314e765f60..8903ee9a3b9c11ea96e917833db4165e802c85b2 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8EventTargetCustom.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8EventTargetCustom.cpp |
@@ -42,6 +42,10 @@ void V8EventTarget::addEventListenerMethodPrologueCustom(const v8::FunctionCallb |
UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), |
info.Length() == 0 ? UseCounter::AddEventListenerNoArguments : UseCounter::AddEventListenerOneArgument); |
} |
+ if (info.Length() >= 3 && info[2]->IsObject()) { |
+ UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), |
+ UseCounter::AddEventListenerThirdArgumentIsObject); |
+ } |
} |
void V8EventTarget::addEventListenerMethodEpilogueCustom(const v8::FunctionCallbackInfo<v8::Value>& info, EventTarget* impl) |
@@ -56,6 +60,10 @@ void V8EventTarget::removeEventListenerMethodPrologueCustom(const v8::FunctionCa |
UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), |
info.Length() == 0 ? UseCounter::RemoveEventListenerNoArguments : UseCounter::RemoveEventListenerOneArgument); |
} |
+ if (info.Length() >= 3 && info[2]->IsObject()) { |
+ UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), |
+ UseCounter::RemoveEventListenerThirdArgumentIsObject); |
+ } |
} |
void V8EventTarget::removeEventListenerMethodEpilogueCustom(const v8::FunctionCallbackInfo<v8::Value>& info, EventTarget* impl) |