static void wrapAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) { INC_STATS("DOM.HTMLPreElement.wrap._set"); HTMLPreElement* imp = V8HTMLPreElement::toNative(info.Holder()); bool v = value->BooleanValue(); imp->setWrap(v); return; }
static void widthAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) { INC_STATS("DOM.HTMLPreElement.width._set"); HTMLPreElement* imp = V8HTMLPreElement::toNative(info.Holder()); int v = toInt32(value); imp->setWidth(v); return; }
static void wrapAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) { HTMLPreElement* imp = V8HTMLPreElement::toNative(info.Holder()); bool v = value->BooleanValue(); imp->setBooleanAttribute(WebCore::HTMLNames::wrapAttr, v); return; }
static void widthAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) { HTMLPreElement* imp = V8HTMLPreElement::toNative(info.Holder()); int v = toInt32(value); imp->setIntegralAttribute(WebCore::HTMLNames::widthAttr, v); return; }
JSValue jsHTMLPreElementWrap(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLPreElement* castedThis = static_cast<JSHTMLPreElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLPreElement* imp = static_cast<HTMLPreElement*>(castedThis->impl()); JSValue result = jsBoolean(imp->hasAttribute(WebCore::HTMLNames::wrapAttr)); return result; }
JSValue jsHTMLPreElementWidth(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLPreElement* castedThis = static_cast<JSHTMLPreElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLPreElement* imp = static_cast<HTMLPreElement*>(castedThis->impl()); JSValue result = jsNumber(imp->getIntegralAttribute(WebCore::HTMLNames::widthAttr)); return result; }
void JSHTMLPreElement::putValueProperty(ExecState* exec, int token, JSValue* value) { switch (token) { case WidthAttrNum: { HTMLPreElement* imp = static_cast<HTMLPreElement*>(impl()); imp->setWidth(value->toInt32(exec)); break; } case WrapAttrNum: { HTMLPreElement* imp = static_cast<HTMLPreElement*>(impl()); imp->setWrap(value->toBoolean(exec)); break; } } }
JSValue* JSHTMLPreElement::getValueProperty(ExecState* exec, int token) const { switch (token) { case WidthAttrNum: { HTMLPreElement* imp = static_cast<HTMLPreElement*>(impl()); return jsNumber(exec, imp->width()); } case WrapAttrNum: { HTMLPreElement* imp = static_cast<HTMLPreElement*>(impl()); return jsBoolean(imp->wrap()); } case ConstructorAttrNum: return getConstructor(exec); } return 0; }
void setJSHTMLPreElementWrap(ExecState* exec, JSObject* thisObject, JSValue value) { JSHTMLPreElement* castedThis = static_cast<JSHTMLPreElement*>(thisObject); HTMLPreElement* imp = static_cast<HTMLPreElement*>(castedThis->impl()); imp->setBooleanAttribute(WebCore::HTMLNames::wrapAttr, value.toBoolean(exec)); }
void setJSHTMLPreElementWidth(ExecState* exec, JSObject* thisObject, JSValue value) { JSHTMLPreElement* castedThis = static_cast<JSHTMLPreElement*>(thisObject); HTMLPreElement* imp = static_cast<HTMLPreElement*>(castedThis->impl()); imp->setIntegralAttribute(WebCore::HTMLNames::widthAttr, value.toInt32(exec)); }
static v8::Handle<v8::Value> wrapAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.HTMLPreElement.wrap._get"); HTMLPreElement* imp = V8HTMLPreElement::toNative(info.Holder()); return v8Boolean(imp->wrap()); }
static v8::Handle<v8::Value> widthAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.HTMLPreElement.width._get"); HTMLPreElement* imp = V8HTMLPreElement::toNative(info.Holder()); return v8::Integer::New(imp->width()); }
static v8::Handle<v8::Value> wrapAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { HTMLPreElement* imp = V8HTMLPreElement::toNative(info.Holder()); return v8Boolean(imp->fastHasAttribute(WebCore::HTMLNames::wrapAttr), info.GetIsolate()); }
static v8::Handle<v8::Value> widthAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { HTMLPreElement* imp = V8HTMLPreElement::toNative(info.Holder()); return v8Integer(imp->getIntegralAttribute(WebCore::HTMLNames::widthAttr), info.GetIsolate()); }