void JSHTMLIFrameElement::setSrc(ExecState* exec, JSValue value) { HTMLIFrameElement* imp = static_cast<HTMLIFrameElement*>(impl()); String srcValue = valueToStringWithNullCheck(exec, value); if (protocolIsJavaScript(deprecatedParseURL(srcValue))) { Document* contentDocument = imp->contentDocument(); if (contentDocument && !checkNodeSecurity(exec, contentDocument)) return; } imp->setAttribute(srcAttr, srcValue); }
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)); }
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)); }