diff options
Diffstat (limited to 'Source/WebCore/bindings/v8/V8DOMWrapper.h')
-rw-r--r-- | Source/WebCore/bindings/v8/V8DOMWrapper.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/WebCore/bindings/v8/V8DOMWrapper.h b/Source/WebCore/bindings/v8/V8DOMWrapper.h index 7f4490a..0cae6db 100644 --- a/Source/WebCore/bindings/v8/V8DOMWrapper.h +++ b/Source/WebCore/bindings/v8/V8DOMWrapper.h @@ -114,10 +114,14 @@ namespace WebCore { // Check whether a V8 value is a wrapper of type |classType|. static bool isWrapperOfType(v8::Handle<v8::Value>, WrapperTypeInfo*); - static void setHiddenReference(v8::Handle<v8::Object> parent, v8::Handle<v8::Value> child); - - // Set hidden references in a DOMWindow object of a frame. - static void setHiddenWindowReference(Frame*, v8::Handle<v8::Value>); + // Proper object lifetime support. + // + // Helper functions to make sure the child object stays alive + // while the parent is alive. Using the name more than once + // overwrites previous references making it possible to free + // old children. + static void setNamedHiddenReference(v8::Handle<v8::Object> parent, const char* name, v8::Handle<v8::Value> child); + static void setNamedHiddenWindowReference(Frame*, const char*, v8::Handle<v8::Value>); static v8::Local<v8::Object> instantiateV8Object(V8Proxy* proxy, WrapperTypeInfo*, void* impl); |