Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/custom/V8DocumentCustom.cpp

Issue 2571063002: Remove Blink-in-JS (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}
}

Powered by Google App Engine
This is Rietveld 408576698