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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/custom/V8EventTargetCustom.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/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 8b928945f6a02fe052557490b012bea001264718..0f230afa77230308eb2a7be8e2d6f3cf15cbf23b 100644
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8EventTargetCustom.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8EventTargetCustom.cpp
@@ -40,14 +40,12 @@ void V8EventTarget::addEventListenerMethodPrologueCustom(
const v8::FunctionCallbackInfo<v8::Value>& info,
EventTarget*) {
if (info.Length() >= 3 && info[2]->IsObject()) {
- UseCounter::countIfNotPrivateScript(
- info.GetIsolate(), currentExecutionContext(info.GetIsolate()),
- UseCounter::AddEventListenerThirdArgumentIsObject);
+ UseCounter::count(currentExecutionContext(info.GetIsolate()),
+ UseCounter::AddEventListenerThirdArgumentIsObject);
}
if (info.Length() >= 4) {
- UseCounter::countIfNotPrivateScript(
- info.GetIsolate(), currentExecutionContext(info.GetIsolate()),
- UseCounter::AddEventListenerFourArguments);
+ UseCounter::count(currentExecutionContext(info.GetIsolate()),
+ UseCounter::AddEventListenerFourArguments);
}
}
@@ -63,14 +61,12 @@ void V8EventTarget::removeEventListenerMethodPrologueCustom(
const v8::FunctionCallbackInfo<v8::Value>& info,
EventTarget*) {
if (info.Length() >= 3 && info[2]->IsObject()) {
- UseCounter::countIfNotPrivateScript(
- info.GetIsolate(), currentExecutionContext(info.GetIsolate()),
- UseCounter::RemoveEventListenerThirdArgumentIsObject);
+ UseCounter::count(currentExecutionContext(info.GetIsolate()),
+ UseCounter::RemoveEventListenerThirdArgumentIsObject);
}
if (info.Length() >= 4) {
- UseCounter::countIfNotPrivateScript(
- info.GetIsolate(), currentExecutionContext(info.GetIsolate()),
- UseCounter::RemoveEventListenerFourArguments);
+ UseCounter::count(currentExecutionContext(info.GetIsolate()),
+ UseCounter::RemoveEventListenerFourArguments);
}
}

Powered by Google App Engine
This is Rietveld 408576698