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

Unified Diff: Source/bindings/core/v8/V8NPObject.cpp

Issue 1291723004: Remove all support for <applet> handling in Chrome. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 years, 4 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: Source/bindings/core/v8/V8NPObject.cpp
diff --git a/Source/bindings/core/v8/V8NPObject.cpp b/Source/bindings/core/v8/V8NPObject.cpp
index c71cc2c715f0a276d5a34ee0aca104f905e23b12..5dbb2f952e30872ac2605dbf4f75a759959eaecb 100644
--- a/Source/bindings/core/v8/V8NPObject.cpp
+++ b/Source/bindings/core/v8/V8NPObject.cpp
@@ -35,7 +35,6 @@
#include "bindings/core/v8/NPV8Object.h"
#include "bindings/core/v8/V8Binding.h"
#include "bindings/core/v8/V8GlobalValueMap.h"
-#include "bindings/core/v8/V8HTMLAppletElement.h"
#include "bindings/core/v8/V8HTMLEmbedElement.h"
#include "bindings/core/v8/V8HTMLObjectElement.h"
#include "bindings/core/v8/V8NPUtils.h"
@@ -72,14 +71,10 @@ static void npObjectInvokeImpl(const v8::FunctionCallbackInfo<v8::Value>& info,
NPObject* npObject;
v8::Isolate* isolate = info.GetIsolate();
- // These three types are subtypes of HTMLPlugInElement.
- HTMLPlugInElement* element = V8HTMLAppletElement::toImplWithTypeCheck(isolate, info.Holder());
- if (!element) {
- element = V8HTMLEmbedElement::toImplWithTypeCheck(isolate, info.Holder());
- if (!element) {
- element = V8HTMLObjectElement::toImplWithTypeCheck(isolate, info.Holder());
- }
- }
+ // These two types are subtypes of HTMLPlugInElement.
+ HTMLPlugInElement* element = V8HTMLEmbedElement::toImplWithTypeCheck(isolate, info.Holder());
+ if (!element)
+ element = V8HTMLObjectElement::toImplWithTypeCheck(isolate, info.Holder());
if (element) {
if (RefPtr<SharedPersistent<v8::Object>> wrapper = element->pluginWrapper()) {
v8::HandleScope handleScope(isolate);

Powered by Google App Engine
This is Rietveld 408576698