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