| 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 8b928945f6a02fe052557490b012bea001264718..0f230afa77230308eb2a7be8e2d6f3cf15cbf23b 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/custom/V8EventTargetCustom.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8EventTargetCustom.cpp
|
| @@ -40,14 +40,12 @@ void V8EventTarget::addEventListenerMethodPrologueCustom(
|
| const v8::FunctionCallbackInfo<v8::Value>& info,
|
| EventTarget*) {
|
| if (info.Length() >= 3 && info[2]->IsObject()) {
|
| - UseCounter::countIfNotPrivateScript(
|
| - info.GetIsolate(), currentExecutionContext(info.GetIsolate()),
|
| - UseCounter::AddEventListenerThirdArgumentIsObject);
|
| + UseCounter::count(currentExecutionContext(info.GetIsolate()),
|
| + UseCounter::AddEventListenerThirdArgumentIsObject);
|
| }
|
| if (info.Length() >= 4) {
|
| - UseCounter::countIfNotPrivateScript(
|
| - info.GetIsolate(), currentExecutionContext(info.GetIsolate()),
|
| - UseCounter::AddEventListenerFourArguments);
|
| + UseCounter::count(currentExecutionContext(info.GetIsolate()),
|
| + UseCounter::AddEventListenerFourArguments);
|
| }
|
| }
|
|
|
| @@ -63,14 +61,12 @@ void V8EventTarget::removeEventListenerMethodPrologueCustom(
|
| const v8::FunctionCallbackInfo<v8::Value>& info,
|
| EventTarget*) {
|
| if (info.Length() >= 3 && info[2]->IsObject()) {
|
| - UseCounter::countIfNotPrivateScript(
|
| - info.GetIsolate(), currentExecutionContext(info.GetIsolate()),
|
| - UseCounter::RemoveEventListenerThirdArgumentIsObject);
|
| + UseCounter::count(currentExecutionContext(info.GetIsolate()),
|
| + UseCounter::RemoveEventListenerThirdArgumentIsObject);
|
| }
|
| if (info.Length() >= 4) {
|
| - UseCounter::countIfNotPrivateScript(
|
| - info.GetIsolate(), currentExecutionContext(info.GetIsolate()),
|
| - UseCounter::RemoveEventListenerFourArguments);
|
| + UseCounter::count(currentExecutionContext(info.GetIsolate()),
|
| + UseCounter::RemoveEventListenerFourArguments);
|
| }
|
| }
|
|
|
|
|