void setJSCSSRuleCssText(ExecState* exec, JSObject* thisObject, JSValue value) { JSCSSRule* castedThis = static_cast<JSCSSRule*>(thisObject); CSSRule* imp = static_cast<CSSRule*>(castedThis->impl()); ExceptionCode ec = 0; imp->setCssText(valueToStringWithNullCheck(exec, value), ec); setDOMException(exec, ec); }
static void cssTextAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) { CSSRule* imp = V8CSSRule::toNative(info.Holder()); V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, v, value); ExceptionCode ec = 0; imp->setCssText(v, ec); if (UNLIKELY(ec)) setDOMException(ec, info.GetIsolate()); return; }
void JSCSSRule::putValueProperty(ExecState* exec, int token, JSValue* value) { switch (token) { case CssTextAttrNum: { CSSRule* imp = static_cast<CSSRule*>(impl()); ExceptionCode ec = 0; imp->setCssText(valueToStringWithNullCheck(exec, value), ec); setDOMException(exec, ec); break; } } }