JSValue jsHTMLAnchorElementProtocol(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl()); JSValue result = jsString(exec, imp->protocol()); return result; }
static v8::Handle<v8::Value> protocolAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.HTMLAnchorElement.protocol._get"); HTMLAnchorElement* imp = V8HTMLAnchorElement::toNative(info.Holder()); return v8String(imp->protocol()); }
static v8::Handle<v8::Value> protocolAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { HTMLAnchorElement* imp = V8HTMLAnchorElement::toNative(info.Holder()); return v8String(imp->protocol(), info.GetIsolate()); }