diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-05 14:34:32 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-05 14:34:32 -0800 |
commit | 635860845790a19bf50bbc51ba8fb66a96dde068 (patch) | |
tree | ef6ad9ff73a5b57f65249d4232a202fa77e6a140 /WebCore/bindings/js/JSElementCustom.cpp | |
parent | 8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (diff) | |
download | external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.zip external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.gz external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.bz2 |
auto import from //depot/cupcake/@136594
Diffstat (limited to 'WebCore/bindings/js/JSElementCustom.cpp')
-rw-r--r-- | WebCore/bindings/js/JSElementCustom.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/WebCore/bindings/js/JSElementCustom.cpp b/WebCore/bindings/js/JSElementCustom.cpp index 22480a2..f5ef4be 100644 --- a/WebCore/bindings/js/JSElementCustom.cpp +++ b/WebCore/bindings/js/JSElementCustom.cpp @@ -61,11 +61,11 @@ static inline bool allowSettingSrcToJavascriptURL(ExecState* exec, Element* elem return true; } -JSValue* JSElement::setAttribute(ExecState* exec, const ArgList& args) +JSValuePtr JSElement::setAttribute(ExecState* exec, const ArgList& args) { ExceptionCode ec = 0; - AtomicString name = args.at(exec, 0)->toString(exec); - AtomicString value = args.at(exec, 1)->toString(exec); + AtomicString name = args.at(exec, 0).toString(exec); + AtomicString value = args.at(exec, 1).toString(exec); Element* imp = impl(); if (!allowSettingSrcToJavascriptURL(exec, imp, name, value)) @@ -76,7 +76,7 @@ JSValue* JSElement::setAttribute(ExecState* exec, const ArgList& args) return jsUndefined(); } -JSValue* JSElement::setAttributeNode(ExecState* exec, const ArgList& args) +JSValuePtr JSElement::setAttributeNode(ExecState* exec, const ArgList& args) { ExceptionCode ec = 0; Attr* newAttr = toAttr(args.at(exec, 0)); @@ -89,17 +89,17 @@ JSValue* JSElement::setAttributeNode(ExecState* exec, const ArgList& args) if (!allowSettingSrcToJavascriptURL(exec, imp, newAttr->name(), newAttr->value())) return jsUndefined(); - JSValue* result = toJS(exec, WTF::getPtr(imp->setAttributeNode(newAttr, ec))); + JSValuePtr result = toJS(exec, WTF::getPtr(imp->setAttributeNode(newAttr, ec))); setDOMException(exec, ec); return result; } -JSValue* JSElement::setAttributeNS(ExecState* exec, const ArgList& args) +JSValuePtr JSElement::setAttributeNS(ExecState* exec, const ArgList& args) { ExceptionCode ec = 0; AtomicString namespaceURI = valueToStringWithNullCheck(exec, args.at(exec, 0)); - AtomicString qualifiedName = args.at(exec, 1)->toString(exec); - AtomicString value = args.at(exec, 2)->toString(exec); + AtomicString qualifiedName = args.at(exec, 1).toString(exec); + AtomicString value = args.at(exec, 2).toString(exec); Element* imp = impl(); if (!allowSettingSrcToJavascriptURL(exec, imp, qualifiedName, value)) @@ -110,7 +110,7 @@ JSValue* JSElement::setAttributeNS(ExecState* exec, const ArgList& args) return jsUndefined(); } -JSValue* JSElement::setAttributeNodeNS(ExecState* exec, const ArgList& args) +JSValuePtr JSElement::setAttributeNodeNS(ExecState* exec, const ArgList& args) { ExceptionCode ec = 0; Attr* newAttr = toAttr(args.at(exec, 0)); @@ -123,12 +123,12 @@ JSValue* JSElement::setAttributeNodeNS(ExecState* exec, const ArgList& args) if (!allowSettingSrcToJavascriptURL(exec, imp, newAttr->name(), newAttr->value())) return jsUndefined(); - JSValue* result = toJS(exec, WTF::getPtr(imp->setAttributeNodeNS(newAttr, ec))); + JSValuePtr result = toJS(exec, WTF::getPtr(imp->setAttributeNodeNS(newAttr, ec))); setDOMException(exec, ec); return result; } -JSValue* toJSNewlyCreated(ExecState* exec, Element* element) +JSValuePtr toJSNewlyCreated(ExecState* exec, Element* element) { if (!element) return jsNull(); |