mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[spidermonkey] style.height
This commit is contained in:
parent
73e507737a
commit
2c8ffe31f9
@ -61,6 +61,7 @@ static bool style_get_property_color(JSContext *ctx, unsigned int argc, JS::Valu
|
|||||||
static bool style_get_property_display(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
static bool style_get_property_display(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
static bool style_get_property_fontStyle(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
static bool style_get_property_fontStyle(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
static bool style_get_property_fontWeight(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
static bool style_get_property_fontWeight(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
|
static bool style_get_property_height(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
static bool style_get_property_lineStyle(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
static bool style_get_property_lineStyle(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
static bool style_get_property_lineStyleType(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
static bool style_get_property_lineStyleType(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
static bool style_get_property_textAlign(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
static bool style_get_property_textAlign(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
@ -73,6 +74,7 @@ static bool style_set_property_color(JSContext *ctx, unsigned int argc, JS::Valu
|
|||||||
static bool style_set_property_display(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
static bool style_set_property_display(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
static bool style_set_property_fontStyle(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
static bool style_set_property_fontStyle(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
static bool style_set_property_fontWeight(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
static bool style_set_property_fontWeight(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
|
static bool style_set_property_height(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
static bool style_set_property_lineStyle(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
static bool style_set_property_lineStyle(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
static bool style_set_property_lineStyleType(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
static bool style_set_property_lineStyleType(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
static bool style_set_property_textAlign(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
static bool style_set_property_textAlign(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
@ -112,6 +114,7 @@ static JSPropertySpec style_props[] = {
|
|||||||
JS_PSGS("display", style_get_property_display, style_set_property_display, JSPROP_ENUMERATE),
|
JS_PSGS("display", style_get_property_display, style_set_property_display, JSPROP_ENUMERATE),
|
||||||
JS_PSGS("fontStyle", style_get_property_fontStyle, style_set_property_fontStyle, JSPROP_ENUMERATE),
|
JS_PSGS("fontStyle", style_get_property_fontStyle, style_set_property_fontStyle, JSPROP_ENUMERATE),
|
||||||
JS_PSGS("fontWeight", style_get_property_fontWeight, style_set_property_fontWeight, JSPROP_ENUMERATE),
|
JS_PSGS("fontWeight", style_get_property_fontWeight, style_set_property_fontWeight, JSPROP_ENUMERATE),
|
||||||
|
JS_PSGS("height", style_get_property_height, style_set_property_height, JSPROP_ENUMERATE),
|
||||||
JS_PSGS("lineStyle", style_get_property_lineStyle, style_set_property_lineStyle, JSPROP_ENUMERATE),
|
JS_PSGS("lineStyle", style_get_property_lineStyle, style_set_property_lineStyle, JSPROP_ENUMERATE),
|
||||||
JS_PSGS("lineStyleType", style_get_property_lineStyleType, style_set_property_lineStyleType, JSPROP_ENUMERATE),
|
JS_PSGS("lineStyleType", style_get_property_lineStyleType, style_set_property_lineStyleType, JSPROP_ENUMERATE),
|
||||||
JS_PSGS("textAlign", style_get_property_textAlign, style_set_property_textAlign, JSPROP_ENUMERATE),
|
JS_PSGS("textAlign", style_get_property_textAlign, style_set_property_textAlign, JSPROP_ENUMERATE),
|
||||||
@ -174,6 +177,15 @@ style_get_property_fontWeight(JSContext *ctx, unsigned int argc, JS::Value *vp)
|
|||||||
return style_style(ctx, argc, vp, "font-weight");
|
return style_style(ctx, argc, vp, "font-weight");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool
|
||||||
|
style_get_property_height(JSContext *ctx, unsigned int argc, JS::Value *vp)
|
||||||
|
{
|
||||||
|
#ifdef ECMASCRIPT_DEBUG
|
||||||
|
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||||
|
#endif
|
||||||
|
return style_style(ctx, argc, vp, "height");
|
||||||
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
style_get_property_lineStyle(JSContext *ctx, unsigned int argc, JS::Value *vp)
|
style_get_property_lineStyle(JSContext *ctx, unsigned int argc, JS::Value *vp)
|
||||||
{
|
{
|
||||||
@ -273,6 +285,15 @@ style_set_property_fontWeight(JSContext *ctx, unsigned int argc, JS::Value *vp)
|
|||||||
return style_set_style(ctx, argc, vp, "font-weight");
|
return style_set_style(ctx, argc, vp, "font-weight");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool
|
||||||
|
style_set_property_height(JSContext *ctx, unsigned int argc, JS::Value *vp)
|
||||||
|
{
|
||||||
|
#ifdef ECMASCRIPT_DEBUG
|
||||||
|
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||||
|
#endif
|
||||||
|
return style_set_style(ctx, argc, vp, "height");
|
||||||
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
style_set_property_lineStyle(JSContext *ctx, unsigned int argc, JS::Value *vp)
|
style_set_property_lineStyle(JSContext *ctx, unsigned int argc, JS::Value *vp)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user