mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[quickjs] style.backgroundClip
This commit is contained in:
parent
98276c2829
commit
fe0c162b2b
@ -201,6 +201,15 @@ js_style_get_property_background(JSContext *ctx, JSValueConst this_val)
|
|||||||
return js_style(ctx, this_val, "background");
|
return js_style(ctx, this_val, "background");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static JSValue
|
||||||
|
js_style_get_property_backgroundClip(JSContext *ctx, JSValueConst this_val)
|
||||||
|
{
|
||||||
|
#ifdef ECMASCRIPT_DEBUG
|
||||||
|
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||||
|
#endif
|
||||||
|
return js_style(ctx, this_val, "background-clip");
|
||||||
|
}
|
||||||
|
|
||||||
static JSValue
|
static JSValue
|
||||||
js_style_get_property_backgroundColor(JSContext *ctx, JSValueConst this_val)
|
js_style_get_property_backgroundColor(JSContext *ctx, JSValueConst this_val)
|
||||||
{
|
{
|
||||||
@ -327,6 +336,15 @@ js_style_set_property_background(JSContext *ctx, JSValueConst this_val, JSValue
|
|||||||
return js_set_style(ctx, this_val, val, "background");
|
return js_set_style(ctx, this_val, val, "background");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static JSValue
|
||||||
|
js_style_set_property_backgroundClip(JSContext *ctx, JSValueConst this_val, JSValue val)
|
||||||
|
{
|
||||||
|
#ifdef ECMASCRIPT_DEBUG
|
||||||
|
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||||
|
#endif
|
||||||
|
return js_set_style(ctx, this_val, val, "background-clip");
|
||||||
|
}
|
||||||
|
|
||||||
static JSValue
|
static JSValue
|
||||||
js_style_set_property_backgroundColor(JSContext *ctx, JSValueConst this_val, JSValue val)
|
js_style_set_property_backgroundColor(JSContext *ctx, JSValueConst this_val, JSValue val)
|
||||||
{
|
{
|
||||||
@ -461,6 +479,7 @@ js_style_toString(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst
|
|||||||
|
|
||||||
static const JSCFunctionListEntry js_style_proto_funcs[] = {
|
static const JSCFunctionListEntry js_style_proto_funcs[] = {
|
||||||
JS_CGETSET_DEF("background", js_style_get_property_background, js_style_set_property_background),
|
JS_CGETSET_DEF("background", js_style_get_property_background, js_style_set_property_background),
|
||||||
|
JS_CGETSET_DEF("backgroundClip", js_style_get_property_backgroundClip, js_style_set_property_backgroundClip),
|
||||||
JS_CGETSET_DEF("backgroundColor", js_style_get_property_backgroundColor, js_style_set_property_backgroundColor),
|
JS_CGETSET_DEF("backgroundColor", js_style_get_property_backgroundColor, js_style_set_property_backgroundColor),
|
||||||
JS_CGETSET_DEF("color", js_style_get_property_color, js_style_set_property_color),
|
JS_CGETSET_DEF("color", js_style_get_property_color, js_style_set_property_color),
|
||||||
JS_CGETSET_DEF("cssText", js_style_get_property_cssText, js_style_set_property_cssText),
|
JS_CGETSET_DEF("cssText", js_style_get_property_cssText, js_style_set_property_cssText),
|
||||||
|
Loading…
Reference in New Issue
Block a user