static void hostnameAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
{
    HTMLAnchorElement* imp = V8HTMLAnchorElement::toNative(info.Holder());
    V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, v, value);
    imp->setHostname(v);
    return;
}
Exemplo n.º 2
0
 static void hostnameAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) {
   INC_STATS("DOM.HTMLAnchorElement.hostname._set");
   HTMLAnchorElement* imp = V8HTMLAnchorElement::toNative(info.Holder());
   V8Parameter<WithNullCheck> v = value;
   imp->setHostname(v);
   return;
 }
void setJSHTMLAnchorElementHostname(ExecState* exec, JSObject* thisObject, JSValue value)
{
    JSHTMLAnchorElement* castedThisObj = static_cast<JSHTMLAnchorElement*>(thisObject);
    HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThisObj->impl());
    imp->setHostname(valueToStringWithNullCheck(exec, value));
}