| 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 0e929fa81ad58532fb87e0ada498f6593c640883..1ecd97782609ac828f6d3fe857bb1a055931053c 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp
|
| @@ -33,6 +33,7 @@
|
| #include "bindings/core/v8/V8Binding.h"
|
| #include "bindings/core/v8/V8HTMLEmbedElement.h"
|
| #include "bindings/core/v8/V8HTMLObjectElement.h"
|
| +#include "core/frame/Deprecation.h"
|
| #include "core/frame/UseCounter.h"
|
| #include "wtf/PtrUtil.h"
|
| #include <memory>
|
| @@ -162,16 +163,16 @@ void invokeOnScriptableObject(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| void V8HTMLEmbedElement::legacyCallCustom(
|
| const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| invokeOnScriptableObject<V8HTMLEmbedElement>(info);
|
| - UseCounter::countIfNotPrivateScript(
|
| - info.GetIsolate(), V8HTMLEmbedElement::toImpl(info.Holder())->document(),
|
| + Deprecation::countDeprecationIfNotPrivateScript(
|
| + info.GetIsolate(), currentExecutionContext(info.GetIsolate()),
|
| UseCounter::HTMLEmbedElementLegacyCall);
|
| }
|
|
|
| void V8HTMLObjectElement::legacyCallCustom(
|
| const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| invokeOnScriptableObject<V8HTMLObjectElement>(info);
|
| - UseCounter::countIfNotPrivateScript(
|
| - info.GetIsolate(), V8HTMLObjectElement::toImpl(info.Holder())->document(),
|
| + Deprecation::countDeprecationIfNotPrivateScript(
|
| + info.GetIsolate(), currentExecutionContext(info.GetIsolate()),
|
| UseCounter::HTMLObjectElementLegacyCall);
|
| }
|
|
|
|
|