summaryrefslogtreecommitdiff
path: root/src/select
diff options
context:
space:
mode:
Diffstat (limited to 'src/select')
-rw-r--r--src/select/dispatch.c504
-rw-r--r--src/select/dispatch.h8
-rw-r--r--src/select/properties.c785
-rw-r--r--src/select/properties.h901
4 files changed, 996 insertions, 1202 deletions
diff --git a/src/select/dispatch.c b/src/select/dispatch.c
index c15465b..113ea0f 100644
--- a/src/select/dispatch.c
+++ b/src/select/dispatch.c
@@ -1,7 +1,7 @@
/*
* This file is part of LibCSS
* Licensed under the MIT License,
- * http://www.opensource.org/licenses/mit-license.php
+ * http://www.opensource.org/licenses/mit-license.php
* Copyright 2009 John-Mark Bell <jmb@netsurf-browser.org>
*/
@@ -11,796 +11,506 @@
/**
* Dispatch table for properties, indexed by opcode
*/
+#define PROPERTY_FUNCS(pname) \
+ cascade_##pname , \
+ set_##pname##_from_hint, \
+ initial_##pname , \
+ compose_##pname , \
+ destroy_##pname
+
struct prop_table prop_dispatch[CSS_N_PROPERTIES] = {
{
- cascade_azimuth,
- set_azimuth_from_hint,
- initial_azimuth,
- compose_azimuth,
+ PROPERTY_FUNCS(azimuth),
1,
GROUP_AURAL
},
{
- cascade_background_attachment,
- set_background_attachment_from_hint,
- initial_background_attachment,
- compose_background_attachment,
+ PROPERTY_FUNCS(background_attachment),
0,
GROUP_NORMAL
},
{
- cascade_background_color,
- set_background_color_from_hint,
- initial_background_color,
- compose_background_color,
+ PROPERTY_FUNCS(background_color),
0,
GROUP_NORMAL
},
{
- cascade_background_image,
- set_background_image_from_hint,
- initial_background_image,
- compose_background_image,
+ PROPERTY_FUNCS(background_image),
0,
GROUP_NORMAL
},
{
- cascade_background_position,
- set_background_position_from_hint,
- initial_background_position,
- compose_background_position,
+ PROPERTY_FUNCS(background_position),
0,
GROUP_NORMAL
},
{
- cascade_background_repeat,
- set_background_repeat_from_hint,
- initial_background_repeat,
- compose_background_repeat,
+ PROPERTY_FUNCS(background_repeat),
0,
GROUP_NORMAL
},
{
- cascade_border_collapse,
- set_border_collapse_from_hint,
- initial_border_collapse,
- compose_border_collapse,
+ PROPERTY_FUNCS(border_collapse),
1,
GROUP_NORMAL
},
{
- cascade_border_spacing,
- set_border_spacing_from_hint,
- initial_border_spacing,
- compose_border_spacing,
+ PROPERTY_FUNCS(border_spacing),
1,
GROUP_UNCOMMON
},
{
- cascade_border_top_color,
- set_border_top_color_from_hint,
- initial_border_top_color,
- compose_border_top_color,
+ PROPERTY_FUNCS(border_top_color),
0,
GROUP_NORMAL
},
{
- cascade_border_right_color,
- set_border_right_color_from_hint,
- initial_border_right_color,
- compose_border_right_color,
+ PROPERTY_FUNCS(border_right_color),
0,
GROUP_NORMAL
},
{
- cascade_border_bottom_color,
- set_border_bottom_color_from_hint,
- initial_border_bottom_color,
- compose_border_bottom_color,
+ PROPERTY_FUNCS(border_bottom_color),
0,
GROUP_NORMAL
},
{
- cascade_border_left_color,
- set_border_left_color_from_hint,
- initial_border_left_color,
- compose_border_left_color,
+ PROPERTY_FUNCS(border_left_color),
0,
GROUP_NORMAL
},
{
- cascade_border_top_style,
- set_border_top_style_from_hint,
- initial_border_top_style,
- compose_border_top_style,
+ PROPERTY_FUNCS(border_top_style),
0,
GROUP_NORMAL
},
{
- cascade_border_right_style,
- set_border_right_style_from_hint,
- initial_border_right_style,
- compose_border_right_style,
+ PROPERTY_FUNCS(border_right_style),
0,
GROUP_NORMAL
},
{
- cascade_border_bottom_style,
- set_border_bottom_style_from_hint,
- initial_border_bottom_style,
- compose_border_bottom_style,
+ PROPERTY_FUNCS(border_bottom_style),
0,
GROUP_NORMAL
},
{
- cascade_border_left_style,
- set_border_left_style_from_hint,
- initial_border_left_style,
- compose_border_left_style,
+ PROPERTY_FUNCS(border_left_style),
0,
GROUP_NORMAL
},
{
- cascade_border_top_width,
- set_border_top_width_from_hint,
- initial_border_top_width,
- compose_border_top_width,
+ PROPERTY_FUNCS(border_top_width),
0,
GROUP_NORMAL
},
{
- cascade_border_right_width,
- set_border_right_width_from_hint,
- initial_border_right_width,
- compose_border_right_width,
+ PROPERTY_FUNCS(border_right_width),
0,
GROUP_NORMAL
},
{
- cascade_border_bottom_width,
- set_border_bottom_width_from_hint,
- initial_border_bottom_width,
- compose_border_bottom_width,
+ PROPERTY_FUNCS(border_bottom_width),
0,
GROUP_NORMAL
},
{
- cascade_border_left_width,
- set_border_left_width_from_hint,
- initial_border_left_width,
- compose_border_left_width,
+ PROPERTY_FUNCS(border_left_width),
0,
GROUP_NORMAL
},
{
- cascade_bottom,
- set_bottom_from_hint,
- initial_bottom,
- compose_bottom,
+ PROPERTY_FUNCS(bottom),
0,
GROUP_NORMAL
},
{
- cascade_caption_side,
- set_caption_side_from_hint,
- initial_caption_side,
- compose_caption_side,
+ PROPERTY_FUNCS(caption_side),
1,
GROUP_NORMAL
},
{
- cascade_clear,
- set_clear_from_hint,
- initial_clear,
- compose_clear,
+ PROPERTY_FUNCS(clear),
0,
GROUP_NORMAL
},
{
- cascade_clip,
- set_clip_from_hint,
- initial_clip,
- compose_clip,
+ PROPERTY_FUNCS(clip),
0,
GROUP_UNCOMMON
},
{
- cascade_color,
- set_color_from_hint,
- initial_color,
- compose_color,
+ PROPERTY_FUNCS(color),
1,
GROUP_NORMAL
},
{
- cascade_content,
- set_content_from_hint,
- initial_content,
- compose_content,
+ PROPERTY_FUNCS(content),
0,
GROUP_UNCOMMON
},
{
- cascade_counter_increment,
- set_counter_increment_from_hint,
- initial_counter_increment,
- compose_counter_increment,
+ PROPERTY_FUNCS(counter_increment),
0,
GROUP_UNCOMMON
},
{
- cascade_counter_reset,
- set_counter_reset_from_hint,
- initial_counter_reset,
- compose_counter_reset,
+ PROPERTY_FUNCS(counter_reset),
0,
GROUP_UNCOMMON
},
{
- cascade_cue_after,
- set_cue_after_from_hint,
- initial_cue_after,
- compose_cue_after,
+ PROPERTY_FUNCS(cue_after),
0,
GROUP_AURAL
},
{
- cascade_cue_before,
- set_cue_before_from_hint,
- initial_cue_before,
- compose_cue_before,
+ PROPERTY_FUNCS(cue_before),
0,
GROUP_AURAL
},
{
- cascade_cursor,
- set_cursor_from_hint,
- initial_cursor,
- compose_cursor,
+ PROPERTY_FUNCS(cursor),
1,
GROUP_UNCOMMON
},
{
- cascade_direction,
- set_direction_from_hint,
- initial_direction,
- compose_direction,
+ PROPERTY_FUNCS(direction),
1,
GROUP_NORMAL
},
{
- cascade_display,
- set_display_from_hint,
- initial_display,
- compose_display,
+ PROPERTY_FUNCS(display),
0,
GROUP_NORMAL
},
{
- cascade_elevation,
- set_elevation_from_hint,
- initial_elevation,
- compose_elevation,
+ PROPERTY_FUNCS(elevation),
1,
GROUP_AURAL
},
{
- cascade_empty_cells,
- set_empty_cells_from_hint,
- initial_empty_cells,
- compose_empty_cells,
+ PROPERTY_FUNCS(empty_cells),
1,
GROUP_NORMAL
},
{
- cascade_float,
- set_float_from_hint,
- initial_float,
- compose_float,
+ PROPERTY_FUNCS(float),
0,
GROUP_NORMAL
},
{
- cascade_font_family,
- set_font_family_from_hint,
- initial_font_family,
- compose_font_family,
+ PROPERTY_FUNCS(font_family),
1,
GROUP_NORMAL
},
{
- cascade_font_size,
- set_font_size_from_hint,
- initial_font_size,
- compose_font_size,
+ PROPERTY_FUNCS(font_size),
1,
GROUP_NORMAL
},
{
- cascade_font_style,
- set_font_style_from_hint,
- initial_font_style,
- compose_font_style,
+ PROPERTY_FUNCS(font_style),
1,
GROUP_NORMAL
},
{
- cascade_font_variant,
- set_font_variant_from_hint,
- initial_font_variant,
- compose_font_variant,
+ PROPERTY_FUNCS(font_variant),
1,
GROUP_NORMAL
},
{
- cascade_font_weight,
- set_font_weight_from_hint,
- initial_font_weight,
- compose_font_weight,
+ PROPERTY_FUNCS(font_weight),
1,
GROUP_NORMAL
},
{
- cascade_height,
- set_height_from_hint,
- initial_height,
- compose_height,
+ PROPERTY_FUNCS(height),
0,
GROUP_NORMAL
},
{
- cascade_left,
- set_left_from_hint,
- initial_left,
- compose_left,
+ PROPERTY_FUNCS(left),
0,
GROUP_NORMAL
},
{
- cascade_letter_spacing,
- set_letter_spacing_from_hint,
- initial_letter_spacing,
- compose_letter_spacing,
+ PROPERTY_FUNCS(letter_spacing),
1,
GROUP_UNCOMMON
},
{
- cascade_line_height,
- set_line_height_from_hint,
- initial_line_height,
- compose_line_height,
+ PROPERTY_FUNCS(line_height),
1,
GROUP_NORMAL
},
{
- cascade_list_style_image,
- set_list_style_image_from_hint,
- initial_list_style_image,
- compose_list_style_image,
+ PROPERTY_FUNCS(list_style_image),
1,
GROUP_NORMAL
},
{
- cascade_list_style_position,
- set_list_style_position_from_hint,
- initial_list_style_position,
- compose_list_style_position,
+ PROPERTY_FUNCS(list_style_position),
1,
GROUP_NORMAL
},
{
- cascade_list_style_type,
- set_list_style_type_from_hint,
- initial_list_style_type,
- compose_list_style_type,
+ PROPERTY_FUNCS(list_style_type),
1,
GROUP_NORMAL
},
{
- cascade_margin_top,
- set_margin_top_from_hint,
- initial_margin_top,
- compose_margin_top,
+ PROPERTY_FUNCS(margin_top),
0,
GROUP_NORMAL
},
{
- cascade_margin_right,
- set_margin_right_from_hint,
- initial_margin_right,
- compose_margin_right,
+ PROPERTY_FUNCS(margin_right),
0,
GROUP_NORMAL
},
{
- cascade_margin_bottom,
- set_margin_bottom_from_hint,
- initial_margin_bottom,
- compose_margin_bottom,
+ PROPERTY_FUNCS(margin_bottom),
0,
GROUP_NORMAL
},
{
- cascade_margin_left,
- set_margin_left_from_hint,
- initial_margin_left,
- compose_margin_left,
+ PROPERTY_FUNCS(margin_left),
0,
GROUP_NORMAL
},
{
- cascade_max_height,
- set_max_height_from_hint,
- initial_max_height,
- compose_max_height,
+ PROPERTY_FUNCS(max_height),
0,
GROUP_NORMAL
},
{
- cascade_max_width,
- set_max_width_from_hint,
- initial_max_width,
- compose_max_width,
+ PROPERTY_FUNCS(max_width),
0,
GROUP_NORMAL
},
{
- cascade_min_height,
- set_min_height_from_hint,
- initial_min_height,
- compose_min_height,
+ PROPERTY_FUNCS(min_height),
0,
GROUP_NORMAL
},
{
- cascade_min_width,
- set_min_width_from_hint,
- initial_min_width,
- compose_min_width,
+ PROPERTY_FUNCS(min_width),
0,
GROUP_NORMAL
},
{
- cascade_orphans,
- set_orphans_from_hint,
- initial_orphans,
- compose_orphans,
+ PROPERTY_FUNCS(orphans),
1,
GROUP_PAGE
},
{
- cascade_outline_color,
- set_outline_color_from_hint,
- initial_outline_color,
- compose_outline_color,
+ PROPERTY_FUNCS(outline_color),
0,
GROUP_UNCOMMON
},
{
- cascade_outline_style,
- set_outline_style_from_hint,
- initial_outline_style,
- compose_outline_style,
+ PROPERTY_FUNCS(outline_style),
0,
GROUP_NORMAL
},
{
- cascade_outline_width,
- set_outline_width_from_hint,
- initial_outline_width,
- compose_outline_width,
+ PROPERTY_FUNCS(outline_width),
0,
GROUP_UNCOMMON
},
{
- cascade_overflow,
- set_overflow_from_hint,
- initial_overflow,
- compose_overflow,
+ PROPERTY_FUNCS(overflow),
0,
GROUP_NORMAL
},
{
- cascade_padding_top,
- set_padding_top_from_hint,
- initial_padding_top,
- compose_padding_top,
+ PROPERTY_FUNCS(padding_top),
0,
GROUP_NORMAL
},
{
- cascade_padding_right,
- set_padding_right_from_hint,
- initial_padding_right,
- compose_padding_right,
+ PROPERTY_FUNCS(padding_right),
0,
GROUP_NORMAL
},
{
- cascade_padding_bottom,
- set_padding_bottom_from_hint,
- initial_padding_bottom,
- compose_padding_bottom,
+ PROPERTY_FUNCS(padding_bottom),
0,
GROUP_NORMAL
},
{
- cascade_padding_left,
- set_padding_left_from_hint,
- initial_padding_left,
- compose_padding_left,
+ PROPERTY_FUNCS(padding_left),
0,
GROUP_NORMAL
},
{
- cascade_page_break_after,
- set_page_break_after_from_hint,
- initial_page_break_after,
- compose_page_break_after,
+ PROPERTY_FUNCS(page_break_after),
0,
GROUP_PAGE
},
{
- cascade_page_break_before,
- set_page_break_before_from_hint,
- initial_page_break_before,
- compose_page_break_before,
+ PROPERTY_FUNCS(page_break_before),
0,
GROUP_PAGE
},
{
- cascade_page_break_inside,
- set_page_break_inside_from_hint,
- initial_page_break_inside,
- compose_page_break_inside,
+ PROPERTY_FUNCS(page_break_inside),
1,
GROUP_PAGE
},
{
- cascade_pause_after,
- set_pause_after_from_hint,
- initial_pause_after,
- compose_pause_after,
+ PROPERTY_FUNCS(pause_after),
0,
GROUP_AURAL
},
{
- cascade_pause_before,
- set_pause_before_from_hint,
- initial_pause_before,
- compose_pause_before,
+ PROPERTY_FUNCS(pause_before),
0,
GROUP_AURAL
},
{
- cascade_pitch_range,
- set_pitch_range_from_hint,
- initial_pitch_range,
- compose_pitch_range,
+ PROPERTY_FUNCS(pitch_range),
1,
GROUP_AURAL
},
{
- cascade_pitch,
- set_pitch_from_hint,
- initial_pitch,
- compose_pitch,
+ PROPERTY_FUNCS(pitch),
1,
GROUP_AURAL
},
{
- cascade_play_during,
- set_play_during_from_hint,
- initial_play_during,
- compose_play_during,
+ PROPERTY_FUNCS(play_during),
0,
GROUP_AURAL
},
{
- cascade_position,
- set_position_from_hint,
- initial_position,
- compose_position,
+ PROPERTY_FUNCS(position),
0,
GROUP_NORMAL
},
{
- cascade_quotes,
- set_quotes_from_hint,
- initial_quotes,
- compose_quotes,
+ PROPERTY_FUNCS(quotes),
1,
GROUP_NORMAL
},
{
- cascade_richness,
- set_richness_from_hint,
- initial_richness,
- compose_richness,
+ PROPERTY_FUNCS(richness),
1,
GROUP_AURAL
},
{
- cascade_right,
- set_right_from_hint,
- initial_right,
- compose_right,
+ PROPERTY_FUNCS(right),
0,
GROUP_NORMAL
},
{
- cascade_speak_header,
- set_speak_header_from_hint,
- initial_speak_header,
- compose_speak_header,
+ PROPERTY_FUNCS(speak_header),
1,
GROUP_AURAL
},
{
- cascade_speak_numeral,
- set_speak_numeral_from_hint,
- initial_speak_numeral,
- compose_speak_numeral,
+ PROPERTY_FUNCS(speak_numeral),
1,
GROUP_AURAL
},
{
- cascade_speak_punctuation,
- set_speak_punctuation_from_hint,
- initial_speak_punctuation,
- compose_speak_punctuation,
+ PROPERTY_FUNCS(speak_punctuation),
1,
GROUP_AURAL
},
{
- cascade_speak,
- set_speak_from_hint,
- initial_speak,
- compose_speak,
+ PROPERTY_FUNCS(speak),
1,
GROUP_AURAL
},
{
- cascade_speech_rate,
- set_speech_rate_from_hint,
- initial_speech_rate,
- compose_speech_rate,
+ PROPERTY_FUNCS(speech_rate),
1,
GROUP_AURAL
},
{
- cascade_stress,
- set_stress_from_hint,
- initial_stress,
- compose_stress,
+ PROPERTY_FUNCS(stress),
1,
GROUP_AURAL
},
{
- cascade_table_layout,
- set_table_layout_from_hint,
- initial_table_layout,
- compose_table_layout,
+ PROPERTY_FUNCS(table_layout),
0,
GROUP_NORMAL
},
{
- cascade_text_align,
- set_text_align_from_hint,
- initial_text_align,
- compose_text_align,
+ PROPERTY_FUNCS(text_align),
1,
GROUP_NORMAL
},
{
- cascade_text_decoration,
- set_text_decoration_from_hint,
- initial_text_decoration,
- compose_text_decoration,
+ PROPERTY_FUNCS(text_decoration),
0,
GROUP_NORMAL
},
{
- cascade_text_indent,
- set_text_indent_from_hint,
- initial_text_indent,
- compose_text_indent,
+ PROPERTY_FUNCS(text_indent),
1,
GROUP_NORMAL
},
{
- cascade_text_transform,
- set_text_transform_from_hint,
- initial_text_transform,
- compose_text_transform,
+ PROPERTY_FUNCS(text_transform),
1,
GROUP_NORMAL
},
{
- cascade_top,
- set_top_from_hint,
- initial_top,
- compose_top,
+ PROPERTY_FUNCS(top),
0,
GROUP_NORMAL
},
{
- cascade_unicode_bidi,
- set_unicode_bidi_from_hint,
- initial_unicode_bidi,
- compose_unicode_bidi,
+ PROPERTY_FUNCS(unicode_bidi),
0,
GROUP_NORMAL
},
{
- cascade_vertical_align,
- set_vertical_align_from_hint,
- initial_vertical_align,
- compose_vertical_align,
+ PROPERTY_FUNCS(vertical_align),
0,
GROUP_NORMAL
},
{
- cascade_visibility,
- set_visibility_from_hint,
- initial_visibility,
- compose_visibility,
+ PROPERTY_FUNCS(visibility),
1,
GROUP_NORMAL
},
{
- cascade_voice_family,
- set_voice_family_from_hint,
- initial_voice_family,
- compose_voice_family,
+ PROPERTY_FUNCS(voice_family),
1,
GROUP_AURAL
},
{
- cascade_volume,
- set_volume_from_hint,
- initial_volume,
- compose_volume,
+ PROPERTY_FUNCS(volume),
1,
GROUP_AURAL
},
{
- cascade_white_space,
- set_white_space_from_hint,
- initial_white_space,
- compose_white_space,
+ PROPERTY_FUNCS(white_space),
1,
GROUP_NORMAL
},
{
- cascade_widows,
- set_widows_from_hint,
- initial_widows,
- compose_widows,
+ PROPERTY_FUNCS(widows),
1,
GROUP_PAGE
},
{
- cascade_width,
- set_width_from_hint,
- initial_width,
- compose_width,
+ PROPERTY_FUNCS(width),
0,
GROUP_NORMAL
},
{
- cascade_word_spacing,
- set_word_spacing_from_hint,
- initial_word_spacing,
- compose_word_spacing,
+ PROPERTY_FUNCS(word_spacing),
1,
GROUP_UNCOMMON
},
{
- cascade_z_index,
- set_z_index_from_hint,
- initial_z_index,
- compose_z_index,
+ PROPERTY_FUNCS(z_index),
0,
GROUP_NORMAL
}
diff --git a/src/select/dispatch.h b/src/select/dispatch.h
index 9877458..6aa61ab 100644
--- a/src/select/dispatch.h
+++ b/src/select/dispatch.h
@@ -1,7 +1,7 @@
/*
* This file is part of LibCSS
* Licensed under the MIT License,
- * http://www.opensource.org/licenses/mit-license.php
+ * http://www.opensource.org/licenses/mit-license.php
* Copyright 2009 John-Mark Bell <jmb@netsurf-browser.org>
*/
@@ -36,9 +36,9 @@ extern struct prop_table {
css_error (*compose)(const css_computed_style *parent,
const css_computed_style *child,
css_computed_style *result);
-
- unsigned int inherited : 1,
- group : 2;
+ uint32_t (*destroy)(void *bytecode);
+ unsigned int inherited;
+ unsigned int group;
} prop_dispatch[CSS_N_PROPERTIES];
#endif
diff --git a/src/select/properties.c b/src/select/properties.c
index 3974f1e..5342964 100644
--- a/src/select/properties.c
+++ b/src/select/properties.c
@@ -1,7 +1,7 @@
/*
* This file is part of LibCSS
* Licensed under the MIT License,
- * http://www.opensource.org/licenses/mit-license.php
+ * http://www.opensource.org/licenses/mit-license.php
* Copyright 2009 John-Mark Bell <jmb@netsurf-browser.org>
*/
@@ -56,6 +56,42 @@ static css_error cascade_counter_increment_reset(uint32_t opv, css_style *style,
css_error (*fun)(css_computed_style *, uint8_t,
css_computed_counter *));
+/* Generic destructors */
+
+static uint32_t generic_destroy_color(void *bytecode)
+{
+ return sizeof(uint32_t) +
+ ((getValue(*((uint32_t*)bytecode)) == BACKGROUND_COLOR_SET) ? sizeof(css_color) : 0);
+}
+
+static uint32_t generic_destroy_uri(void *bytecode)
+{
+ bool has_uri = (getValue(*((uint32_t*)bytecode)) & BACKGROUND_IMAGE_URI) == BACKGROUND_IMAGE_URI;
+
+ if (has_uri) {
+ lwc_string *str = *(lwc_string **)(((uint8_t*)bytecode) + sizeof(uint32_t));
+ lwc_string_unref(str);
+ }
+ return sizeof(uint32_t) + (has_uri ? sizeof(lwc_string*) : 0);
+}
+
+static uint32_t generic_destroy_length(void *bytecode)
+{
+ bool has_length = (getValue(*((uint32_t*)bytecode)) & BORDER_WIDTH_SET) == BORDER_WIDTH_SET;
+
+ return sizeof(uint32_t) + (has_length ? sizeof(css_fixed) + sizeof(uint32_t) : 0);
+}
+
+static uint32_t generic_destroy_number(void *bytecode)
+{
+ uint32_t value = getValue(*((uint32_t*)bytecode));
+ bool has_number = (value == ORPHANS_SET);
+
+ return sizeof(uint32_t) + (has_number ? sizeof(css_fixed) : 0);
+}
+
+/* Useful helpers */
+
css_unit to_css_unit(uint32_t u)
{
switch (u) {
@@ -152,6 +188,14 @@ css_error compose_azimuth(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_azimuth(void *bytecode)
+{
+ bool has_angle = (((getValue(*(uint32_t*)bytecode) & (1<<7)) != 0));
+ uint32_t extra_size = has_angle ? (sizeof(css_fixed) + sizeof(uint32_t)) : 0;
+
+ return sizeof(uint32_t) + extra_size;
+}
+
css_error cascade_background_attachment(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -203,6 +247,13 @@ css_error compose_background_attachment(const css_computed_style *parent,
return set_background_attachment(result, type);
}
+uint32_t destroy_background_attachment(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_background_color(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -235,6 +286,11 @@ css_error compose_background_color(const css_computed_style *parent,
return set_background_color(result, type, color);
}
+uint32_t destroy_background_color(void *bytecode)
+{
+ return generic_destroy_color(bytecode);
+}
+
css_error cascade_background_image(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -267,6 +323,11 @@ css_error compose_background_image(const css_computed_style *parent,
return set_background_image(result, type, url);
}
+uint32_t destroy_background_image(void *bytecode)
+{
+ return generic_destroy_uri(bytecode);
+}
+
css_error cascade_background_position(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -368,6 +429,19 @@ css_error compose_background_position(const css_computed_style *parent,
}
+uint32_t destroy_background_position(void *bytecode)
+{
+ uint32_t value = getValue(*((uint32_t*)bytecode));
+ uint32_t extra_size = 0;
+
+ if ((value & 0x0f) == BACKGROUND_POSITION_VERT_SET)
+ extra_size += sizeof(css_fixed) + sizeof(uint32_t);
+ if ((value & 0xf0) == BACKGROUND_POSITION_HORZ_SET)
+ extra_size += sizeof(css_fixed) + sizeof(uint32_t);
+
+ return sizeof(uint32_t) + extra_size;
+}
+
css_error cascade_background_repeat(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -425,6 +499,13 @@ css_error compose_background_repeat(const css_computed_style *parent,
return set_background_repeat(result, type);
}
+uint32_t destroy_background_repeat(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_border_collapse(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -475,6 +556,13 @@ css_error compose_border_collapse(const css_computed_style *parent,
return set_border_collapse(result, type);
}
+uint32_t destroy_border_collapse(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_border_spacing(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -548,6 +636,13 @@ css_error compose_border_spacing(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_border_spacing(void *bytecode)
+{
+ bool has_values = (getValue(*((uint32_t*)bytecode)) == BORDER_SPACING_SET);
+
+ return sizeof(uint32_t) + (has_values ? (sizeof(css_fixed) + sizeof(uint32_t)) * 2 : 0);
+}
+
css_error cascade_border_top_color(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -579,6 +674,11 @@ css_error compose_border_top_color(const css_computed_style *parent,
return set_border_top_color(result, type, color);
}
+uint32_t destroy_border_top_color(void *bytecode)
+{
+ return generic_destroy_color(bytecode);
+}
+
css_error cascade_border_right_color(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -612,6 +712,11 @@ css_error compose_border_right_color(const css_computed_style *parent,
return set_border_right_color(result, type, color);
}
+uint32_t destroy_border_right_color(void *bytecode)
+{
+ return generic_destroy_color(bytecode);
+}
+
css_error cascade_border_bottom_color(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -645,6 +750,11 @@ css_error compose_border_bottom_color(const css_computed_style *parent,
return set_border_bottom_color(result, type, color);
}
+uint32_t destroy_border_bottom_color(void *bytecode)
+{
+ return generic_destroy_color(bytecode);
+}
+
css_error cascade_border_left_color(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -678,6 +788,11 @@ css_error compose_border_left_color(const css_computed_style *parent,
return set_border_left_color(result, type, color);
}
+uint32_t destroy_border_left_color(void *bytecode)
+{
+ return generic_destroy_color(bytecode);
+}
+
css_error cascade_border_top_style(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -708,6 +823,13 @@ css_error compose_border_top_style(const css_computed_style *parent,
return set_border_top_style(result, type);
}
+uint32_t destroy_border_top_style(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_border_right_style(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -738,6 +860,13 @@ css_error compose_border_right_style(const css_computed_style *parent,
return set_border_right_style(result, type);
}
+uint32_t destroy_border_right_style(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_border_bottom_style(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -768,6 +897,13 @@ css_error compose_border_bottom_style(const css_computed_style *parent,
return set_border_bottom_style(result, type);
}
+uint32_t destroy_border_bottom_style(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_border_left_style(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -798,6 +934,13 @@ css_error compose_border_left_style(const css_computed_style *parent,
return set_border_left_style(result, type);
}
+uint32_t destroy_border_left_style(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_border_top_width(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -832,6 +975,11 @@ css_error compose_border_top_width(const css_computed_style *parent,
return set_border_top_width(result, type, length, unit);
}
+uint32_t destroy_border_top_width(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_border_right_width(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -866,6 +1014,11 @@ css_error compose_border_right_width(const css_computed_style *parent,
return set_border_right_width(result, type, length, unit);
}
+uint32_t destroy_border_right_width(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_border_bottom_width(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -900,6 +1053,11 @@ css_error compose_border_bottom_width(const css_computed_style *parent,
return set_border_bottom_width(result, type, length, unit);
}
+uint32_t destroy_border_bottom_width(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_border_left_width(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -934,6 +1092,11 @@ css_error compose_border_left_width(const css_computed_style *parent,
return set_border_left_width(result, type, length, unit);
}
+uint32_t destroy_border_left_width(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_bottom(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -967,6 +1130,11 @@ css_error compose_bottom(const css_computed_style *parent,
return set_bottom(result, type, length, unit);
}
+uint32_t destroy_bottom(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_caption_side(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -1017,6 +1185,13 @@ css_error compose_caption_side(const css_computed_style *parent,
return set_caption_side(result, type);
}
+uint32_t destroy_caption_side(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_clear(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -1073,6 +1248,13 @@ css_error compose_clear(const css_computed_style *parent,
return set_clear(result, type);
}
+uint32_t destroy_clear(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_clip(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -1174,6 +1356,26 @@ css_error compose_clip(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_clip(void *bytecode)
+{
+ uint32_t value = getValue(*((uint32_t*)bytecode));
+ bool has_rect = value & CLIP_SHAPE_RECT;
+ bool nonautos = 0;
+
+ if (has_rect) {
+ if ((value & CLIP_RECT_TOP_AUTO) == 0)
+ nonautos += 1;
+ if ((value & CLIP_RECT_RIGHT_AUTO) == 0)
+ nonautos += 1;
+ if ((value & CLIP_RECT_BOTTOM_AUTO) == 0)
+ nonautos += 1;
+ if ((value & CLIP_RECT_LEFT_AUTO) == 0)
+ nonautos += 1;
+ }
+
+ return sizeof(uint32_t) + ((sizeof(css_fixed) + sizeof(uint32_t)) * nonautos);
+}
+
css_error cascade_color(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -1227,6 +1429,11 @@ css_error compose_color(const css_computed_style *parent,
return set_color(result, type, color);
}
+uint32_t destroy_color(void *bytecode)
+{
+ return generic_destroy_color(bytecode);
+}
+
css_error cascade_content(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -1243,12 +1450,12 @@ css_error cascade_content(uint32_t opv, css_style *style,
value = CSS_CONTENT_NONE;
} else {
value = CSS_CONTENT_SET;
-
- while (v != CONTENT_NORMAL) {
- lwc_string *he = *((lwc_string **) style->bytecode);
- css_computed_content_item *temp;
-
- temp = state->result->alloc(content,
+
+ while (v != CONTENT_NORMAL) {
+ lwc_string *he = *((lwc_string **) style->bytecode);
+ css_computed_content_item *temp;
+
+ temp = state->result->alloc(content,
(n_contents + 1) *
sizeof(css_computed_content_item),
state->result->pw);
@@ -1451,6 +1658,41 @@ css_error compose_content(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_content(void *bytecode)
+{
+ uint32_t consumed = sizeof(uint32_t);
+ uint32_t value = getValue(*((uint32_t*)bytecode));
+ bytecode = ((uint8_t*)bytecode) + sizeof(uint32_t);
+
+ if (value == CONTENT_NONE || value == CONTENT_NORMAL)
+ return sizeof(uint32_t);
+
+ while (value != 0) {
+ switch (value & 0xff) {
+ case CONTENT_COUNTERS: {
+ lwc_string *str = *(lwc_string **)bytecode;
+ lwc_string_unref(str);
+ consumed += sizeof(lwc_string*);
+ bytecode = (uint8_t*)bytecode + sizeof(lwc_string *);
+ }
+ case CONTENT_STRING:
+ case CONTENT_URI:
+ case CONTENT_COUNTER:
+ case CONTENT_ATTR: {
+ lwc_string *str = *(lwc_string **)bytecode;
+ lwc_string_unref(str);
+ consumed += sizeof(lwc_string*);
+ bytecode = (uint8_t*)bytecode + sizeof(lwc_string *);
+ }
+ }
+ consumed += sizeof(uint32_t);
+ value = *((uint32_t*)bytecode);
+ bytecode = ((uint8_t*)bytecode) + sizeof(uint32_t);
+ }
+
+ return consumed;
+}
+
css_error cascade_counter_increment(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -1540,6 +1782,28 @@ css_error compose_counter_increment(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_counter_increment(void *bytecode)
+{
+ uint32_t consumed = sizeof(uint32_t);
+ uint32_t value = getValue(*((uint32_t*)bytecode));
+ bytecode = ((uint8_t*)bytecode) + sizeof(uint32_t);
+
+ if (value == COUNTER_INCREMENT_NAMED) {
+ while (value != COUNTER_INCREMENT_NONE) {
+ lwc_string *str = *((lwc_string **)bytecode);
+ consumed += sizeof(lwc_string*) + sizeof(css_fixed);
+ bytecode = ((uint8_t*)bytecode) + sizeof(lwc_string*) + sizeof(css_fixed);
+ lwc_string_unref(str);
+
+ consumed += sizeof(uint32_t);
+ value = *((uint32_t*)bytecode);
+ bytecode = ((uint8_t*)bytecode) + sizeof(uint32_t);
+ }
+ }
+
+ return consumed;
+}
+
css_error cascade_counter_reset(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -1628,6 +1892,28 @@ css_error compose_counter_reset(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_counter_reset(void *bytecode)
+{
+ uint32_t consumed = sizeof(uint32_t);
+ uint32_t value = getValue(*((uint32_t*)bytecode));
+ bytecode = ((uint8_t*)bytecode) + sizeof(uint32_t);
+
+ if (value == COUNTER_INCREMENT_NAMED) {
+ while (value != COUNTER_INCREMENT_NONE) {
+ lwc_string *str = *((lwc_string **)bytecode);
+ consumed += sizeof(lwc_string*) + sizeof(css_fixed);
+ bytecode = ((uint8_t*)bytecode) + sizeof(lwc_string*) + sizeof(css_fixed);
+ lwc_string_unref(str);
+
+ consumed += sizeof(uint32_t);
+ value = *((uint32_t*)bytecode);
+ bytecode = ((uint8_t*)bytecode) + sizeof(uint32_t);
+ }
+ }
+
+ return consumed;
+}
+
css_error cascade_cue_after(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -1662,6 +1948,11 @@ css_error compose_cue_after(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_cue_after(void *bytecode)
+{
+ return generic_destroy_uri(bytecode);
+}
+
css_error cascade_cue_before(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -1696,6 +1987,11 @@ css_error compose_cue_before(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_cue_before(void *bytecode)
+{
+ return generic_destroy_uri(bytecode);
+}
+
css_error cascade_cursor(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -1902,6 +2198,26 @@ css_error compose_cursor(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_cursor(void *bytecode)
+{
+ uint32_t consumed = sizeof(uint32_t);
+ uint32_t value = getValue(*((uint32_t*)bytecode));
+ bytecode = ((uint8_t*)bytecode) + sizeof(uint32_t);
+
+ while (value == CURSOR_URI) {
+ lwc_string *str = *((lwc_string **)bytecode);
+ consumed += sizeof(lwc_string*);
+ bytecode = ((uint8_t*)bytecode) + sizeof(lwc_string*);
+ lwc_string_unref(str);
+
+ consumed += sizeof(uint32_t);
+ value = *((uint32_t*)bytecode);
+ bytecode = ((uint8_t*)bytecode) + sizeof(uint32_t);
+ }
+
+ return consumed;
+}
+
css_error cascade_direction(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -1952,6 +2268,13 @@ css_error compose_direction(const css_computed_style *parent,
return set_direction(result, type);
}
+uint32_t destroy_direction(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_display(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -2044,6 +2367,13 @@ css_error compose_display(const css_computed_style *parent,
return set_display(result, type);
}
+uint32_t destroy_display(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_elevation(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -2109,6 +2439,11 @@ css_error compose_elevation(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_elevation(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_empty_cells(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -2159,6 +2494,13 @@ css_error compose_empty_cells(const css_computed_style *parent,
return set_empty_cells(result, type);
}
+uint32_t destroy_empty_cells(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_float(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -2212,6 +2554,13 @@ css_error compose_float(const css_computed_style *parent,
return set_float(result, type);
}
+uint32_t destroy_float(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_font_family(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -2400,6 +2749,28 @@ css_error compose_font_family(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_font_family(void *bytecode)
+{
+ uint32_t consumed = sizeof(uint32_t);
+ uint32_t value = getValue(*((uint32_t*)bytecode));
+ bytecode = ((uint8_t*)bytecode) + sizeof(uint32_t);
+
+ while (value != FONT_FAMILY_END) {
+ if (value == FONT_FAMILY_STRING || value == FONT_FAMILY_IDENT_LIST) {
+ lwc_string *str = *((lwc_string **)bytecode);
+ consumed += sizeof(lwc_string*);
+ bytecode = ((uint8_t*)bytecode) + sizeof(lwc_string*);
+ lwc_string_unref(str);
+ }
+
+ consumed += sizeof(uint32_t);
+ value = *((uint32_t*)bytecode);
+ bytecode = ((uint8_t*)bytecode) + sizeof(uint32_t);
+ }
+
+ return consumed;
+}
+
css_error cascade_font_size(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -2486,6 +2857,11 @@ css_error compose_font_size(const css_computed_style *parent,
return set_font_size(result, type, size, unit);
}
+uint32_t destroy_font_size(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_font_style(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -2539,6 +2915,13 @@ css_error compose_font_style(const css_computed_style *parent,
return set_font_style(result, type);
}
+uint32_t destroy_font_style(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_font_variant(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -2589,6 +2972,13 @@ css_error compose_font_variant(const css_computed_style *parent,
return set_font_variant(result, type);
}
+uint32_t destroy_font_variant(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_font_weight(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -2672,6 +3062,13 @@ css_error compose_font_weight(const css_computed_style *parent,
return set_font_weight(result, type);
}
+uint32_t destroy_font_weight(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_height(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -2705,6 +3102,11 @@ css_error compose_height(const css_computed_style *parent,
return set_height(result, type, length, unit);
}
+uint32_t destroy_height(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_left(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -2738,6 +3140,11 @@ css_error compose_left(const css_computed_style *parent,
return set_left(result, type, length, unit);
}
+uint32_t destroy_left(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_letter_spacing(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -2779,6 +3186,11 @@ css_error compose_letter_spacing(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_letter_spacing(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_line_height(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -2844,6 +3256,15 @@ css_error compose_line_height(const css_computed_style *parent,
return set_line_height(result, type, length, unit);
}
+uint32_t destroy_line_height(void *bytecode)
+{
+ uint32_t value = getValue(*((uint32_t*)bytecode));
+ if (value == LINE_HEIGHT_NUMBER)
+ return generic_destroy_number(bytecode);
+ else
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_list_style_image(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -2876,6 +3297,11 @@ css_error compose_list_style_image(const css_computed_style *parent,
return set_list_style_image(result, type, url);
}
+uint32_t destroy_list_style_image(void *bytecode)
+{
+ return generic_destroy_uri(bytecode);
+}
+
css_error cascade_list_style_position(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -2927,6 +3353,13 @@ css_error compose_list_style_position(const css_computed_style *parent,
return set_list_style_position(result, type);
}
+uint32_t destroy_list_style_position(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_list_style_type(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3016,6 +3449,13 @@ css_error compose_list_style_type(const css_computed_style *parent,
return set_list_style_type(result, type);
}
+uint32_t destroy_list_style_type(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_margin_top(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3049,6 +3489,11 @@ css_error compose_margin_top(const css_computed_style *parent,
return set_margin_top(result, type, length, unit);
}
+uint32_t destroy_margin_top(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_margin_right(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3082,6 +3527,11 @@ css_error compose_margin_right(const css_computed_style *parent,
return set_margin_right(result, type, length, unit);
}
+uint32_t destroy_margin_right(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_margin_bottom(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3115,6 +3565,11 @@ css_error compose_margin_bottom(const css_computed_style *parent,
return set_margin_bottom(result, type, length, unit);
}
+uint32_t destroy_margin_bottom(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_margin_left(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3148,6 +3603,11 @@ css_error compose_margin_left(const css_computed_style *parent,
return set_margin_left(result, type, length, unit);
}
+uint32_t destroy_margin_left(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_max_height(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3182,6 +3642,11 @@ css_error compose_max_height(const css_computed_style *parent,
return set_max_height(result, type, length, unit);
}
+uint32_t destroy_max_height(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_max_width(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3215,6 +3680,11 @@ css_error compose_max_width(const css_computed_style *parent,
return set_max_width(result, type, length, unit);
}
+uint32_t destroy_max_width(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_min_height(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3249,6 +3719,11 @@ css_error compose_min_height(const css_computed_style *parent,
return set_min_height(result, type, length, unit);
}
+uint32_t destroy_min_height(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_min_width(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3282,6 +3757,11 @@ css_error compose_min_width(const css_computed_style *parent,
return set_min_width(result, type, length, unit);
}
+uint32_t destroy_min_width(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_orphans(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3316,6 +3796,11 @@ css_error compose_orphans(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_orphans(void *bytecode)
+{
+ return generic_destroy_number(bytecode);
+}
+
css_error cascade_outline_color(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3375,6 +3860,11 @@ css_error compose_outline_color(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_outline_color(void *bytecode)
+{
+ return generic_destroy_color(bytecode);
+}
+
css_error cascade_outline_style(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3405,6 +3895,13 @@ css_error compose_outline_style(const css_computed_style *parent,
return set_outline_style(result, type);
}
+uint32_t destroy_outline_style(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_outline_width(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3446,6 +3943,11 @@ css_error compose_outline_width(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_outline_width(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_overflow(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3502,6 +4004,13 @@ css_error compose_overflow(const css_computed_style *parent,
return set_overflow(result, type);
}
+uint32_t destroy_overflow(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_padding_top(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3535,6 +4044,11 @@ css_error compose_padding_top(const css_computed_style *parent,
return set_padding_top(result, type, length, unit);
}
+uint32_t destroy_padding_top(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_padding_right(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3569,6 +4083,11 @@ css_error compose_padding_right(const css_computed_style *parent,
return set_padding_right(result, type, length, unit);
}
+uint32_t destroy_padding_right(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_padding_bottom(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3603,6 +4122,11 @@ css_error compose_padding_bottom(const css_computed_style *parent,
return set_padding_bottom(result, type, length, unit);
}
+uint32_t destroy_padding_bottom(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_padding_left(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3636,6 +4160,11 @@ css_error compose_padding_left(const css_computed_style *parent,
return set_padding_left(result, type, length, unit);
}
+uint32_t destroy_padding_left(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_page_break_after(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3670,6 +4199,13 @@ css_error compose_page_break_after(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_page_break_after(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_page_break_before(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3704,6 +4240,13 @@ css_error compose_page_break_before(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_page_break_before(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_page_break_inside(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3756,6 +4299,13 @@ css_error compose_page_break_inside(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_page_break_inside(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_pause_after(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3790,6 +4340,11 @@ css_error compose_pause_after(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_pause_after(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_pause_before(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3824,6 +4379,11 @@ css_error compose_pause_before(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_pause_before(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_pitch_range(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3858,6 +4418,11 @@ css_error compose_pitch_range(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_pitch_range(void *bytecode)
+{
+ return generic_destroy_number(bytecode);
+}
+
css_error cascade_pitch(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3922,6 +4487,11 @@ css_error compose_pitch(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_pitch(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_play_during(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -3980,6 +4550,11 @@ css_error compose_play_during(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_play_during(void *bytecode)
+{
+ return generic_destroy_uri(bytecode);
+}
+
css_error cascade_position(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -4036,6 +4611,13 @@ css_error compose_position(const css_computed_style *parent,
return set_position(result, type);
}
+uint32_t destroy_position(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_quotes(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -4197,6 +4779,27 @@ css_error compose_quotes(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_quotes(void *bytecode)
+{
+ uint32_t consumed = sizeof(uint32_t);
+ uint32_t value = getValue(*((uint32_t*)bytecode));
+ bytecode = ((uint8_t*)bytecode) + sizeof(uint32_t);
+
+ while (value == QUOTES_STRING) {
+ lwc_string **str = ((lwc_string **)bytecode);
+ consumed += sizeof(lwc_string*) * 2;
+ bytecode = ((uint8_t*)bytecode) + (sizeof(lwc_string*) * 2);
+ lwc_string_unref(str[0]);
+ lwc_string_unref(str[1]);
+
+ consumed += sizeof(uint32_t);
+ value = *((uint32_t*)bytecode);
+ bytecode = ((uint8_t*)bytecode) + sizeof(uint32_t);
+ }
+
+ return consumed;
+}
+
css_error cascade_richness(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -4231,6 +4834,11 @@ css_error compose_richness(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_richness(void *bytecode)
+{
+ return generic_destroy_number(bytecode);
+}
+
css_error cascade_right(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -4264,6 +4872,11 @@ css_error compose_right(const css_computed_style *parent,
return set_right(result, type, length, unit);
}
+uint32_t destroy_right(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_speak_header(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -4316,6 +4929,13 @@ css_error compose_speak_header(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_speak_header(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_speak_numeral(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -4368,6 +4988,13 @@ css_error compose_speak_numeral(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_speak_numeral(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_speak_punctuation(
uint32_t opv, css_style *style, css_select_state *state)
{
@@ -4420,6 +5047,13 @@ css_error compose_speak_punctuation(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_speak_punctuation(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_speak(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -4473,6 +5107,13 @@ css_error compose_speak(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_speak(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_speech_rate(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -4534,6 +5175,11 @@ css_error compose_speech_rate(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_speech_rate(void *bytecode)
+{
+ return generic_destroy_number(bytecode);
+}
+
css_error cascade_stress(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -4568,6 +5214,11 @@ css_error compose_stress(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_stress(void *bytecode)
+{
+ return generic_destroy_number(bytecode);
+}
+
css_error cascade_table_layout(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -4618,6 +5269,13 @@ css_error compose_table_layout(const css_computed_style *parent,
return set_table_layout(result, type);
}
+uint32_t destroy_table_layout(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_text_align(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -4694,6 +5352,13 @@ css_error compose_text_align(const css_computed_style *parent,
return set_text_align(result, type);
}
+uint32_t destroy_text_align(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_text_decoration(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -4750,6 +5415,13 @@ css_error compose_text_decoration(const css_computed_style *parent,
return set_text_decoration(result, type);
}
+uint32_t destroy_text_decoration(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_text_indent(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -4784,6 +5456,11 @@ css_error compose_text_indent(const css_computed_style *parent,
return set_text_indent(result, type, length, unit);
}
+uint32_t destroy_text_indent(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_text_transform(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -4840,6 +5517,13 @@ css_error compose_text_transform(const css_computed_style *parent,
return set_text_transform(result, type);
}
+uint32_t destroy_text_transform(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_top(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -4873,6 +5557,11 @@ css_error compose_top(const css_computed_style *parent,
return set_top(result, type, length, unit);
}
+uint32_t destroy_top(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_unicode_bidi(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -4926,6 +5615,13 @@ css_error compose_unicode_bidi(const css_computed_style *parent,
return set_unicode_bidi(result, type);
}
+uint32_t destroy_unicode_bidi(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_vertical_align(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -5008,6 +5704,11 @@ css_error compose_vertical_align(const css_computed_style *parent,
return set_vertical_align(result, type, length, unit);
}
+uint32_t destroy_vertical_align(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_visibility(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -5061,6 +5762,13 @@ css_error compose_visibility(const css_computed_style *parent,
return set_visibility(result, type);
}
+uint32_t destroy_visibility(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_voice_family(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -5181,6 +5889,28 @@ css_error compose_voice_family(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_voice_family(void *bytecode)
+{
+ uint32_t consumed = sizeof(uint32_t);
+ uint32_t value = getValue(*((uint32_t*)bytecode));
+ bytecode = ((uint8_t*)bytecode) + sizeof(uint32_t);
+
+ while (value != VOICE_FAMILY_END) {
+ if (value == VOICE_FAMILY_STRING || value == VOICE_FAMILY_IDENT_LIST) {
+ lwc_string *str = *((lwc_string **)bytecode);
+ consumed += sizeof(lwc_string*);
+ bytecode = ((uint8_t*)bytecode) + sizeof(lwc_string*);
+ lwc_string_unref(str);
+ }
+
+ consumed += sizeof(uint32_t);
+ value = *((uint32_t*)bytecode);
+ bytecode = ((uint8_t*)bytecode) + sizeof(uint32_t);
+ }
+
+ return consumed;
+}
+
css_error cascade_volume(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -5252,6 +5982,18 @@ css_error compose_volume(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_volume(void *bytecode)
+{
+ uint32_t value = getValue(*((uint32_t*)bytecode));
+ uint32_t additional = 0;
+ if (value == VOLUME_NUMBER)
+ additional = sizeof(css_fixed);
+ else if (value == VOLUME_DIMENSION)
+ additional = sizeof(css_fixed) + sizeof(uint32_t);
+
+ return sizeof(uint32_t) + additional;
+}
+
css_error cascade_white_space(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -5311,6 +6053,13 @@ css_error compose_white_space(const css_computed_style *parent,
return set_white_space(result, type);
}
+uint32_t destroy_white_space(void *bytecode)
+{
+ UNUSED(bytecode);
+
+ return sizeof(uint32_t);
+}
+
css_error cascade_widows(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -5345,6 +6094,11 @@ css_error compose_widows(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_widows(void *bytecode)
+{
+ return generic_destroy_number(bytecode);
+}
+
css_error cascade_width(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -5378,6 +6132,11 @@ css_error compose_width(const css_computed_style *parent,
return set_width(result, type, length, unit);
}
+uint32_t destroy_width(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_word_spacing(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -5419,6 +6178,11 @@ css_error compose_word_spacing(const css_computed_style *parent,
return CSS_OK;
}
+uint32_t destroy_word_spacing(void *bytecode)
+{
+ return generic_destroy_length(bytecode);
+}
+
css_error cascade_z_index(uint32_t opv, css_style *style,
css_select_state *state)
{
@@ -5472,8 +6236,13 @@ css_error compose_z_index(const css_computed_style *parent,
return set_z_index(result, type, index);
}
+uint32_t destroy_z_index(void *bytecode)
+{
+ return generic_destroy_number(bytecode);
+}
+
/******************************************************************************
- * Utilities below here *
+ * Utilities below here *
******************************************************************************/
css_error cascade_bg_border_color(uint32_t opv, css_style *style,
css_select_state *state,
diff --git a/src/select/properties.h b/src/select/properties.h
index 9c98e10..0d9cd72 100644
--- a/src/select/properties.h
+++ b/src/select/properties.h
@@ -14,798 +14,113 @@
#include "stylesheet.h"
#include "select/select.h"
-css_error cascade_azimuth(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_azimuth_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_azimuth(css_select_state *state);
-css_error compose_azimuth(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_background_attachment(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_background_attachment_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_background_attachment(css_select_state *state);
-css_error compose_background_attachment(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_background_color(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_background_color_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_background_color(css_select_state *state);
-css_error compose_background_color(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_background_image(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_background_image_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_background_image(css_select_state *state);
-css_error compose_background_image(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_background_position(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_background_position_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_background_position(css_select_state *state);
-css_error compose_background_position(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_background_repeat(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_background_repeat_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_background_repeat(css_select_state *state);
-css_error compose_background_repeat(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_border_collapse(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_border_collapse_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_border_collapse(css_select_state *state);
-css_error compose_border_collapse(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_border_spacing(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_border_spacing_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_border_spacing(css_select_state *state);
-css_error compose_border_spacing(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_border_top_color(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_border_top_color_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_border_top_color(css_select_state *state);
-css_error compose_border_top_color(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_border_right_color(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_border_right_color_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_border_right_color(css_select_state *state);
-css_error compose_border_right_color(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_border_bottom_color(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_border_bottom_color_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_border_bottom_color(css_select_state *state);
-css_error compose_border_bottom_color(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_border_left_color(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_border_left_color_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_border_left_color(css_select_state *state);
-css_error compose_border_left_color(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_border_top_style(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_border_top_style_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_border_top_style(css_select_state *state);
-css_error compose_border_top_style(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_border_right_style(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_border_right_style_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_border_right_style(css_select_state *state);
-css_error compose_border_right_style(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_border_bottom_style(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_border_bottom_style_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_border_bottom_style(css_select_state *state);
-css_error compose_border_bottom_style(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_border_left_style(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_border_left_style_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_border_left_style(css_select_state *state);
-css_error compose_border_left_style(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_border_top_width(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_border_top_width_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_border_top_width(css_select_state *state);
-css_error compose_border_top_width(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_border_right_width(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_border_right_width_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_border_right_width(css_select_state *state);
-css_error compose_border_right_width(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_border_bottom_width(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_border_bottom_width_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_border_bottom_width(css_select_state *state);
-css_error compose_border_bottom_width(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_border_left_width(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_border_left_width_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_border_left_width(css_select_state *state);
-css_error compose_border_left_width(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_bottom(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_bottom_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_bottom(css_select_state *state);
-css_error compose_bottom(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_caption_side(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_caption_side_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_caption_side(css_select_state *state);
-css_error compose_caption_side(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_clear(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_clear_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_clear(css_select_state *state);
-css_error compose_clear(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_clip(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_clip_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_clip(css_select_state *state);
-css_error compose_clip(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_color(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_color_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_color(css_select_state *state);
-css_error compose_color(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_content(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_content_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_content(css_select_state *state);
-css_error compose_content(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_counter_increment(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_counter_increment_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_counter_increment(css_select_state *state);
-css_error compose_counter_increment(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_counter_reset(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_counter_reset_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_counter_reset(css_select_state *state);
-css_error compose_counter_reset(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_cue_after(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_cue_after_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_cue_after(css_select_state *state);
-css_error compose_cue_after(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_cue_before(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_cue_before_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_cue_before(css_select_state *state);
-css_error compose_cue_before(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_cursor(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_cursor_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_cursor(css_select_state *state);
-css_error compose_cursor(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_direction(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_direction_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_direction(css_select_state *state);
-css_error compose_direction(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_display(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_display_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_display(css_select_state *state);
-css_error compose_display(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_elevation(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_elevation_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_elevation(css_select_state *state);
-css_error compose_elevation(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_empty_cells(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_empty_cells_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_empty_cells(css_select_state *state);
-css_error compose_empty_cells(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_float(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_float_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_float(css_select_state *state);
-css_error compose_float(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_font_family(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_font_family_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_font_family(css_select_state *state);
-css_error compose_font_family(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_font_size(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_font_size_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_font_size(css_select_state *state);
-css_error compose_font_size(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_font_style(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_font_style_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_font_style(css_select_state *state);
-css_error compose_font_style(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_font_variant(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_font_variant_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_font_variant(css_select_state *state);
-css_error compose_font_variant(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_font_weight(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_font_weight_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_font_weight(css_select_state *state);
-css_error compose_font_weight(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_height(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_height_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_height(css_select_state *state);
-css_error compose_height(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_left(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_left_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_left(css_select_state *state);
-css_error compose_left(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_letter_spacing(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_letter_spacing_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_letter_spacing(css_select_state *state);
-css_error compose_letter_spacing(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_line_height(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_line_height_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_line_height(css_select_state *state);
-css_error compose_line_height(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_list_style_image(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_list_style_image_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_list_style_image(css_select_state *state);
-css_error compose_list_style_image(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_list_style_position(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_list_style_position_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_list_style_position(css_select_state *state);
-css_error compose_list_style_position(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_list_style_type(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_list_style_type_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_list_style_type(css_select_state *state);
-css_error compose_list_style_type(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_margin_top(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_margin_top_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_margin_top(css_select_state *state);
-css_error compose_margin_top(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_margin_right(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_margin_right_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_margin_right(css_select_state *state);
-css_error compose_margin_right(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_margin_bottom(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_margin_bottom_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_margin_bottom(css_select_state *state);
-css_error compose_margin_bottom(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_margin_left(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_margin_left_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_margin_left(css_select_state *state);
-css_error compose_margin_left(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_max_height(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_max_height_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_max_height(css_select_state *state);
-css_error compose_max_height(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_max_width(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_max_width_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_max_width(css_select_state *state);
-css_error compose_max_width(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_min_height(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_min_height_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_min_height(css_select_state *state);
-css_error compose_min_height(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_min_width(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_min_width_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_min_width(css_select_state *state);
-css_error compose_min_width(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_orphans(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_orphans_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_orphans(css_select_state *state);
-css_error compose_orphans(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_outline_color(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_outline_color_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_outline_color(css_select_state *state);
-css_error compose_outline_color(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_outline_style(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_outline_style_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_outline_style(css_select_state *state);
-css_error compose_outline_style(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_outline_width(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_outline_width_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_outline_width(css_select_state *state);
-css_error compose_outline_width(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_overflow(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_overflow_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_overflow(css_select_state *state);
-css_error compose_overflow(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_padding_top(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_padding_top_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_padding_top(css_select_state *state);
-css_error compose_padding_top(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_padding_right(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_padding_right_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_padding_right(css_select_state *state);
-css_error compose_padding_right(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_padding_bottom(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_padding_bottom_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_padding_bottom(css_select_state *state);
-css_error compose_padding_bottom(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_padding_left(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_padding_left_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_padding_left(css_select_state *state);
-css_error compose_padding_left(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_page_break_after(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_page_break_after_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_page_break_after(css_select_state *state);
-css_error compose_page_break_after(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_page_break_before(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_page_break_before_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_page_break_before(css_select_state *state);
-css_error compose_page_break_before(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_page_break_inside(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_page_break_inside_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_page_break_inside(css_select_state *state);
-css_error compose_page_break_inside(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_pause_after(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_pause_after_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_pause_after(css_select_state *state);
-css_error compose_pause_after(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_pause_before(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_pause_before_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_pause_before(css_select_state *state);
-css_error compose_pause_before(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_pitch_range(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_pitch_range_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_pitch_range(css_select_state *state);
-css_error compose_pitch_range(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_pitch(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_pitch_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_pitch(css_select_state *state);
-css_error compose_pitch(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_play_during(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_play_during_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_play_during(css_select_state *state);
-css_error compose_play_during(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_position(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_position_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_position(css_select_state *state);
-css_error compose_position(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_quotes(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_quotes_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_quotes(css_select_state *state);
-css_error compose_quotes(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_richness(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_richness_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_richness(css_select_state *state);
-css_error compose_richness(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_right(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_right_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_right(css_select_state *state);
-css_error compose_right(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_speak_header(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_speak_header_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_speak_header(css_select_state *state);
-css_error compose_speak_header(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_speak_numeral(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_speak_numeral_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_speak_numeral(css_select_state *state);
-css_error compose_speak_numeral(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_speak_punctuation(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_speak_punctuation_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_speak_punctuation(css_select_state *state);
-css_error compose_speak_punctuation(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_speak(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_speak_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_speak(css_select_state *state);
-css_error compose_speak(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_speech_rate(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_speech_rate_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_speech_rate(css_select_state *state);
-css_error compose_speech_rate(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_stress(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_stress_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_stress(css_select_state *state);
-css_error compose_stress(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_table_layout(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_table_layout_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_table_layout(css_select_state *state);
-css_error compose_table_layout(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_text_align(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_text_align_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_text_align(css_select_state *state);
-css_error compose_text_align(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_text_decoration(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_text_decoration_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_text_decoration(css_select_state *state);
-css_error compose_text_decoration(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_text_indent(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_text_indent_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_text_indent(css_select_state *state);
-css_error compose_text_indent(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_text_transform(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_text_transform_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_text_transform(css_select_state *state);
-css_error compose_text_transform(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_top(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_top_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_top(css_select_state *state);
-css_error compose_top(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_unicode_bidi(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_unicode_bidi_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_unicode_bidi(css_select_state *state);
-css_error compose_unicode_bidi(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_vertical_align(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_vertical_align_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_vertical_align(css_select_state *state);
-css_error compose_vertical_align(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_visibility(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_visibility_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_visibility(css_select_state *state);
-css_error compose_visibility(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_voice_family(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_voice_family_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_voice_family(css_select_state *state);
-css_error compose_voice_family(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_volume(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_volume_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_volume(css_select_state *state);
-css_error compose_volume(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_white_space(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_white_space_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_white_space(css_select_state *state);
-css_error compose_white_space(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_widows(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_widows_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_widows(css_select_state *state);
-css_error compose_widows(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_width(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_width_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_width(css_select_state *state);
-css_error compose_width(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_word_spacing(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_word_spacing_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_word_spacing(css_select_state *state);
-css_error compose_word_spacing(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
-css_error cascade_z_index(uint32_t opv, css_style *style,
- css_select_state *state);
-css_error set_z_index_from_hint(const css_hint *hint,
- css_computed_style *style);
-css_error initial_z_index(css_select_state *state);
-css_error compose_z_index(const css_computed_style *parent,
- const css_computed_style *child,
- css_computed_style *result);
+#define PROPERTY_FUNCS(pname) \
+ css_error cascade_##pname (uint32_t opv, css_style *style, css_select_state *state); \
+ css_error set_##pname##_from_hint(const css_hint *hint, css_computed_style *style); \
+ css_error initial_##pname (css_select_state *state); \
+ css_error compose_##pname (const css_computed_style *parent, const css_computed_style *child, css_computed_style *result); \
+ uint32_t destroy_##pname (void *bytecode)
-#endif
+PROPERTY_FUNCS(azimuth);
+PROPERTY_FUNCS(background_attachment);
+PROPERTY_FUNCS(background_color);
+PROPERTY_FUNCS(background_image);
+PROPERTY_FUNCS(background_position);
+PROPERTY_FUNCS(background_repeat);
+PROPERTY_FUNCS(border_collapse);
+PROPERTY_FUNCS(border_spacing);
+PROPERTY_FUNCS(border_top_color);
+PROPERTY_FUNCS(border_right_color);
+PROPERTY_FUNCS(border_bottom_color);
+PROPERTY_FUNCS(border_left_color);
+PROPERTY_FUNCS(border_top_style);
+PROPERTY_FUNCS(border_right_style);
+PROPERTY_FUNCS(border_bottom_style);
+PROPERTY_FUNCS(border_left_style);
+PROPERTY_FUNCS(border_top_width);
+PROPERTY_FUNCS(border_right_width);
+PROPERTY_FUNCS(border_bottom_width);
+PROPERTY_FUNCS(border_left_width);
+PROPERTY_FUNCS(bottom);
+PROPERTY_FUNCS(caption_side);
+PROPERTY_FUNCS(clear);
+PROPERTY_FUNCS(clip);
+PROPERTY_FUNCS(color);
+PROPERTY_FUNCS(content);
+PROPERTY_FUNCS(counter_increment);
+PROPERTY_FUNCS(counter_reset);
+PROPERTY_FUNCS(cue_after);
+PROPERTY_FUNCS(cue_before);
+PROPERTY_FUNCS(cursor);
+PROPERTY_FUNCS(direction);
+PROPERTY_FUNCS(display);
+PROPERTY_FUNCS(elevation);
+PROPERTY_FUNCS(empty_cells);
+PROPERTY_FUNCS(float);
+PROPERTY_FUNCS(font_family);
+PROPERTY_FUNCS(font_size);
+PROPERTY_FUNCS(font_style);
+PROPERTY_FUNCS(font_variant);
+PROPERTY_FUNCS(font_weight);
+PROPERTY_FUNCS(height);
+PROPERTY_FUNCS(left);
+PROPERTY_FUNCS(letter_spacing);
+PROPERTY_FUNCS(line_height);
+PROPERTY_FUNCS(list_style_image);
+PROPERTY_FUNCS(list_style_position);
+PROPERTY_FUNCS(list_style_type);
+PROPERTY_FUNCS(margin_top);
+PROPERTY_FUNCS(margin_right);
+PROPERTY_FUNCS(margin_bottom);
+PROPERTY_FUNCS(margin_left);
+PROPERTY_FUNCS(max_height);
+PROPERTY_FUNCS(max_width);
+PROPERTY_FUNCS(min_height);
+PROPERTY_FUNCS(min_width);
+PROPERTY_FUNCS(orphans);
+PROPERTY_FUNCS(outline_color);
+PROPERTY_FUNCS(outline_style);
+PROPERTY_FUNCS(outline_width);
+PROPERTY_FUNCS(overflow);
+PROPERTY_FUNCS(padding_top);
+PROPERTY_FUNCS(padding_right);
+PROPERTY_FUNCS(padding_bottom);
+PROPERTY_FUNCS(padding_left);
+PROPERTY_FUNCS(page_break_after);
+PROPERTY_FUNCS(page_break_before);
+PROPERTY_FUNCS(page_break_inside);
+PROPERTY_FUNCS(pause_after);
+PROPERTY_FUNCS(pause_before);
+PROPERTY_FUNCS(pitch_range);
+PROPERTY_FUNCS(pitch);
+PROPERTY_FUNCS(play_during);
+PROPERTY_FUNCS(position);
+PROPERTY_FUNCS(quotes);
+PROPERTY_FUNCS(richness);
+PROPERTY_FUNCS(right);
+PROPERTY_FUNCS(speak_header);
+PROPERTY_FUNCS(speak_numeral);
+PROPERTY_FUNCS(speak_punctuation);
+PROPERTY_FUNCS(speak);
+PROPERTY_FUNCS(speech_rate);
+PROPERTY_FUNCS(stress);
+PROPERTY_FUNCS(table_layout);
+PROPERTY_FUNCS(text_align);
+PROPERTY_FUNCS(text_decoration);
+PROPERTY_FUNCS(text_indent);
+PROPERTY_FUNCS(text_transform);
+PROPERTY_FUNCS(top);
+PROPERTY_FUNCS(unicode_bidi);
+PROPERTY_FUNCS(vertical_align);
+PROPERTY_FUNCS(visibility);
+PROPERTY_FUNCS(voice_family);
+PROPERTY_FUNCS(volume);
+PROPERTY_FUNCS(white_space);
+PROPERTY_FUNCS(widows);
+PROPERTY_FUNCS(width);
+PROPERTY_FUNCS(word_spacing);
+PROPERTY_FUNCS(z_index);
+
+#undef PROPERTY_FUNCS
+#endif