JSValue jsCSSCharsetRuleEncoding(ExecState* exec, JSValue slotBase, const Identifier&) { JSCSSCharsetRule* castedThis = static_cast<JSCSSCharsetRule*>(asObject(slotBase)); UNUSED_PARAM(exec); CSSCharsetRule* imp = static_cast<CSSCharsetRule*>(castedThis->impl()); JSValue result = jsStringOrNull(exec, imp->encoding()); return result; }
JSValue* JSCSSCharsetRule::getValueProperty(ExecState* exec, int token) const { switch (token) { case EncodingAttrNum: { CSSCharsetRule* imp = static_cast<CSSCharsetRule*>(impl()); return jsStringOrNull(imp->encoding()); } case ConstructorAttrNum: return getConstructor(exec); } return 0; }
static v8::Handle<v8::Value> encodingAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.CSSCharsetRule.encoding._get"); CSSCharsetRule* imp = V8CSSCharsetRule::toNative(info.Holder()); return v8StringOrNull(imp->encoding()); }