libcss
Loading...
Searching...
No Matches
autogenerated_computed.h
Go to the documentation of this file.
1/*
2 * This file is part of LibCSS
3 * Licensed under the MIT License,
4 * http://www.opensource.org/licenses/mit-license.php
5 * Copyright 2017 The NetSurf Project
6 */
7
8#ifndef CSS_COMPUTED_COMPUTED_H_
9#define CSS_COMPUTED_COMPUTED_H_
10
11#include "select/calc.h"
12
13typedef union {
15 lwc_string *calc;
17
18
20/*
21 * Property Size (bits) Size (bytes)
22 * --- --- ---
23 * align_content 3
24 * align_items 3
25 * align_self 3
26 * background_attachment 2
27 * background_color 2 4
28 * background_image 1 sizeof(ptr)
29 * background_position 1 + 10 8
30 * background_repeat 3
31 * border_bottom_color 2 4
32 * border_bottom_style 4
33 * border_bottom_width 3 + 5 4
34 * border_collapse 2
35 * border_left_color 2 4
36 * border_left_style 4
37 * border_left_width 3 + 5 4
38 * border_right_color 2 4
39 * border_right_style 4
40 * border_right_width 3 + 5 4
41 * border_spacing 1 + 10 8
42 * border_top_color 2 4
43 * border_top_style 4
44 * border_top_width 3 + 5 4
45 * bottom 2 + 5 4
46 * box_sizing 2
47 * break_after 4
48 * break_before 4
49 * break_inside 4
50 * caption_side 2
51 * clear 3
52 * clip 6 + 20 16
53 * color 1 4
54 * column_count 2 4
55 * column_fill 2
56 * column_gap 2 + 5 4
57 * column_rule_color 2 4
58 * column_rule_style 4
59 * column_rule_width 3 + 5 4
60 * column_span 2
61 * column_width 2 + 5 4
62 * direction 2
63 * display 5
64 * empty_cells 2
65 * fill_opacity 1 4
66 * flex_basis 2 + 5 4
67 * flex_direction 3
68 * flex_grow 1 4
69 * flex_shrink 1 4
70 * flex_wrap 2
71 * float 2
72 * font_size 4 + 5 4
73 * font_style 2
74 * font_variant 2
75 * font_weight 4
76 * height 2 + 5 4
77 * justify_content 3
78 * left 2 + 5 4
79 * letter_spacing 2 + 5 4
80 * line_height 2 + 5 4
81 * list_style_image 1 sizeof(ptr)
82 * list_style_position 2
83 * list_style_type 6
84 * margin_bottom 2 + 5 4
85 * margin_left 2 + 5 4
86 * margin_right 2 + 5 4
87 * margin_top 2 + 5 4
88 * max_height 2 + 5 4
89 * max_width 2 + 5 4
90 * min_height 2 + 5 4
91 * min_width 2 + 5 4
92 * opacity 1 4
93 * order 1 4
94 * orphans 1 4
95 * outline_color 2 4
96 * outline_style 4
97 * outline_width 3 + 5 4
98 * overflow_x 3
99 * overflow_y 3
100 * padding_bottom 1 + 5 4
101 * padding_left 1 + 5 4
102 * padding_right 1 + 5 4
103 * padding_top 1 + 5 4
104 * page_break_after 3
105 * page_break_before 3
106 * page_break_inside 2
107 * position 3
108 * right 2 + 5 4
109 * stroke_opacity 1 4
110 * table_layout 2
111 * text_align 4
112 * text_decoration 5
113 * text_indent 1 + 5 4
114 * text_transform 3
115 * top 2 + 5 4
116 * unicode_bidi 2
117 * vertical_align 4 + 5 4
118 * visibility 2
119 * white_space 3
120 * widows 1 4
121 * width 2 + 5 4
122 * word_spacing 2 + 5 4
123 * writing_mode 2
124 * z_index 2 4
125 *
126 * Encode content as an array of content items, terminated with a blank entry.
127 *
128 * content 2 sizeof(ptr)
129 *
130 * Encode counter_increment as an array of name, value pairs, terminated with a
131 * blank entry.
132 *
133 * counter_increment 1 sizeof(ptr)
134 *
135 * Encode counter_reset as an array of name, value pairs, terminated with a
136 * blank entry.
137 *
138 * counter_reset 1 sizeof(ptr)
139 *
140 * Encode cursor uri(s) as an array of string objects, terminated with a blank
141 * entry
142 *
143 * cursor 5 sizeof(ptr)
144 *
145 * Encode font family as an array of string objects, terminated with a blank
146 * entry.
147 *
148 * font_family 3 sizeof(ptr)
149 *
150 * Encode quotes as an array of string objects, terminated with a blank entry.
151 *
152 * quotes 1 sizeof(ptr)
153 *
154 * --- --- ---
155 * 464 bits 236 + 8sizeof(ptr) bytes
156 * ===================
157 * 294 + 8sizeof(ptr) bytes
158 *
159 * Bit allocations:
160 *
161 * 0 bbbbbbbboooooooorrrrrrrrdddddddd
162 * border_top_width; border_right_width; border_left_width; border_bottom_width
163 *
164 * 1 fffffffffooooooooccccccccwwwwwww
165 * font_size; outline_width; column_rule_width; word_spacing
166 *
167 * 2 cccccccccccccccccccccccccctttttt
168 * clip; text_indent
169 *
170 * 3 cccccccooooooobbbbbbbppppppttttt
171 * column_width; column_gap; bottom; padding_top; text_decoration
172 *
173 * 4 wwwwwwwtttttttrrrrrrrmmmmmmmeeee
174 * width; top; right; min_width; text_align
175 *
176 * 5 mmmmmmmaaaaaaaxxxxxxxrrrrrrroooo
177 * min_height; max_width; max_height; margin_top; outline_style
178 *
179 * 6 mmmmmmmaaaaaaarrrrrrrlllllllffff
180 * margin_right; margin_left; margin_bottom; line_height; font_weight
181 *
182 * 7 llllllleeeeeeehhhhhhhfffffffcccc
183 * letter_spacing; left; height; flex_basis; column_rule_style
184 *
185 * 8 ppppppaaaaaaddddddlllllliiiiiwww
186 * padding_right; padding_left; padding_bottom; list_style_type; display;
187 * white_space
188 *
189 * 9 cccccbbbbrrrreeeeooooddddllllttt
190 * cursor; break_inside; break_before; break_after; border_top_style;
191 * border_right_style; border_left_style; text_transform
192 *
193 * 10 bbbaaallliiizzwwvvuuttppoossffnn
194 * background_repeat; align_self; align_items; align_content; z_index;
195 * writing_mode; visibility; unicode_bidi; table_layout; page_break_inside;
196 * outline_color; list_style_position; font_variant; font_style
197 *
198 * 11 fflleeddccoouummnnaabbrriittppBB
199 * float; flex_wrap; empty_cells; direction; content; column_span;
200 * column_rule_color; column_fill; column_count; caption_side; box_sizing;
201 * border_top_color; border_right_color; border_left_color; border_collapse;
202 * border_bottom_color
203 *
204 * 12 bbbbbbbbbbbaaaaaaaaaaavvvvvvvvvw
205 * border_spacing; background_position; vertical_align; widows
206 *
207 * 13 bbbbpppaaagggooovvvjjjffflllcccs
208 * border_bottom_style; position; page_break_before; page_break_after;
209 * overflow_y; overflow_x; justify_content; font_family; flex_direction; clear;
210 * stroke_opacity
211 *
212 * 14 bbaaqorplfeicuCk................
213 * background_color; background_attachment; quotes; orphans; order; opacity;
214 * list_style_image; flex_shrink; flex_grow; fill_opacity; counter_reset;
215 * counter_increment; color; background_image
216 */
217 uint32_t bits[15];
218
220 lwc_string *background_image;
253 lwc_string *list_style_image;
263 int32_t order;
264 int32_t orphans;
276 int32_t widows;
279 int32_t z_index;
280};
281
297
298#endif
int32_t css_fixed
Definition fpmath.h:23
Definition calc.h:22
Definition computed.h:62
Definition computed.h:27
Definition autogenerated_computed.h:19
css_fixed border_spacing_a
Definition autogenerated_computed.h:229
css_fixed clip_d
Definition autogenerated_computed.h:237
css_fixed border_top_width
Definition autogenerated_computed.h:232
css_fixed top
Definition autogenerated_computed.h:274
css_fixed opacity
Definition autogenerated_computed.h:262
css_fixed min_width
Definition autogenerated_computed.h:261
css_fixed bottom
Definition autogenerated_computed.h:233
css_color border_top_color
Definition autogenerated_computed.h:231
css_fixed border_left_width
Definition autogenerated_computed.h:226
css_fixed padding_top
Definition autogenerated_computed.h:270
css_fixed vertical_align
Definition autogenerated_computed.h:275
css_color column_rule_color
Definition autogenerated_computed.h:241
css_color outline_color
Definition autogenerated_computed.h:265
css_fixed background_position_a
Definition autogenerated_computed.h:221
css_fixed height
Definition autogenerated_computed.h:249
css_fixed_or_calc width
Definition autogenerated_computed.h:277
css_fixed margin_bottom
Definition autogenerated_computed.h:254
css_fixed max_width
Definition autogenerated_computed.h:259
css_fixed text_indent
Definition autogenerated_computed.h:273
css_fixed right
Definition autogenerated_computed.h:271
css_fixed flex_shrink
Definition autogenerated_computed.h:247
css_fixed border_right_width
Definition autogenerated_computed.h:228
int32_t orphans
Definition autogenerated_computed.h:264
css_fixed outline_width
Definition autogenerated_computed.h:266
css_fixed letter_spacing
Definition autogenerated_computed.h:251
css_fixed min_height
Definition autogenerated_computed.h:260
css_fixed background_position_b
Definition autogenerated_computed.h:222
lwc_string * background_image
Definition autogenerated_computed.h:220
css_fixed margin_left
Definition autogenerated_computed.h:255
css_fixed margin_top
Definition autogenerated_computed.h:257
int32_t z_index
Definition autogenerated_computed.h:279
css_fixed clip_a
Definition autogenerated_computed.h:234
lwc_string * list_style_image
Definition autogenerated_computed.h:253
css_fixed stroke_opacity
Definition autogenerated_computed.h:272
css_fixed margin_right
Definition autogenerated_computed.h:256
css_fixed left
Definition autogenerated_computed.h:250
css_fixed padding_right
Definition autogenerated_computed.h:269
css_fixed padding_bottom
Definition autogenerated_computed.h:267
css_fixed border_spacing_b
Definition autogenerated_computed.h:230
int32_t order
Definition autogenerated_computed.h:263
css_fixed word_spacing
Definition autogenerated_computed.h:278
css_color border_bottom_color
Definition autogenerated_computed.h:223
css_fixed font_size
Definition autogenerated_computed.h:248
css_fixed fill_opacity
Definition autogenerated_computed.h:244
css_fixed padding_left
Definition autogenerated_computed.h:268
css_fixed border_bottom_width
Definition autogenerated_computed.h:224
css_color color
Definition autogenerated_computed.h:238
css_fixed column_width
Definition autogenerated_computed.h:243
css_fixed clip_c
Definition autogenerated_computed.h:236
css_fixed column_rule_width
Definition autogenerated_computed.h:242
css_fixed column_gap
Definition autogenerated_computed.h:240
int32_t widows
Definition autogenerated_computed.h:276
css_fixed flex_basis
Definition autogenerated_computed.h:245
css_fixed flex_grow
Definition autogenerated_computed.h:246
css_color background_color
Definition autogenerated_computed.h:219
uint32_t bits[15]
Definition autogenerated_computed.h:217
css_color border_right_color
Definition autogenerated_computed.h:227
int32_t column_count
Definition autogenerated_computed.h:239
css_fixed max_height
Definition autogenerated_computed.h:258
css_color border_left_color
Definition autogenerated_computed.h:225
css_fixed line_height
Definition autogenerated_computed.h:252
css_fixed clip_b
Definition autogenerated_computed.h:235
Definition autogenerated_computed.h:282
css_computed_counter * counter_increment
Definition autogenerated_computed.h:286
uint32_t count
Definition autogenerated_computed.h:293
lwc_string ** cursor
Definition autogenerated_computed.h:288
lwc_string ** quotes
Definition autogenerated_computed.h:290
uint32_t bin
Definition autogenerated_computed.h:294
lwc_string ** font_family
Definition autogenerated_computed.h:289
css_computed_counter * counter_reset
Definition autogenerated_computed.h:287
struct css_computed_style * next
Definition autogenerated_computed.h:292
struct css_computed_style_i i
Definition autogenerated_computed.h:283
css_computed_content_item * content
Definition autogenerated_computed.h:285
css_calculator * calc
Definition autogenerated_computed.h:295
uint32_t css_color
Definition types.h:79
Definition autogenerated_computed.h:13
lwc_string * calc
Definition autogenerated_computed.h:15
css_fixed value
Definition autogenerated_computed.h:14