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

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

Issue 2683993003: Move toEventTarget to EventTarget (Closed)
Patch Set: Inline toEventTarget in V8Binding::toEventTarget 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 | « third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.cpp b/third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.cpp
index 8c6139ebbb9750c578dc9379eb2143f44722ee0d..805cc73ce41a6ea7f4fd4dc244af28561f6dc8cb 100644
--- a/third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.cpp
@@ -4,8 +4,6 @@
#include "bindings/core/v8/WrapperTypeInfo.h"
-#include "core/events/EventTarget.h"
-
namespace blink {
static_assert(offsetof(struct WrapperTypeInfo, ginEmbedder) ==
@@ -13,11 +11,4 @@ static_assert(offsetof(struct WrapperTypeInfo, ginEmbedder) ==
"offset of WrapperTypeInfo.ginEmbedder must be the same as "
"gin::WrapperInfo.embedder");
-EventTarget* WrapperTypeInfo::toEventTarget(
- v8::Local<v8::Object> object) const {
- if (eventTargetInheritance == NotInheritFromEventTarget)
- return nullptr;
- return static_cast<EventTarget*>(toScriptWrappable(object));
-}
-
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698