void setJSCSSCharsetRuleEncoding(ExecState* exec, JSObject* thisObject, JSValue value) { JSCSSCharsetRule* castedThis = static_cast<JSCSSCharsetRule*>(thisObject); CSSCharsetRule* imp = static_cast<CSSCharsetRule*>(castedThis->impl()); ExceptionCode ec = 0; imp->setEncoding(valueToStringWithNullCheck(exec, value), ec); setDOMException(exec, ec); }
static void encodingAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) { INC_STATS("DOM.CSSCharsetRule.encoding._set"); CSSCharsetRule* imp = V8CSSCharsetRule::toNative(info.Holder()); STRING_TO_V8PARAMETER_EXCEPTION_BLOCK_VOID(V8Parameter<WithNullCheck>, v, value); ExceptionCode ec = 0; imp->setEncoding(v, ec); if (UNLIKELY(ec)) V8Proxy::setDOMException(ec); return; }
void JSCSSCharsetRule::putValueProperty(ExecState* exec, int token, JSValue* value, int /*attr*/) { switch (token) { case EncodingAttrNum: { CSSCharsetRule* imp = static_cast<CSSCharsetRule*>(impl()); ExceptionCode ec = 0; imp->setEncoding(valueToStringWithNullCheck(exec, value), ec); setDOMException(exec, ec); break; } } }