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 beb95e82dacb3a17834f6793d325543a952a8103..7ee827674678f81b758ffde201e82998d63cdbcd 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8EventTargetCustom.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8EventTargetCustom.cpp |
@@ -41,7 +41,7 @@ namespace { |
void addEventListenerMethodPrologueCustom(const v8::FunctionCallbackInfo<v8::Value>& info, EventTarget*) |
{ |
if (info.Length() >= 3 && info[2]->IsObject()) { |
- UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), |
+ UseCounter::countIfNotPrivateScript(info.GetIsolate(), currentExecutionContext(info.GetIsolate()), |
UseCounter::AddEventListenerThirdArgumentIsObject); |
} |
} |
@@ -55,7 +55,7 @@ void addEventListenerMethodEpilogueCustom(const v8::FunctionCallbackInfo<v8::Val |
void removeEventListenerMethodPrologueCustom(const v8::FunctionCallbackInfo<v8::Value>& info, EventTarget*) |
{ |
if (info.Length() >= 3 && info[2]->IsObject()) { |
- UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), |
+ UseCounter::countIfNotPrivateScript(info.GetIsolate(), currentExecutionContext(info.GetIsolate()), |
UseCounter::RemoveEventListenerThirdArgumentIsObject); |
} |
} |