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

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

Issue 725163002: bindings: Retires V8T::toEventTarget and reduces the binary size. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Made bitfields be type of unsigned to support both of MSVC and Android. Created 6 years, 1 month 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 | « Source/bindings/core/v8/WrapperTypeInfo.h ('k') | Source/bindings/core/v8/v8.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/WrapperTypeInfo.cpp
diff --git a/Source/bindings/core/v8/WrapperTypeInfo.cpp b/Source/bindings/core/v8/WrapperTypeInfo.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..48727b6c27f909a242b895e5b2ea49ee15340ba4
--- /dev/null
+++ b/Source/bindings/core/v8/WrapperTypeInfo.cpp
@@ -0,0 +1,19 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+#include "bindings/core/v8/WrapperTypeInfo.h"
+
+#include "core/events/EventTarget.h"
+
+namespace blink {
+
+EventTarget* WrapperTypeInfo::toEventTarget(v8::Handle<v8::Object> object) const
+{
+ if (eventTargetInheritance == NotInheritFromEventTarget)
+ return 0;
+ return static_cast<EventTarget*>(blink::toScriptWrappableBase(object));
+}
+
+} // namespace blink
« no previous file with comments | « Source/bindings/core/v8/WrapperTypeInfo.h ('k') | Source/bindings/core/v8/v8.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698