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

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: Rebase update 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1c60662c05a1535f9d58a73be1ab03851a21bf90 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::HTMLEmbedElementGetter);
getScriptableObjectProperty<V8HTMLEmbedElement>(name, info);
}
void V8HTMLObjectElement::namedPropertyGetterCustom(
const AtomicString& name,
const v8::PropertyCallbackInfo<v8::Value>& info) {
+ UseCounter::count(currentExecutionContext(info.GetIsolate()),
+ UseCounter::HTMLObjectElementGetter);
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::HTMLEmbedElementSetter);
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::HTMLObjectElementSetter);
setScriptableObjectProperty<V8HTMLObjectElement>(name, value, info);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698