Index: third_party/WebKit/Source/bindings/core/v8/custom/V8DocumentCustom.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8DocumentCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8DocumentCustom.cpp |
index 3598aa2f2b7cdcf2e3bc339bb52e901c435d7e98..bc29e6c242df2dba51217767ed86fef1589b2e62 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8DocumentCustom.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8DocumentCustom.cpp |
@@ -106,30 +106,25 @@ void V8Document::createTouchMethodPrologueCustom( |
Document*) { |
v8::Local<v8::Value> v8Window = info[0]; |
if (isUndefinedOrNull(v8Window)) { |
- UseCounter::countIfNotPrivateScript( |
- info.GetIsolate(), currentExecutionContext(info.GetIsolate()), |
- UseCounter::DocumentCreateTouchWindowNull); |
+ UseCounter::count(currentExecutionContext(info.GetIsolate()), |
+ UseCounter::DocumentCreateTouchWindowNull); |
} else if (!toDOMWindow(info.GetIsolate(), v8Window)) { |
- UseCounter::countIfNotPrivateScript( |
- info.GetIsolate(), currentExecutionContext(info.GetIsolate()), |
- UseCounter::DocumentCreateTouchWindowWrongType); |
+ UseCounter::count(currentExecutionContext(info.GetIsolate()), |
+ UseCounter::DocumentCreateTouchWindowWrongType); |
} |
v8::Local<v8::Value> v8Target = info[1]; |
if (isUndefinedOrNull(v8Target)) { |
- UseCounter::countIfNotPrivateScript( |
- info.GetIsolate(), currentExecutionContext(info.GetIsolate()), |
- UseCounter::DocumentCreateTouchTargetNull); |
+ UseCounter::count(currentExecutionContext(info.GetIsolate()), |
+ UseCounter::DocumentCreateTouchTargetNull); |
} else if (!toEventTarget(info.GetIsolate(), v8Target)) { |
- UseCounter::countIfNotPrivateScript( |
- info.GetIsolate(), currentExecutionContext(info.GetIsolate()), |
- UseCounter::DocumentCreateTouchTargetWrongType); |
+ UseCounter::count(currentExecutionContext(info.GetIsolate()), |
+ UseCounter::DocumentCreateTouchTargetWrongType); |
} |
if (info.Length() < 7) { |
- UseCounter::countIfNotPrivateScript( |
- info.GetIsolate(), currentExecutionContext(info.GetIsolate()), |
- UseCounter::DocumentCreateTouchLessThanSevenArguments); |
+ UseCounter::count(currentExecutionContext(info.GetIsolate()), |
+ UseCounter::DocumentCreateTouchLessThanSevenArguments); |
} |
} |