| Index: bindings/v8/V8DOMWrapper.h
|
| ===================================================================
|
| --- bindings/v8/V8DOMWrapper.h (revision 51310)
|
| +++ bindings/v8/V8DOMWrapper.h (working copy)
|
| @@ -109,7 +109,12 @@
|
| #endif
|
|
|
| // Sets contents of a DOM wrapper.
|
| - static void setDOMWrapper(v8::Handle<v8::Object>, int type, void* ptr);
|
| + static void setDOMWrapper(v8::Handle<v8::Object> object, int type, void* cptr)
|
| + {
|
| + ASSERT(object->InternalFieldCount() >= 2);
|
| + object->SetPointerInInternalField(V8Custom::kDOMWrapperObjectIndex, cptr);
|
| + object->SetInternalField(V8Custom::kDOMWrapperTypeIndex, v8::Integer::New(type));
|
| + }
|
|
|
| static v8::Handle<v8::Object> lookupDOMWrapper(V8ClassIndex::V8WrapperType type, v8::Handle<v8::Object> object)
|
| {
|
|
|