JSValue jsHTMLFrameElementHeight(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slot.slotBase())); UNUSED_PARAM(exec); HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl()); return jsNumber(exec, imp->height()); }
JSValue jsHTMLFrameElementContentWindow(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slot.slotBase())); UNUSED_PARAM(exec); HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl()); return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->contentWindow())); }
JSValue jsHTMLFrameElementSrc(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slot.slotBase())); UNUSED_PARAM(exec); HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl()); return jsString(exec, imp->getURLAttribute(HTMLNames::srcAttr)); }
JSValue jsHTMLFrameElementNoResize(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slot.slotBase())); UNUSED_PARAM(exec); HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl()); return jsBoolean(imp->noResize()); }
JSValue jsHTMLFrameElementHeight(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl()); JSValue result = jsNumber(imp->height()); return result; }
JSValue jsHTMLFrameElementLocation(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl()); JSValue result = jsString(exec, imp->location()); return result; }
JSValue jsHTMLFrameElementContentWindow(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl()); JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->contentWindow())); return result; }
JSValue jsHTMLFrameElementSrc(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl()); JSValue result = jsString(exec, imp->getURLAttribute(WebCore::HTMLNames::srcAttr)); return result; }
JSValue jsHTMLFrameElementNoResize(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl()); JSValue result = jsBoolean(imp->hasAttribute(WebCore::HTMLNames::noresizeAttr)); return result; }
JSValue JSC_HOST_CALL jsHTMLFrameElementPrototypeFunctionGetSVGDocument(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.inherits(&JSHTMLFrameElement::s_info)) return throwError(exec, TypeError); JSHTMLFrameElement* castedThisObj = static_cast<JSHTMLFrameElement*>(asObject(thisValue)); HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(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 jsHTMLFrameElementPrototypeFunctionGetSVGDocument(ExecState* exec) { JSValue thisValue = exec->hostThisValue(); if (!thisValue.inherits(&JSHTMLFrameElement::s_info)) return throwVMTypeError(exec); JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(thisValue)); ASSERT_GC_OBJECT_INHERITS(castedThis, &JSHTMLFrameElement::s_info); HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(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 setJSHTMLFrameElementSrc(ExecState* exec, JSObject* thisObject, JSValue value) { JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(thisObject); HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl()); imp->setAttribute(WebCore::HTMLNames::srcAttr, valueToStringWithNullCheck(exec, value)); }
void setJSHTMLFrameElementNoResize(ExecState* exec, JSObject* thisObject, JSValue value) { JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(thisObject); HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl()); imp->setBooleanAttribute(WebCore::HTMLNames::noresizeAttr, value.toBoolean(exec)); }
JSValue jsHTMLFrameElementContentDocument(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase)); HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl()); return checkNodeSecurity(exec, imp->contentDocument()) ? toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->contentDocument())) : jsUndefined(); }
void setJSHTMLFrameElementScrolling(ExecState* exec, JSObject* thisObject, JSValue value) { JSHTMLFrameElement* castedThisObj = static_cast<JSHTMLFrameElement*>(thisObject); HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThisObj->impl()); imp->setAttribute(HTMLNames::scrollingAttr, valueToStringWithNullCheck(exec, value)); }
void setJSHTMLFrameElementNoResize(ExecState* exec, JSObject* thisObject, JSValue value) { JSHTMLFrameElement* castedThisObj = static_cast<JSHTMLFrameElement*>(thisObject); HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThisObj->impl()); imp->setNoResize(value.toBoolean(exec)); }