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; }
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; } } }