| Index: Source/bindings/tests/results/V8TestInterfaceCustomConstructor.h
|
| diff --git a/Source/bindings/tests/results/V8TestInterfaceCustomConstructor.h b/Source/bindings/tests/results/V8TestInterfaceCustomConstructor.h
|
| index f338999ea7a14fe172b38299a17341cfa63b9958..942f2f37e8f4836eb01799ba4372a1d1ac1e28a0 100644
|
| --- a/Source/bindings/tests/results/V8TestInterfaceCustomConstructor.h
|
| +++ b/Source/bindings/tests/results/V8TestInterfaceCustomConstructor.h
|
| @@ -7,6 +7,7 @@
|
| #ifndef V8TestInterfaceCustomConstructor_h
|
| #define V8TestInterfaceCustomConstructor_h
|
|
|
| +#include "bindings/core/v8/ScriptWrappable.h"
|
| #include "bindings/core/v8/V8Binding.h"
|
| #include "bindings/core/v8/V8DOMWrapper.h"
|
| #include "bindings/core/v8/WrapperTypeInfo.h"
|
| @@ -22,22 +23,22 @@ public:
|
| static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*);
|
| static TestInterfaceCustomConstructor* toNative(v8::Handle<v8::Object> object)
|
| {
|
| - return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex));
|
| + return fromInternalPointer(blink::toInternalPointer(object));
|
| }
|
| static TestInterfaceCustomConstructor* toNativeWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value>);
|
| static const WrapperTypeInfo wrapperTypeInfo;
|
| - static void derefObject(void*);
|
| + static void derefObject(ScriptWrappableBase* internalPointer);
|
| static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
|
| static void constructorCustom(const v8::FunctionCallbackInfo<v8::Value>&);
|
| static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
|
| - static inline void* toInternalPointer(TestInterfaceCustomConstructor* impl)
|
| + static inline ScriptWrappableBase* toInternalPointer(TestInterfaceCustomConstructor* impl)
|
| {
|
| - return impl;
|
| + return reinterpret_cast<ScriptWrappableBase*>(static_cast<void*>(impl));
|
| }
|
|
|
| - static inline TestInterfaceCustomConstructor* fromInternalPointer(void* object)
|
| + static inline TestInterfaceCustomConstructor* fromInternalPointer(ScriptWrappableBase* internalPointer)
|
| {
|
| - return static_cast<TestInterfaceCustomConstructor*>(object);
|
| + return reinterpret_cast<TestInterfaceCustomConstructor*>(static_cast<void*>(internalPointer));
|
| }
|
| static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestInterfaceCustomConstructor*, v8::Isolate*) { }
|
| static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isolate*) { }
|
|
|