diff options
Diffstat (limited to 'Source/WebCore/bindings/v8/custom')
8 files changed, 14 insertions, 9 deletions
diff --git a/Source/WebCore/bindings/v8/custom/V8CSSStyleSheetCustom.cpp b/Source/WebCore/bindings/v8/custom/V8CSSStyleSheetCustom.cpp index 9effca3..9b2988b 100644 --- a/Source/WebCore/bindings/v8/custom/V8CSSStyleSheetCustom.cpp +++ b/Source/WebCore/bindings/v8/custom/V8CSSStyleSheetCustom.cpp @@ -44,7 +44,7 @@ v8::Handle<v8::Value> toV8(CSSStyleSheet* impl) // Add a hidden reference from stylesheet object to its owner node. Node* ownerNode = impl->ownerNode(); if (ownerNode && !wrapper.IsEmpty()) - V8DOMWrapper::setHiddenReference(wrapper, toV8(ownerNode)); + V8DOMWrapper::setNamedHiddenReference(wrapper, "ownerNode", toV8(ownerNode)); return wrapper; } diff --git a/Source/WebCore/bindings/v8/custom/V8DOMStringMapCustom.cpp b/Source/WebCore/bindings/v8/custom/V8DOMStringMapCustom.cpp index 71ff357..1d6398e 100644 --- a/Source/WebCore/bindings/v8/custom/V8DOMStringMapCustom.cpp +++ b/Source/WebCore/bindings/v8/custom/V8DOMStringMapCustom.cpp @@ -105,7 +105,7 @@ v8::Handle<v8::Value> toV8(DOMStringMap* impl) if (!wrapper.IsEmpty() && element) { v8::Handle<v8::Value> elementValue = toV8(element); if (!elementValue.IsEmpty() && elementValue->IsObject()) - V8DOMWrapper::setHiddenReference(elementValue.As<v8::Object>(), wrapper); + V8DOMWrapper::setNamedHiddenReference(elementValue.As<v8::Object>(), "domStringMap", wrapper); } return wrapper; } diff --git a/Source/WebCore/bindings/v8/custom/V8DOMTokenListCustom.cpp b/Source/WebCore/bindings/v8/custom/V8DOMTokenListCustom.cpp index 171ff5c..08051ab 100644 --- a/Source/WebCore/bindings/v8/custom/V8DOMTokenListCustom.cpp +++ b/Source/WebCore/bindings/v8/custom/V8DOMTokenListCustom.cpp @@ -48,7 +48,7 @@ v8::Handle<v8::Value> toV8(DOMTokenList* impl) if (!wrapper.IsEmpty() && element) { v8::Handle<v8::Value> elementValue = toV8(element); if (!elementValue.IsEmpty() && elementValue->IsObject()) - V8DOMWrapper::setHiddenReference(elementValue.As<v8::Object>(), wrapper); + V8DOMWrapper::setNamedHiddenReference(elementValue.As<v8::Object>(), "domTokenList", wrapper); } return wrapper; } diff --git a/Source/WebCore/bindings/v8/custom/V8LocationCustom.cpp b/Source/WebCore/bindings/v8/custom/V8LocationCustom.cpp index e166323..e143a96 100644 --- a/Source/WebCore/bindings/v8/custom/V8LocationCustom.cpp +++ b/Source/WebCore/bindings/v8/custom/V8LocationCustom.cpp @@ -281,7 +281,7 @@ v8::Handle<v8::Value> toV8(Location* impl) if (wrapper.IsEmpty()) { wrapper = V8Location::wrap(impl); if (!wrapper.IsEmpty()) - V8DOMWrapper::setHiddenWindowReference(impl->frame(), wrapper); + V8DOMWrapper::setNamedHiddenWindowReference(impl->frame(), "location", wrapper); } return wrapper; } diff --git a/Source/WebCore/bindings/v8/custom/V8MessageChannelConstructor.cpp b/Source/WebCore/bindings/v8/custom/V8MessageChannelConstructor.cpp index b966e42..775e745 100644 --- a/Source/WebCore/bindings/v8/custom/V8MessageChannelConstructor.cpp +++ b/Source/WebCore/bindings/v8/custom/V8MessageChannelConstructor.cpp @@ -67,8 +67,8 @@ v8::Handle<v8::Value> V8MessageChannel::constructorCallback(const v8::Arguments& // Create references from the MessageChannel wrapper to the two // MessagePort wrappers to make sure that the MessagePort wrappers // stay alive as long as the MessageChannel wrapper is around. - V8DOMWrapper::setHiddenReference(messageChannel, toV8(obj->port1())); - V8DOMWrapper::setHiddenReference(messageChannel, toV8(obj->port2())); + V8DOMWrapper::setNamedHiddenReference(messageChannel, "port1", toV8(obj->port1())); + V8DOMWrapper::setNamedHiddenReference(messageChannel, "port2", toV8(obj->port2())); // Setup the standard wrapper object internal fields. V8DOMWrapper::setDOMWrapper(messageChannel, &info, obj.get()); diff --git a/Source/WebCore/bindings/v8/custom/V8NamedNodeMapCustom.cpp b/Source/WebCore/bindings/v8/custom/V8NamedNodeMapCustom.cpp index d9e1de0..c9014c0 100644 --- a/Source/WebCore/bindings/v8/custom/V8NamedNodeMapCustom.cpp +++ b/Source/WebCore/bindings/v8/custom/V8NamedNodeMapCustom.cpp @@ -83,7 +83,7 @@ v8::Handle<v8::Value> toV8(NamedNodeMap* impl) // Add a hidden reference from named node map to its owner node. Element* element = impl->element(); if (!wrapper.IsEmpty() && element) - V8DOMWrapper::setHiddenReference(wrapper, toV8(element)); + V8DOMWrapper::setNamedHiddenReference(wrapper, "ownerNode", toV8(element)); return wrapper; } diff --git a/Source/WebCore/bindings/v8/custom/V8StyleSheetCustom.cpp b/Source/WebCore/bindings/v8/custom/V8StyleSheetCustom.cpp index b3f6ff7..0fe6af8 100644 --- a/Source/WebCore/bindings/v8/custom/V8StyleSheetCustom.cpp +++ b/Source/WebCore/bindings/v8/custom/V8StyleSheetCustom.cpp @@ -47,7 +47,7 @@ v8::Handle<v8::Value> toV8(StyleSheet* impl) // Add a hidden reference from stylesheet object to its owner node. Node* ownerNode = impl->ownerNode(); if (ownerNode && !wrapper.IsEmpty()) - V8DOMWrapper::setHiddenReference(wrapper, toV8(ownerNode)); + V8DOMWrapper::setNamedHiddenReference(wrapper, "ownerNode", toV8(ownerNode)); return wrapper; } diff --git a/Source/WebCore/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp b/Source/WebCore/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp index af81a41..fa915b6 100644 --- a/Source/WebCore/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp +++ b/Source/WebCore/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp @@ -161,22 +161,27 @@ static v8::Handle<v8::Value> toV8Object(WebGLExtension* extension, v8::Handle<v8 if (!extension) return v8::Null(); v8::Handle<v8::Value> extensionObject; + const char* referenceName; switch (extension->getName()) { case WebGLExtension::WebKitLoseContextName: extensionObject = toV8(static_cast<WebKitLoseContext*>(extension)); + referenceName = "webKitLoseContextName"; break; case WebGLExtension::OESStandardDerivativesName: extensionObject = toV8(static_cast<OESStandardDerivatives*>(extension)); + referenceName = "oesStandardDerivativesName"; break; case WebGLExtension::OESTextureFloatName: extensionObject = toV8(static_cast<OESTextureFloat*>(extension)); + referenceName = "oesTextureFloatName"; break; case WebGLExtension::OESVertexArrayObjectName: extensionObject = toV8(static_cast<OESVertexArrayObject*>(extension)); + referenceName = "oesVertexArrayObjectName"; break; } ASSERT(!extensionObject.IsEmpty()); - V8DOMWrapper::setHiddenReference(contextObject, extensionObject); + V8DOMWrapper::setNamedHiddenReference(contextObject, referenceName, extensionObject); return extensionObject; } |