JSValue jsHTMLIFrameElementContentWindow(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLIFrameElement* castedThis = static_cast<JSHTMLIFrameElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLIFrameElement* imp = static_cast<HTMLIFrameElement*>(castedThis->impl()); JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->contentWindow())); return result; }
JSValue jsHTMLIFrameElementWidth(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLIFrameElement* castedThis = static_cast<JSHTMLIFrameElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLIFrameElement* imp = static_cast<HTMLIFrameElement*>(castedThis->impl()); JSValue result = jsString(exec, imp->getAttribute(HTMLNames::widthAttr)); return result; }
JSValue JSC_HOST_CALL jsHTMLIFrameElementPrototypeFunctionGetSVGDocument(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.inherits(&JSHTMLIFrameElement::s_info)) return throwError(exec, TypeError); JSHTMLIFrameElement* castedThisObj = static_cast<JSHTMLIFrameElement*>(asObject(thisValue)); HTMLIFrameElement* imp = static_cast<HTMLIFrameElement*>(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; }
EncodedJSValue JSC_HOST_CALL jsHTMLIFrameElementPrototypeFunctionGetSVGDocument(ExecState* exec) { JSValue thisValue = exec->hostThisValue(); if (!thisValue.inherits(&JSHTMLIFrameElement::s_info)) return throwVMTypeError(exec); JSHTMLIFrameElement* castedThis = static_cast<JSHTMLIFrameElement*>(asObject(thisValue)); HTMLIFrameElement* imp = static_cast<HTMLIFrameElement*>(castedThis->impl()); ExceptionCode ec = 0; if (!checkNodeSecurity(exec, imp->getSVGDocument(ec))) return JSValue::encode(jsUndefined()); JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->getSVGDocument(ec))); setDOMException(exec, ec); return JSValue::encode(result); }
void setJSHTMLIFrameElementWidth(ExecState* exec, JSObject* thisObject, JSValue value) { JSHTMLIFrameElement* castedThisObj = static_cast<JSHTMLIFrameElement*>(thisObject); HTMLIFrameElement* imp = static_cast<HTMLIFrameElement*>(castedThisObj->impl()); imp->setAttribute(HTMLNames::widthAttr, valueToStringWithNullCheck(exec, value)); }
JSValue jsHTMLIFrameElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLIFrameElement* domObject = static_cast<JSHTMLIFrameElement*>(asObject(slotBase)); return JSHTMLIFrameElement::getConstructor(exec, domObject->globalObject()); }
JSValue jsHTMLIFrameElementContentDocument(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLIFrameElement* castedThis = static_cast<JSHTMLIFrameElement*>(asObject(slotBase)); HTMLIFrameElement* imp = static_cast<HTMLIFrameElement*>(castedThis->impl()); return checkNodeSecurity(exec, imp->contentDocument()) ? toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->contentDocument())) : jsUndefined(); }
void setJSHTMLIFrameElementSrc(ExecState* exec, JSObject* thisObject, JSValue value) { JSHTMLIFrameElement* castedThis = static_cast<JSHTMLIFrameElement*>(thisObject); HTMLIFrameElement* imp = static_cast<HTMLIFrameElement*>(castedThis->impl()); imp->setAttribute(WebCore::HTMLNames::srcAttr, valueToStringWithNullCheck(exec, value)); }