mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[mujs] style.backgroundClip
This commit is contained in:
parent
fe0c162b2b
commit
de54805f6c
@ -188,6 +188,15 @@ mjs_style_get_property_background(js_State *J)
|
|||||||
mjs_style(J, "background");
|
mjs_style(J, "background");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
mjs_style_get_property_backgroundClip(js_State *J)
|
||||||
|
{
|
||||||
|
#ifdef ECMASCRIPT_DEBUG
|
||||||
|
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||||
|
#endif
|
||||||
|
mjs_style(J, "background-clip");
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
mjs_style_get_property_backgroundColor(js_State *J)
|
mjs_style_get_property_backgroundColor(js_State *J)
|
||||||
{
|
{
|
||||||
@ -313,6 +322,15 @@ mjs_style_set_property_background(js_State *J)
|
|||||||
mjs_set_style(J, "background");
|
mjs_set_style(J, "background");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
mjs_style_set_property_backgroundClip(js_State *J)
|
||||||
|
{
|
||||||
|
#ifdef ECMASCRIPT_DEBUG
|
||||||
|
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||||
|
#endif
|
||||||
|
mjs_set_style(J, "background-clip");
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
mjs_style_set_property_backgroundColor(js_State *J)
|
mjs_style_set_property_backgroundColor(js_State *J)
|
||||||
{
|
{
|
||||||
@ -451,6 +469,7 @@ mjs_push_style(js_State *J, void *node)
|
|||||||
js_newuserdata(J, "style", node, mjs_style_finalizer);
|
js_newuserdata(J, "style", node, mjs_style_finalizer);
|
||||||
addmethod(J, "toString", mjs_style_toString, 0);
|
addmethod(J, "toString", mjs_style_toString, 0);
|
||||||
addproperty(J, "background", mjs_style_get_property_background, mjs_style_set_property_background);
|
addproperty(J, "background", mjs_style_get_property_background, mjs_style_set_property_background);
|
||||||
|
addproperty(J, "backgroundClip", mjs_style_get_property_backgroundClip, mjs_style_set_property_backgroundClip);
|
||||||
addproperty(J, "backgroundColor", mjs_style_get_property_backgroundColor, mjs_style_set_property_backgroundColor);
|
addproperty(J, "backgroundColor", mjs_style_get_property_backgroundColor, mjs_style_set_property_backgroundColor);
|
||||||
addproperty(J, "color", mjs_style_get_property_color, mjs_style_set_property_color);
|
addproperty(J, "color", mjs_style_get_property_color, mjs_style_set_property_color);
|
||||||
addproperty(J, "cssText", mjs_style_get_property_cssText, mjs_style_set_property_cssText);
|
addproperty(J, "cssText", mjs_style_get_property_cssText, mjs_style_set_property_cssText);
|
||||||
|
Loading…
Reference in New Issue
Block a user