summaryrefslogtreecommitdiff
path: root/src/select/properties.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/select/properties.c')
-rw-r--r--src/select/properties.c499
1 files changed, 277 insertions, 222 deletions
diff --git a/src/select/properties.c b/src/select/properties.c
index db3fca9..04f7001 100644
--- a/src/select/properties.c
+++ b/src/select/properties.c
@@ -5,13 +5,27 @@
* Copyright 2009 John-Mark Bell <jmb@netsurf-browser.org>
*/
-static css_error cascade_azimuth(css_select_ctx *ctx,
- uint32_t opv, css_style *style, css_select_state *state)
+static css_error cascade_azimuth(uint32_t opv, css_style *style,
+ css_select_state *state)
{
- UNUSED(ctx);
- UNUSED(opv);
- UNUSED(style);
- UNUSED(state);
+ uint16_t value = 0;;
+ css_fixed val = 0;
+ uint32_t unit = CSS_UNIT_PX;
+
+ if (isInherit(opv) == false) {
+ value = getValue(opv);
+
+ if (value == AZIMUTH_ANGLE) {
+ val = *((css_fixed *) style->bytecode);
+ advance_bytecode(style, sizeof(val));
+ unit = *((uint32_t *) style->bytecode);
+ advance_bytecode(style, sizeof(unit));
+ }
+ }
+
+ if (outranks_existing(getOpcode(opv), isImportant(opv), state)) {
+ /** \todo set computed azimuth */
+ }
return CSS_OK;
}
@@ -23,64 +37,105 @@ static css_error initial_azimuth(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_background_attachment(css_select_ctx *ctx,
- uint32_t opv, css_style *style, css_select_state *state)
+static css_error cascade_background_attachment(uint32_t opv, css_style *style,
+ css_select_state *state)
{
- UNUSED(ctx);
- UNUSED(opv);
+ uint16_t value = CSS_BACKGROUND_ATTACHMENT_INHERIT;
+
UNUSED(style);
- UNUSED(state);
+
+ if (isInherit(opv) == false) {
+ switch (getValue(opv)) {
+ case BACKGROUND_ATTACHMENT_FIXED:
+ value = CSS_BACKGROUND_ATTACHMENT_FIXED;
+ break;
+ case BACKGROUND_ATTACHMENT_SCROLL:
+ value = CSS_BACKGROUND_ATTACHMENT_SCROLL;
+ break;
+ }
+ }
+
+ if (outranks_existing(getOpcode(opv), isImportant(opv), state)) {
+ return set_background_attachment(state->result, value);
+ }
return CSS_OK;
}
static css_error initial_background_attachment(css_computed_style *style)
{
- UNUSED(style);
-
- return CSS_OK;
+ return set_background_attachment(style,
+ CSS_BACKGROUND_ATTACHMENT_SCROLL);
}
-static css_error cascade_background_color(css_select_ctx *ctx,
- uint32_t opv, css_style *style, css_select_state *state)
+static css_error cascade_background_color(uint32_t opv, css_style *style,
+ css_select_state *state)
{
- UNUSED(ctx);
- UNUSED(opv);
- UNUSED(style);
- UNUSED(state);
+ uint16_t value = CSS_BACKGROUND_COLOR_INHERIT;
+ css_color color = 0;
+
+ if (isInherit(opv) == false) {
+ switch (getValue(opv)) {
+ case BACKGROUND_COLOR_TRANSPARENT:
+ value = CSS_BACKGROUND_COLOR_TRANSPARENT;
+ break;
+ case BACKGROUND_COLOR_SET:
+ value = CSS_BACKGROUND_COLOR_COLOR;
+ color = *((css_color *) style->bytecode);
+ advance_bytecode(style, sizeof(color));
+ break;
+ }
+ }
+
+ if (outranks_existing(getOpcode(opv), isImportant(opv), state)) {
+ return set_background_color(state->result, value, color);
+ }
return CSS_OK;
}
static css_error initial_background_color(css_computed_style *style)
{
- UNUSED(style);
-
- return CSS_OK;
+ return set_background_color(style, CSS_BACKGROUND_COLOR_TRANSPARENT, 0);
}
-static css_error cascade_background_image(css_select_ctx *ctx,
- uint32_t opv, css_style *style, css_select_state *state)
+static css_error cascade_background_image(uint32_t opv, css_style *style,
+ css_select_state *state)
{
- UNUSED(ctx);
- UNUSED(opv);
- UNUSED(style);
- UNUSED(state);
+ uint16_t value = CSS_BACKGROUND_IMAGE_INHERIT;
+ parserutils_hash_entry *uri = NULL;
+
+ if (isInherit(opv) == false) {
+ switch (getValue(opv)) {
+ case BACKGROUND_IMAGE_NONE:
+ value = CSS_BACKGROUND_IMAGE_NONE;
+ break;
+ case BACKGROUND_IMAGE_URI:
+ value = CSS_BACKGROUND_IMAGE_IMAGE;
+ uri = *((parserutils_hash_entry **) style->bytecode);
+ advance_bytecode(style, sizeof(uri));
+ break;
+ }
+ }
+
+ if (outranks_existing(getOpcode(opv), isImportant(opv), state)) {
+ /** \todo fix this mess -- it's seriously unsafe */
+ return set_background_image(state->result, value,
+ (css_string *) uri);
+ }
return CSS_OK;
}
static css_error initial_background_image(css_computed_style *style)
{
- UNUSED(style);
-
- return CSS_OK;
+ return set_background_image(style, CSS_BACKGROUND_IMAGE_NONE, NULL);
}
-static css_error cascade_background_position(css_select_ctx *ctx,
+static css_error cascade_background_position(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -95,10 +150,10 @@ static css_error initial_background_position(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_background_repeat(css_select_ctx *ctx,
+static css_error cascade_background_repeat(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -113,10 +168,10 @@ static css_error initial_background_repeat(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_border_collapse(css_select_ctx *ctx,
+static css_error cascade_border_collapse(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -131,10 +186,10 @@ static css_error initial_border_collapse(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_border_spacing(css_select_ctx *ctx,
+static css_error cascade_border_spacing(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -149,10 +204,10 @@ static css_error initial_border_spacing(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_border_top_color(css_select_ctx *ctx,
+static css_error cascade_border_top_color(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -167,10 +222,10 @@ static css_error initial_border_top_color(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_border_right_color(css_select_ctx *ctx,
+static css_error cascade_border_right_color(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -185,10 +240,10 @@ static css_error initial_border_right_color(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_border_bottom_color(css_select_ctx *ctx,
+static css_error cascade_border_bottom_color(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -203,10 +258,10 @@ static css_error initial_border_bottom_color(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_border_left_color(css_select_ctx *ctx,
+static css_error cascade_border_left_color(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -221,10 +276,10 @@ static css_error initial_border_left_color(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_border_top_style(css_select_ctx *ctx,
+static css_error cascade_border_top_style(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -239,10 +294,10 @@ static css_error initial_border_top_style(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_border_right_style(css_select_ctx *ctx,
+static css_error cascade_border_right_style(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -257,10 +312,10 @@ static css_error initial_border_right_style(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_border_bottom_style(css_select_ctx *ctx,
+static css_error cascade_border_bottom_style(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -275,10 +330,10 @@ static css_error initial_border_bottom_style(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_border_left_style(css_select_ctx *ctx,
+static css_error cascade_border_left_style(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -293,10 +348,10 @@ static css_error initial_border_left_style(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_border_top_width(css_select_ctx *ctx,
+static css_error cascade_border_top_width(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -311,10 +366,10 @@ static css_error initial_border_top_width(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_border_right_width(css_select_ctx *ctx,
+static css_error cascade_border_right_width(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -329,10 +384,10 @@ static css_error initial_border_right_width(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_border_bottom_width(css_select_ctx *ctx,
+static css_error cascade_border_bottom_width(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -347,10 +402,10 @@ static css_error initial_border_bottom_width(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_border_left_width(css_select_ctx *ctx,
+static css_error cascade_border_left_width(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -365,10 +420,10 @@ static css_error initial_border_left_width(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_bottom(css_select_ctx *ctx,
+static css_error cascade_bottom(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -383,10 +438,10 @@ static css_error initial_bottom(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_caption_side(css_select_ctx *ctx,
+static css_error cascade_caption_side(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -401,10 +456,10 @@ static css_error initial_caption_side(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_clear(css_select_ctx *ctx,
+static css_error cascade_clear(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -419,10 +474,10 @@ static css_error initial_clear(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_clip(css_select_ctx *ctx,
+static css_error cascade_clip(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -437,10 +492,10 @@ static css_error initial_clip(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_color(css_select_ctx *ctx,
+static css_error cascade_color(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -455,10 +510,10 @@ static css_error initial_color(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_content(css_select_ctx *ctx,
+static css_error cascade_content(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -473,10 +528,10 @@ static css_error initial_content(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_counter_increment(css_select_ctx *ctx,
+static css_error cascade_counter_increment(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -491,10 +546,10 @@ static css_error initial_counter_increment(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_counter_reset(css_select_ctx *ctx,
+static css_error cascade_counter_reset(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -509,10 +564,10 @@ static css_error initial_counter_reset(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_cue_after(css_select_ctx *ctx,
+static css_error cascade_cue_after(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -527,10 +582,10 @@ static css_error initial_cue_after(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_cue_before(css_select_ctx *ctx,
+static css_error cascade_cue_before(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -545,10 +600,10 @@ static css_error initial_cue_before(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_cursor(css_select_ctx *ctx,
+static css_error cascade_cursor(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -563,10 +618,10 @@ static css_error initial_cursor(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_direction(css_select_ctx *ctx,
+static css_error cascade_direction(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -581,10 +636,10 @@ static css_error initial_direction(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_display(css_select_ctx *ctx,
+static css_error cascade_display(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -599,10 +654,10 @@ static css_error initial_display(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_elevation(css_select_ctx *ctx,
+static css_error cascade_elevation(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -617,10 +672,10 @@ static css_error initial_elevation(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_empty_cells(css_select_ctx *ctx,
+static css_error cascade_empty_cells(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -635,10 +690,10 @@ static css_error initial_empty_cells(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_float(css_select_ctx *ctx,
+static css_error cascade_float(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -653,10 +708,10 @@ static css_error initial_float(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_font_family(css_select_ctx *ctx,
+static css_error cascade_font_family(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -671,10 +726,10 @@ static css_error initial_font_family(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_font_size(css_select_ctx *ctx,
+static css_error cascade_font_size(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -689,10 +744,10 @@ static css_error initial_font_size(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_font_style(css_select_ctx *ctx,
+static css_error cascade_font_style(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -707,10 +762,10 @@ static css_error initial_font_style(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_font_variant(css_select_ctx *ctx,
+static css_error cascade_font_variant(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -725,10 +780,10 @@ static css_error initial_font_variant(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_font_weight(css_select_ctx *ctx,
+static css_error cascade_font_weight(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -743,10 +798,10 @@ static css_error initial_font_weight(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_height(css_select_ctx *ctx,
+static css_error cascade_height(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -761,10 +816,10 @@ static css_error initial_height(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_left(css_select_ctx *ctx,
+static css_error cascade_left(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -779,10 +834,10 @@ static css_error initial_left(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_letter_spacing(css_select_ctx *ctx,
+static css_error cascade_letter_spacing(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -797,10 +852,10 @@ static css_error initial_letter_spacing(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_line_height(css_select_ctx *ctx,
+static css_error cascade_line_height(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -815,10 +870,10 @@ static css_error initial_line_height(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_list_style_image(css_select_ctx *ctx,
+static css_error cascade_list_style_image(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -833,10 +888,10 @@ static css_error initial_list_style_image(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_list_style_position(css_select_ctx *ctx,
+static css_error cascade_list_style_position(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -851,10 +906,10 @@ static css_error initial_list_style_position(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_list_style_type(css_select_ctx *ctx,
+static css_error cascade_list_style_type(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -869,10 +924,10 @@ static css_error initial_list_style_type(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_margin_top(css_select_ctx *ctx,
+static css_error cascade_margin_top(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -887,10 +942,10 @@ static css_error initial_margin_top(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_margin_right(css_select_ctx *ctx,
+static css_error cascade_margin_right(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -905,10 +960,10 @@ static css_error initial_margin_right(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_margin_bottom(css_select_ctx *ctx,
+static css_error cascade_margin_bottom(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -923,10 +978,10 @@ static css_error initial_margin_bottom(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_margin_left(css_select_ctx *ctx,
+static css_error cascade_margin_left(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -941,10 +996,10 @@ static css_error initial_margin_left(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_max_height(css_select_ctx *ctx,
+static css_error cascade_max_height(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -959,10 +1014,10 @@ static css_error initial_max_height(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_max_width(css_select_ctx *ctx,
+static css_error cascade_max_width(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -977,10 +1032,10 @@ static css_error initial_max_width(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_min_height(css_select_ctx *ctx,
+static css_error cascade_min_height(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -995,10 +1050,10 @@ static css_error initial_min_height(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_min_width(css_select_ctx *ctx,
+static css_error cascade_min_width(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1013,10 +1068,10 @@ static css_error initial_min_width(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_orphans(css_select_ctx *ctx,
+static css_error cascade_orphans(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1031,10 +1086,10 @@ static css_error initial_orphans(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_outline_color(css_select_ctx *ctx,
+static css_error cascade_outline_color(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1049,10 +1104,10 @@ static css_error initial_outline_color(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_outline_style(css_select_ctx *ctx,
+static css_error cascade_outline_style(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1067,10 +1122,10 @@ static css_error initial_outline_style(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_outline_width(css_select_ctx *ctx,
+static css_error cascade_outline_width(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1085,10 +1140,10 @@ static css_error initial_outline_width(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_overflow(css_select_ctx *ctx,
+static css_error cascade_overflow(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1103,10 +1158,10 @@ static css_error initial_overflow(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_padding_top(css_select_ctx *ctx,
+static css_error cascade_padding_top(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1121,10 +1176,10 @@ static css_error initial_padding_top(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_padding_right(css_select_ctx *ctx,
+static css_error cascade_padding_right(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1139,10 +1194,10 @@ static css_error initial_padding_right(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_padding_bottom(css_select_ctx *ctx,
+static css_error cascade_padding_bottom(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1157,10 +1212,10 @@ static css_error initial_padding_bottom(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_padding_left(css_select_ctx *ctx,
+static css_error cascade_padding_left(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1175,10 +1230,10 @@ static css_error initial_padding_left(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_page_break_after(css_select_ctx *ctx,
+static css_error cascade_page_break_after(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1193,10 +1248,10 @@ static css_error initial_page_break_after(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_page_break_before(css_select_ctx *ctx,
+static css_error cascade_page_break_before(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1211,10 +1266,10 @@ static css_error initial_page_break_before(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_page_break_inside(css_select_ctx *ctx,
+static css_error cascade_page_break_inside(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1229,10 +1284,10 @@ static css_error initial_page_break_inside(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_pause_after(css_select_ctx *ctx,
+static css_error cascade_pause_after(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1247,10 +1302,10 @@ static css_error initial_pause_after(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_pause_before(css_select_ctx *ctx,
+static css_error cascade_pause_before(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1265,10 +1320,10 @@ static css_error initial_pause_before(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_pitch_range(css_select_ctx *ctx,
+static css_error cascade_pitch_range(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1283,10 +1338,10 @@ static css_error initial_pitch_range(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_pitch(css_select_ctx *ctx,
+static css_error cascade_pitch(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1301,10 +1356,10 @@ static css_error initial_pitch(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_play_during(css_select_ctx *ctx,
+static css_error cascade_play_during(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1319,10 +1374,10 @@ static css_error initial_play_during(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_position(css_select_ctx *ctx,
+static css_error cascade_position(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1337,10 +1392,10 @@ static css_error initial_position(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_quotes(css_select_ctx *ctx,
+static css_error cascade_quotes(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1355,10 +1410,10 @@ static css_error initial_quotes(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_richness(css_select_ctx *ctx,
+static css_error cascade_richness(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1373,10 +1428,10 @@ static css_error initial_richness(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_right(css_select_ctx *ctx,
+static css_error cascade_right(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1391,10 +1446,10 @@ static css_error initial_right(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_speak_header(css_select_ctx *ctx,
+static css_error cascade_speak_header(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1409,10 +1464,10 @@ static css_error initial_speak_header(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_speak_numeral(css_select_ctx *ctx,
+static css_error cascade_speak_numeral(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1427,10 +1482,10 @@ static css_error initial_speak_numeral(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_speak_punctuation(css_select_ctx *ctx,
+static css_error cascade_speak_punctuation(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1445,10 +1500,10 @@ static css_error initial_speak_punctuation(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_speak(css_select_ctx *ctx,
+static css_error cascade_speak(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1463,10 +1518,10 @@ static css_error initial_speak(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_speech_rate(css_select_ctx *ctx,
+static css_error cascade_speech_rate(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1481,10 +1536,10 @@ static css_error initial_speech_rate(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_stress(css_select_ctx *ctx,
+static css_error cascade_stress(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1499,10 +1554,10 @@ static css_error initial_stress(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_table_layout(css_select_ctx *ctx,
+static css_error cascade_table_layout(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1517,10 +1572,10 @@ static css_error initial_table_layout(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_text_align(css_select_ctx *ctx,
+static css_error cascade_text_align(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1535,10 +1590,10 @@ static css_error initial_text_align(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_text_decoration(css_select_ctx *ctx,
+static css_error cascade_text_decoration(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1553,10 +1608,10 @@ static css_error initial_text_decoration(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_text_indent(css_select_ctx *ctx,
+static css_error cascade_text_indent(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1571,10 +1626,10 @@ static css_error initial_text_indent(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_text_transform(css_select_ctx *ctx,
+static css_error cascade_text_transform(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1589,10 +1644,10 @@ static css_error initial_text_transform(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_top(css_select_ctx *ctx,
+static css_error cascade_top(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1607,10 +1662,10 @@ static css_error initial_top(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_unicode_bidi(css_select_ctx *ctx,
+static css_error cascade_unicode_bidi(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1625,10 +1680,10 @@ static css_error initial_unicode_bidi(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_vertical_align(css_select_ctx *ctx,
+static css_error cascade_vertical_align(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1643,10 +1698,10 @@ static css_error initial_vertical_align(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_visibility(css_select_ctx *ctx,
+static css_error cascade_visibility(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1661,10 +1716,10 @@ static css_error initial_visibility(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_voice_family(css_select_ctx *ctx,
+static css_error cascade_voice_family(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1679,10 +1734,10 @@ static css_error initial_voice_family(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_volume(css_select_ctx *ctx,
+static css_error cascade_volume(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1697,10 +1752,10 @@ static css_error initial_volume(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_white_space(css_select_ctx *ctx,
+static css_error cascade_white_space(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1715,10 +1770,10 @@ static css_error initial_white_space(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_widows(css_select_ctx *ctx,
+static css_error cascade_widows(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1733,10 +1788,10 @@ static css_error initial_widows(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_width(css_select_ctx *ctx,
+static css_error cascade_width(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1751,10 +1806,10 @@ static css_error initial_width(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_word_spacing(css_select_ctx *ctx,
+static css_error cascade_word_spacing(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);
@@ -1769,10 +1824,10 @@ static css_error initial_word_spacing(css_computed_style *style)
return CSS_OK;
}
-static css_error cascade_z_index(css_select_ctx *ctx,
+static css_error cascade_z_index(
uint32_t opv, css_style *style, css_select_state *state)
{
- UNUSED(ctx);
+
UNUSED(opv);
UNUSED(style);
UNUSED(state);