| 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
|
|
|