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* JSHTMLFrameElement::getValueProperty(ExecState* exec, int token) const { switch (token) { case FrameBorderAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsString(exec, imp->frameBorder()); } case LongDescAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsString(exec, imp->longDesc()); } case MarginHeightAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsString(exec, imp->marginHeight()); } case MarginWidthAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsString(exec, imp->marginWidth()); } case NameAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsString(exec, imp->name()); } case NoResizeAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsBoolean(imp->noResize()); } case ScrollingAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsString(exec, imp->scrolling()); } case SrcAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsString(exec, imp->src()); } case ContentDocumentAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return checkNodeSecurity(exec, imp->contentDocument()) ? toJS(exec, WTF::getPtr(imp->contentDocument())) : jsUndefined(); } case ContentWindowAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return toJS(exec, WTF::getPtr(imp->contentWindow())); } case LocationAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsString(exec, imp->location()); } case WidthAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsNumber(exec, imp->width()); } case HeightAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsNumber(exec, imp->height()); } case ConstructorAttrNum: return getConstructor(exec); } return 0; }
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; }