JSValue jsCSSPageRuleStyle(ExecState* exec, JSValue slotBase, const Identifier&) { JSCSSPageRule* castedThis = static_cast<JSCSSPageRule*>(asObject(slotBase)); UNUSED_PARAM(exec); CSSPageRule* imp = static_cast<CSSPageRule*>(castedThis->impl()); JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->style())); return result; }
EncodedJSValue jsCSSPageRuleConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName) { JSCSSPageRule* domObject = jsDynamicCast<JSCSSPageRule*>(JSValue::decode(thisValue)); if (!domObject) return throwVMTypeError(exec); if (!domObject) return throwVMTypeError(exec); return JSValue::encode(JSCSSPageRule::getConstructor(exec->vm(), domObject->globalObject())); }
EncodedJSValue jsCSSPageRuleStyle(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue thisValue, PropertyName) { JSCSSPageRule* castedThis = jsDynamicCast<JSCSSPageRule*>(JSValue::decode(thisValue)); UNUSED_PARAM(slotBase); if (!castedThis) return throwVMTypeError(exec); UNUSED_PARAM(exec); CSSPageRule& impl = castedThis->impl(); JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(impl.style())); return JSValue::encode(result); }
JSValue jsCSSPageRuleConstructor(ExecState* exec, JSValue slotBase, const Identifier&) { JSCSSPageRule* domObject = static_cast<JSCSSPageRule*>(asObject(slotBase)); return JSCSSPageRule::getConstructor(exec, domObject->globalObject()); }