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

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

Issue 2721463004: Added use counters for HTML[Embed | Object]Element getter and setter (Closed)
Patch Set: Created 3 years, 10 months 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/V8HTMLPlugInElementCustom.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp
index 08fe5d3be5dea4306d6c5d4cb223d270ecd5974e..078c4e31bb422860b571f99ab138420f01b78a37 100644
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp
@@ -109,12 +109,16 @@ void setScriptableObjectProperty(
void V8HTMLEmbedElement::namedPropertyGetterCustom(
const AtomicString& name,
const v8::PropertyCallbackInfo<v8::Value>& info) {
+ UseCounter::count(currentExecutionContext(info.GetIsolate()),
+ UseCounter::V8HTMLEmbedElement_getter);
foolip 2017/02/28 04:38:22 The V8* counters are all generated. These are cust
getScriptableObjectProperty<V8HTMLEmbedElement>(name, info);
}
void V8HTMLObjectElement::namedPropertyGetterCustom(
const AtomicString& name,
const v8::PropertyCallbackInfo<v8::Value>& info) {
+ UseCounter::count(currentExecutionContext(info.GetIsolate()),
+ UseCounter::V8HTMLObjectElement_getter);
getScriptableObjectProperty<V8HTMLObjectElement>(name, info);
}
@@ -122,6 +126,8 @@ void V8HTMLEmbedElement::namedPropertySetterCustom(
const AtomicString& name,
v8::Local<v8::Value> value,
const v8::PropertyCallbackInfo<v8::Value>& info) {
+ UseCounter::count(currentExecutionContext(info.GetIsolate()),
+ UseCounter::V8HTMLEmbedElement_setter);
setScriptableObjectProperty<V8HTMLEmbedElement>(name, value, info);
}
@@ -129,6 +135,8 @@ void V8HTMLObjectElement::namedPropertySetterCustom(
const AtomicString& name,
v8::Local<v8::Value> value,
const v8::PropertyCallbackInfo<v8::Value>& info) {
+ UseCounter::count(currentExecutionContext(info.GetIsolate()),
+ UseCounter::V8HTMLObjectElement_setter);
setScriptableObjectProperty<V8HTMLObjectElement>(name, value, info);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | third_party/WebKit/Source/core/frame/UseCounter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698