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 45e5517d63a6d4ea8a258f4458f0eb7e98b93f32..2346c0bf95888d0d8a101f9a7b7e5c0afb2edc5c 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp |
@@ -36,6 +36,7 @@ |
#include "bindings/core/v8/V8Node.h" |
#include "core/dom/Node.h" |
#include "core/dom/NodeFilter.h" |
+#include "core/frame/UseCounter.h" |
#include "wtf/OwnPtr.h" |
namespace blink { |
@@ -73,6 +74,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); |
callback = v8::Local<v8::Function>::Cast(filter); |
receiver = v8::Undefined(isolate); |
} else { |
@@ -86,6 +88,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); |
callback = v8::Local<v8::Function>::Cast(value); |
receiver = filter; |
} |