JSValue jsHTMLEmbedElementWidth(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSHTMLEmbedElement* castedThis = static_cast<JSHTMLEmbedElement*>(asObject(slot.slotBase())); UNUSED_PARAM(exec); HTMLEmbedElement* imp = static_cast<HTMLEmbedElement*>(castedThis->impl()); return jsString(exec, imp->getAttribute(HTMLNames::widthAttr)); }
JSValue jsHTMLEmbedElementWidth(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLEmbedElement* castedThis = static_cast<JSHTMLEmbedElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLEmbedElement* imp = static_cast<HTMLEmbedElement*>(castedThis->impl()); JSValue result = jsString(exec, imp->getAttribute(HTMLNames::widthAttr)); return result; }
JSValue JSC_HOST_CALL jsHTMLEmbedElementPrototypeFunctionGetSVGDocument(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.inherits(&JSHTMLEmbedElement::s_info)) return throwError(exec, TypeError); JSHTMLEmbedElement* castedThisObj = static_cast<JSHTMLEmbedElement*>(asObject(thisValue)); HTMLEmbedElement* imp = static_cast<HTMLEmbedElement*>(castedThisObj->impl()); ExceptionCode ec = 0; if (!checkNodeSecurity(exec, imp->getSVGDocument(ec))) return jsUndefined(); JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), WTF::getPtr(imp->getSVGDocument(ec))); setDOMException(exec, ec); return result; }
void setJSHTMLEmbedElementWidth(ExecState* exec, JSObject* thisObject, JSValue value) { JSHTMLEmbedElement* castedThisObj = static_cast<JSHTMLEmbedElement*>(thisObject); HTMLEmbedElement* imp = static_cast<HTMLEmbedElement*>(castedThisObj->impl()); imp->setAttribute(HTMLNames::widthAttr, valueToStringWithNullCheck(exec, value)); }