Index: third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp b/third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp |
index a559a4b6a1f633aef020592f5d26cbd0c2a9b1de..a0f0d442ec1103d7cd44eacb50bd1afdc4c6225b 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp |
@@ -73,7 +73,7 @@ unsigned V8NodeFilterCondition::acceptNode(Node* node, ExceptionState& exception |
v8::Local<v8::Function> callback; |
v8::Local<v8::Value> receiver; |
if (filter->IsFunction()) { |
- UseCounter::countIfNotPrivateScript(isolate, callingExecutionContext(isolate), UseCounter::NodeFilterIsFunction); |
+ UseCounter::countIfNotPrivateScript(isolate, currentExecutionContext(isolate), UseCounter::NodeFilterIsFunction); |
callback = v8::Local<v8::Function>::Cast(filter); |
receiver = v8::Undefined(isolate); |
} else { |
@@ -87,7 +87,7 @@ unsigned V8NodeFilterCondition::acceptNode(Node* node, ExceptionState& exception |
exceptionState.throwTypeError("NodeFilter object does not have an acceptNode function"); |
return NodeFilter::FILTER_REJECT; |
} |
- UseCounter::countIfNotPrivateScript(isolate, callingExecutionContext(isolate), UseCounter::NodeFilterIsObject); |
+ UseCounter::countIfNotPrivateScript(isolate, currentExecutionContext(isolate), UseCounter::NodeFilterIsObject); |
callback = v8::Local<v8::Function>::Cast(value); |
receiver = filter; |
} |