static v8::Handle<v8::Value> textAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.HTMLTitleElement.text._get");
    HTMLTitleElement* imp = V8HTMLTitleElement::toNative(info.Holder());
	if (!R_check(imp)) return v8::Handle<v8::Value>(v8::Undefined());
    return v8String(imp->text());
}
예제 #2
0
JSValue jsHTMLTitleElementText(ExecState* exec, JSValue slotBase, const Identifier&)
{
    JSHTMLTitleElement* castedThis = static_cast<JSHTMLTitleElement*>(asObject(slotBase));
    UNUSED_PARAM(exec);
    HTMLTitleElement* imp = static_cast<HTMLTitleElement*>(castedThis->impl());
    JSValue result = jsString(exec, imp->text());
    return result;
}
예제 #3
0
JSValue* JSHTMLTitleElement::getValueProperty(ExecState* exec, int token) const
{
    switch (token) {
    case TextAttrNum: {
        HTMLTitleElement* imp = static_cast<HTMLTitleElement*>(impl());
        return jsString(exec, imp->text());
    }
    case ConstructorAttrNum:
        return getConstructor(exec);
    }
    return 0;
}
static v8::Handle<v8::Value> textAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    HTMLTitleElement* imp = V8HTMLTitleElement::toNative(info.Holder());
    return v8String(imp->text(), info.GetIsolate());
}