Debian Codegraph @

gtk/gtkcssshorthandpropertyimpl.c

raw symbols SCIP
1 /*
2 * Copyright © 2011 Red Hat Inc.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 *
17 * Authors: Benjamin Otte <[email protected]>
18 */
19
20 #include "config.h"cxx . . $ `<file>/build/config.h`/
21
22 #include "gtkcssshorthandpropertyprivate.h"cxx . . $ `<file>/gtk/gtkcssshorthandpropertyprivate.h`/
23
24 #include <cairo-gobject.h>
25 #include <math.h>
26
27 #include "gtkcssarrayvalueprivate.h"cxx . . $ `<file>/gtk/gtkcssarrayvalueprivate.h`/
28 #include "gtkcssbgsizevalueprivate.h"cxx . . $ `<file>/gtk/gtkcssbgsizevalueprivate.h`/
29 #include "gtkcssbordervalueprivate.h"cxx . . $ `<file>/gtk/gtkcssbordervalueprivate.h`/
30 #include "gtkcsscolorvalueprivate.h"cxx . . $ `<file>/gtk/gtkcsscolorvalueprivate.h`/
31 #include "gtkcsscornervalueprivate.h"cxx . . $ `<file>/gtk/gtkcsscornervalueprivate.h`/
32 #include "gtkcsseasevalueprivate.h"cxx . . $ `<file>/gtk/gtkcsseasevalueprivate.h`/
33 #include "gtkcssenumvalueprivate.h"cxx . . $ `<file>/gtk/gtkcssenumvalueprivate.h`/
34 #include "gtkcssimageprivate.h"cxx . . $ `<file>/gtk/gtkcssimageprivate.h`/
35 #include "gtkcssimagevalueprivate.h"cxx . . $ `<file>/gtk/gtkcssimagevalueprivate.h`/
36 #include "gtkcssnumbervalueprivate.h"cxx . . $ `<file>/gtk/gtkcssnumbervalueprivate.h`/
37 #include "gtkcsspositionvalueprivate.h"cxx . . $ `<file>/gtk/gtkcsspositionvalueprivate.h`/
38 #include "gtkcssrepeatvalueprivate.h"cxx . . $ `<file>/gtk/gtkcssrepeatvalueprivate.h`/
39 #include "gtkcssstringvalueprivate.h"cxx . . $ `<file>/gtk/gtkcssstringvalueprivate.h`/
40 #include "gtkcssvalueprivate.h"cxx . . $ `<file>/gtk/gtkcssvalueprivate.h`/
41 #include "gtktypebuiltins.h"cxx . . $ `<file>/build/gtk/gtktypebuiltins.h`/
42
43 /*** PARSING ***/
44
45 static gbooleancxx . . $ gboolean#
46 value_is_done_parsingcxx . . $ value_is_done_parsing(1218f77d161081c9). (GtkCssParsercxx . . $ GtkCssParser# *parser)
47 {
48 return gtk_css_parser_has_tokencxx . . $ gtk_css_parser_has_token(72b4dcd93b1a40ac). (parser, GTK_CSS_TOKEN_EOFcxx . . $ GTK_CSS_TOKEN_EOF.) ||
49 gtk_css_parser_has_tokencxx . . $ gtk_css_parser_has_token(72b4dcd93b1a40ac). (parser, GTK_CSS_TOKEN_COMMAcxx . . $ GTK_CSS_TOKEN_COMMA.) ||
50 gtk_css_parser_has_tokencxx . . $ gtk_css_parser_has_token(72b4dcd93b1a40ac). (parser, GTK_CSS_TOKEN_SEMICOLONcxx . . $ GTK_CSS_TOKEN_SEMICOLON.) ||
51 gtk_css_parser_has_tokencxx . . $ gtk_css_parser_has_token(72b4dcd93b1a40ac). (parser, GTK_CSS_TOKEN_CLOSE_CURLYcxx . . $ GTK_CSS_TOKEN_CLOSE_CURLY.);
52 }
53
54 static gbooleancxx . . $ gboolean#
55 parse_four_numberscxx . . $ parse_four_numbers(5ea609033a1c0b1b). (GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *shorthand,
56 GtkCssValuecxx . . $ GtkCssValue# **values,
57 GtkCssParsercxx . . $ GtkCssParser# *parser,
58 GtkCssNumberParseFlagscxx . . $ GtkCssNumberParseFlags# flags)
59 {
60 guintcxx . . $ guint# i;
61
62 for (i = 0; i < 4; i++)
63 {
64 if (!gtk_css_number_value_can_parsecxx . . $ gtk_css_number_value_can_parse(1218f77d161081c9). (parser))
65 break;
66
67 values[i] = gtk_css_number_value_parsecxx . . $ gtk_css_number_value_parse(f3430beb2a3a84d9). (parser, flags);
68 if (values[i] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
69 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
70 }
71
72 if (i == 0)
73 {
74 gtk_css_parser_error_syntaxcxx . . $ gtk_css_parser_error_syntax(41ac99f7292d7f5f). (parser, "Expected a length");
75 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
76 }
77
78 for (; i < 4; i++)
79 {
80 values[i] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (values[(i - 1) >> 1]);
81 }
82
83 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
84 }
85
86 static gbooleancxx . . $ gboolean#
87 parse_margincxx . . $ parse_margin(c84cca61cd26e416). (GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *shorthand,
88 GtkCssValuecxx . . $ GtkCssValue# **values,
89 GtkCssParsercxx . . $ GtkCssParser# *parser)
90 {
91 return parse_four_numberscxx . . $ parse_four_numbers(5ea609033a1c0b1b). (shorthand,
92 values,
93 parser,
94 GTK_CSS_PARSE_LENGTHcxx . . $ GTK_CSS_PARSE_LENGTH.);
95 }
96
97 static gbooleancxx . . $ gboolean#
98 parse_paddingcxx . . $ parse_padding(c84cca61cd26e416). (GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *shorthand,
99 GtkCssValuecxx . . $ GtkCssValue# **values,
100 GtkCssParsercxx . . $ GtkCssParser# *parser)
101 {
102 return parse_four_numberscxx . . $ parse_four_numbers(5ea609033a1c0b1b). (shorthand,
103 values,
104 parser,
105 GTK_CSS_POSITIVE_ONLYcxx . . $ GTK_CSS_POSITIVE_ONLY.
106 | GTK_CSS_PARSE_LENGTHcxx . . $ GTK_CSS_PARSE_LENGTH.);
107 }
108
109 static gbooleancxx . . $ gboolean#
110 parse_border_widthcxx . . $ parse_border_width(c84cca61cd26e416). (GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *shorthand,
111 GtkCssValuecxx . . $ GtkCssValue# **values,
112 GtkCssParsercxx . . $ GtkCssParser# *parser)
113 {
114 return parse_four_numberscxx . . $ parse_four_numbers(5ea609033a1c0b1b). (shorthand,
115 values,
116 parser,
117 GTK_CSS_POSITIVE_ONLYcxx . . $ GTK_CSS_POSITIVE_ONLY.
118 | GTK_CSS_PARSE_LENGTHcxx . . $ GTK_CSS_PARSE_LENGTH.);
119 }
120
121 static gbooleancxx . . $ gboolean#
122 parse_border_radiuscxx . . $ parse_border_radius(c84cca61cd26e416). (GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *shorthand,
123 GtkCssValuecxx . . $ GtkCssValue# **values,
124 GtkCssParsercxx . . $ GtkCssParser# *parser)
125 {
126 GtkCssValuecxx . . $ GtkCssValue# *x[4] = { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, }, *y[4] = { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, };
127 guintcxx . . $ guint# i;
128
129 for (i = 0; i < 4; i++)
130 {
131 if (!gtk_css_number_value_can_parsecxx . . $ gtk_css_number_value_can_parse(1218f77d161081c9). (parser))
132 break;
133 x[i] = gtk_css_number_value_parsecxx . . $ gtk_css_number_value_parse(f3430beb2a3a84d9). (parser,
134 GTK_CSS_POSITIVE_ONLYcxx . . $ GTK_CSS_POSITIVE_ONLY.
135 | GTK_CSS_PARSE_PERCENTcxx . . $ GTK_CSS_PARSE_PERCENT.
136 | GTK_CSS_PARSE_LENGTHcxx . . $ GTK_CSS_PARSE_LENGTH.);
137 if (x[i] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
138 goto fail;
139 }
140
141 if (i == 0)
142 {
143 gtk_css_parser_error_syntaxcxx . . $ gtk_css_parser_error_syntax(41ac99f7292d7f5f). (parser, "Expected a number");
144 goto fail;
145 }
146
147 /* The magic (i - 1) >> 1 below makes it take the correct value
148 * according to spec. Feel free to check the 4 cases
149 */
150 for (; i < 4; i++)
151 x[i] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (x[(i - 1) >> 1]);
152
153 if (gtk_css_parser_try_delimcxx . . $ gtk_css_parser_try_delim(445fe0de899bf106). (parser, '/'))
154 {
155 for (i = 0; i < 4; i++)
156 {
157 if (!gtk_css_number_value_can_parsecxx . . $ gtk_css_number_value_can_parse(1218f77d161081c9). (parser))
158 break;
159 y[i] = gtk_css_number_value_parsecxx . . $ gtk_css_number_value_parse(f3430beb2a3a84d9). (parser,
160 GTK_CSS_POSITIVE_ONLYcxx . . $ GTK_CSS_POSITIVE_ONLY.
161 | GTK_CSS_PARSE_PERCENTcxx . . $ GTK_CSS_PARSE_PERCENT.
162 | GTK_CSS_PARSE_LENGTHcxx . . $ GTK_CSS_PARSE_LENGTH.);
163 if (y[i] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
164 goto fail;
165 }
166
167 if (i == 0)
168 {
169 gtk_css_parser_error_syntaxcxx . . $ gtk_css_parser_error_syntax(41ac99f7292d7f5f). (parser, "Expected a number");
170 goto fail;
171 }
172
173 for (; i < 4; i++)
174 y[i] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (y[(i - 1) >> 1]);
175 }
176 else
177 {
178 for (i = 0; i < 4; i++)
179 y[i] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (x[i]);
180 }
181
182 for (i = 0; i < 4; i++)
183 {
184 values[i] = _gtk_css_corner_value_newcxx . . $ _gtk_css_corner_value_new(dadd23ece33079fb). (x[i], y[i]);
185 }
186
187 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
188
189 fail:
190 for (i = 0; i < 4; i++)
191 {
192 if (x[i])
193 gtk_css_value_unrefcxx . . $ `gtk/gtkcssvalueprivate.h:134:9`! (x[i]);
194 if (y[i])
195 gtk_css_value_unrefcxx . . $ `gtk/gtkcssvalueprivate.h:134:9`! (y[i]);
196 }
197 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
198 }
199
200 static gbooleancxx . . $ gboolean#
201 parse_border_colorcxx . . $ parse_border_color(c84cca61cd26e416). (GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *shorthand,
202 GtkCssValuecxx . . $ GtkCssValue# **values,
203 GtkCssParsercxx . . $ GtkCssParser# *parser)
204 {
205 guintcxx . . $ guint# i;
206
207 for (i = 0; i < 4; i++)
208 {
209 values[i] = gtk_css_color_value_parsecxx . . $ gtk_css_color_value_parse(66d8ac11734e4f87). (parser);
210 if (values[i] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
211 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
212
213 if (value_is_done_parsingcxx . . $ value_is_done_parsing(1218f77d161081c9). (parser))
214 break;
215 }
216
217 for (i++; i < 4; i++)
218 {
219 values[i] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (values[(i - 1) >> 1]);
220 }
221
222 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
223 }
224
225 static gbooleancxx . . $ gboolean#
226 parse_border_stylecxx . . $ parse_border_style(c84cca61cd26e416). (GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *shorthand,
227 GtkCssValuecxx . . $ GtkCssValue# **values,
228 GtkCssParsercxx . . $ GtkCssParser# *parser)
229 {
230 guintcxx . . $ guint# i;
231
232 for (i = 0; i < 4; i++)
233 {
234 values[i] = _gtk_css_border_style_value_try_parsecxx . . $ _gtk_css_border_style_value_try_parse(66d8ac11734e4f87). (parser);
235 if (values[i] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
236 break;
237 }
238
239 if (i == 0)
240 {
241 gtk_css_parser_error_syntaxcxx . . $ gtk_css_parser_error_syntax(41ac99f7292d7f5f). (parser, "Expected a border style");
242 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
243 }
244
245 for (; i < 4; i++)
246 values[i] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (values[(i - 1) >> 1]);
247
248 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
249 }
250
251 static gbooleancxx . . $ gboolean#
252 parse_border_imagecxx . . $ parse_border_image(c84cca61cd26e416). (GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *shorthand,
253 GtkCssValuecxx . . $ GtkCssValue# **values,
254 GtkCssParsercxx . . $ GtkCssParser# *parser)
255 {
256 do
257 {
258 if (values[0] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
259 (gtk_css_parser_has_identcxx . . $ gtk_css_parser_has_ident(b5471d620daa5380). (parser, "none") ||
260 _gtk_css_image_can_parsecxx . . $ _gtk_css_image_can_parse(1218f77d161081c9). (parser)))
261 {
262 GtkCssImagecxx . . $ GtkCssImage# *image;
263
264 if (gtk_css_parser_try_identcxx . . $ gtk_css_parser_try_ident(b5471d620daa5380). (parser, "none"))
265 image = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
266 else
267 {
268 image = _gtk_css_image_new_parsecxx . . $ _gtk_css_image_new_parse(5939efb4cff1a411). (parser);
269 if (image == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
270 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
271 }
272
273 values[0] = _gtk_css_image_value_newcxx . . $ _gtk_css_image_value_new(e42596d9faf47e1a). (image);
274 }
275 else if (values[3] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
276 (values[3] = _gtk_css_border_repeat_value_try_parsecxx . . $ _gtk_css_border_repeat_value_try_parse(66d8ac11734e4f87). (parser)))
277 {
278 /* please move along */
279 }
280 else if (values[1] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
281 {
282 values[1] = _gtk_css_border_value_parsecxx . . $ _gtk_css_border_value_parse(2005e60397ccdd32). (parser,
283 GTK_CSS_PARSE_PERCENTcxx . . $ GTK_CSS_PARSE_PERCENT.
284 | GTK_CSS_PARSE_NUMBERcxx . . $ GTK_CSS_PARSE_NUMBER.
285 | GTK_CSS_POSITIVE_ONLYcxx . . $ GTK_CSS_POSITIVE_ONLY.,
286 FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!,
287 TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
288 if (values[1] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
289 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
290
291 if (gtk_css_parser_try_delimcxx . . $ gtk_css_parser_try_delim(445fe0de899bf106). (parser, '/'))
292 {
293 values[2] = _gtk_css_border_value_parsecxx . . $ _gtk_css_border_value_parse(2005e60397ccdd32). (parser,
294 GTK_CSS_PARSE_PERCENTcxx . . $ GTK_CSS_PARSE_PERCENT.
295 | GTK_CSS_PARSE_LENGTHcxx . . $ GTK_CSS_PARSE_LENGTH.
296 | GTK_CSS_PARSE_NUMBERcxx . . $ GTK_CSS_PARSE_NUMBER.
297 | GTK_CSS_POSITIVE_ONLYcxx . . $ GTK_CSS_POSITIVE_ONLY.,
298 TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!,
299 FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
300 if (values[2] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
301 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
302 }
303 }
304 else
305 {
306 /* We parsed everything and there's still stuff left?
307 * Pretend we didn't notice and let the normal code produce
308 * a 'junk at end of value' error
309 */
310 break;
311 }
312 }
313 while (!value_is_done_parsingcxx . . $ value_is_done_parsing(1218f77d161081c9). (parser));
314
315 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
316 }
317
318 static gbooleancxx . . $ gboolean#
319 parse_border_sidecxx . . $ parse_border_side(c84cca61cd26e416). (GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *shorthand,
320 GtkCssValuecxx . . $ GtkCssValue# **values,
321 GtkCssParsercxx . . $ GtkCssParser# *parser)
322 {
323 do
324 {
325 if (values[0] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
326 gtk_css_number_value_can_parsecxx . . $ gtk_css_number_value_can_parse(1218f77d161081c9). (parser))
327 {
328 values[0] = gtk_css_number_value_parsecxx . . $ gtk_css_number_value_parse(f3430beb2a3a84d9). (parser,
329 GTK_CSS_POSITIVE_ONLYcxx . . $ GTK_CSS_POSITIVE_ONLY.
330 | GTK_CSS_PARSE_LENGTHcxx . . $ GTK_CSS_PARSE_LENGTH.);
331 if (values[0] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
332 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
333 }
334 else if (values[1] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
335 (values[1] = _gtk_css_border_style_value_try_parsecxx . . $ _gtk_css_border_style_value_try_parse(66d8ac11734e4f87). (parser)))
336 {
337 /* Nothing to do */
338 }
339 else if (values[2] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
340 {
341 values[2] = gtk_css_color_value_parsecxx . . $ gtk_css_color_value_parse(66d8ac11734e4f87). (parser);
342 if (values[2] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
343 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
344 }
345 else
346 {
347 /* We parsed and there's still stuff left?
348 * Pretend we didn't notice and let the normal code produce
349 * a 'junk at end of value' error
350 */
351 break;
352 }
353 }
354 while (!value_is_done_parsingcxx . . $ value_is_done_parsing(1218f77d161081c9). (parser));
355
356 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
357 }
358
359 static gbooleancxx . . $ gboolean#
360 parse_bordercxx . . $ parse_border(c84cca61cd26e416). (GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *shorthand,
361 GtkCssValuecxx . . $ GtkCssValue# **values,
362 GtkCssParsercxx . . $ GtkCssParser# *parser)
363 {
364 do
365 {
366 if (values[0] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
367 gtk_css_number_value_can_parsecxx . . $ gtk_css_number_value_can_parse(1218f77d161081c9). (parser))
368 {
369 values[0] = gtk_css_number_value_parsecxx . . $ gtk_css_number_value_parse(f3430beb2a3a84d9). (parser,
370 GTK_CSS_POSITIVE_ONLYcxx . . $ GTK_CSS_POSITIVE_ONLY.
371 | GTK_CSS_PARSE_LENGTHcxx . . $ GTK_CSS_PARSE_LENGTH.);
372 if (values[0] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
373 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
374 values[1] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (values[0]);
375 values[2] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (values[0]);
376 values[3] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (values[0]);
377 }
378 else if (values[4] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
379 (values[4] = _gtk_css_border_style_value_try_parsecxx . . $ _gtk_css_border_style_value_try_parse(66d8ac11734e4f87). (parser)))
380 {
381 values[5] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (values[4]);
382 values[6] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (values[4]);
383 values[7] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (values[4]);
384 }
385 else if (values[8] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
386 {
387 values[8] = gtk_css_color_value_parsecxx . . $ gtk_css_color_value_parse(66d8ac11734e4f87). (parser);
388 if (values[8] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
389 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
390
391 values[9] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (values[8]);
392 values[10] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (values[8]);
393 values[11] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (values[8]);
394 }
395 else
396 {
397 /* We parsed everything and there's still stuff left?
398 * Pretend we didn't notice and let the normal code produce
399 * a 'junk at end of value' error
400 */
401 break;
402 }
403 }
404 while (!value_is_done_parsingcxx . . $ value_is_done_parsing(1218f77d161081c9). (parser));
405
406 /* Note that border-image values are not set: according to the spec
407 * they just need to be reset when using the border shorthand
408 */
409
410 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
411 }
412
413 static GtkCssValuecxx . . $ GtkCssValue# *
414 _gtk_css_font_variant_value_try_parsecxx . . $ _gtk_css_font_variant_value_try_parse(66d8ac11734e4f87). (GtkCssParsercxx . . $ GtkCssParser# *parser)
415 {
416 if (gtk_css_parser_try_identcxx . . $ gtk_css_parser_try_ident(b5471d620daa5380). (parser, "normal"))
417 return _gtk_css_ident_value_newcxx . . $ _gtk_css_ident_value_new(68092bccdba74603). ("normal");
418 else if (gtk_css_parser_try_identcxx . . $ gtk_css_parser_try_ident(b5471d620daa5380). (parser, "small-caps"))
419 return _gtk_css_ident_value_newcxx . . $ _gtk_css_ident_value_new(68092bccdba74603). ("small-caps");
420 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
421 }
422
423 static gbooleancxx . . $ gboolean#
424 parse_fontcxx . . $ parse_font(c84cca61cd26e416). (GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *shorthand,
425 GtkCssValuecxx . . $ GtkCssValue# **values,
426 GtkCssParsercxx . . $ GtkCssParser# *parser)
427 {
428 gbooleancxx . . $ gboolean# parsed_one;
429
430 do
431 {
432 parsed_one = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
433
434 if (values[1] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
435 {
436 values[1] = _gtk_css_font_style_value_try_parsecxx . . $ _gtk_css_font_style_value_try_parse(66d8ac11734e4f87). (parser);
437 parsed_one = parsed_one || values[1] != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
438 }
439
440 if (values[2] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
441 {
442 values[2] = _gtk_css_font_variant_value_try_parsecxx . . $ _gtk_css_font_variant_value_try_parse(66d8ac11734e4f87). (parser);
443 parsed_one = parsed_one || values[2] != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
444 }
445
446 if (values[3] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
447 {
448 values[3] = gtk_css_font_weight_value_try_parsecxx . . $ gtk_css_font_weight_value_try_parse(66d8ac11734e4f87). (parser);
449 if (values[3] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! && gtk_css_number_value_can_parsecxx . . $ gtk_css_number_value_can_parse(1218f77d161081c9). (parser))
450 {
451 /* This needs to check for font-size, too */
452 GtkCssValuecxx . . $ GtkCssValue# *num = gtk_css_number_value_parsecxx . . $ gtk_css_number_value_parse(f3430beb2a3a84d9). (parser,
453 GTK_CSS_PARSE_NUMBERcxx . . $ GTK_CSS_PARSE_NUMBER. |
454 GTK_CSS_PARSE_LENGTHcxx . . $ GTK_CSS_PARSE_LENGTH. |
455 GTK_CSS_PARSE_PERCENTcxx . . $ GTK_CSS_PARSE_PERCENT. |
456 GTK_CSS_POSITIVE_ONLYcxx . . $ GTK_CSS_POSITIVE_ONLY.);
457 if (num == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
458 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
459
460 if (gtk_css_number_value_get_dimensioncxx . . $ gtk_css_number_value_get_dimension(d68c1baf7189d523). (num) != GTK_CSS_DIMENSION_NUMBERcxx . . $ GTK_CSS_DIMENSION_NUMBER.)
461 {
462 values[5] = num;
463 goto have_font_size;
464 }
465
466 values[3] = num;
467 if (gtk_css_number_value_getcxx . . $ gtk_css_number_value_get(aaf4d8e9bc9f0cb0). (values[3], 100) < 1 ||
468 gtk_css_number_value_getcxx . . $ gtk_css_number_value_get(aaf4d8e9bc9f0cb0). (values[3], 100) > 1000)
469 {
470 gtk_css_parser_error_valuecxx . . $ gtk_css_parser_error_value(41ac99f7292d7f5f). (parser, "Font weight values must be between 1 and 1000");
471 g_clear_pointercxx . . $ `<external>/1123956534522462559/gmem.h:135:9`! (&values[3], gtk_css_value_unref);
472 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
473 }
474 }
475 parsed_one = parsed_one || values[3] != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
476 }
477
478 if (values[4] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
479 {
480 values[4] = _gtk_css_font_stretch_value_try_parsecxx . . $ _gtk_css_font_stretch_value_try_parse(66d8ac11734e4f87). (parser);
481 parsed_one = parsed_one || values[4] != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
482 }
483 }
484 while (parsed_one && !value_is_done_parsingcxx . . $ value_is_done_parsing(1218f77d161081c9). (parser));
485
486 values[5] = gtk_css_font_size_value_parsecxx . . $ gtk_css_font_size_value_parse(66d8ac11734e4f87). (parser);
487 if (values[5] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
488 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
489
490 have_font_size:
491 values[0] = gtk_css_font_family_value_parsecxx . . $ gtk_css_font_family_value_parse(66d8ac11734e4f87). (parser);
492 if (values[0] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
493 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
494
495 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
496 }
497
498 static gbooleancxx . . $ gboolean#
499 parse_one_backgroundcxx . . $ parse_one_background(c84cca61cd26e416). (GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *shorthand,
500 GtkCssValuecxx . . $ GtkCssValue# **values,
501 GtkCssParsercxx . . $ GtkCssParser# *parser)
502 {
503 GtkCssValuecxx . . $ GtkCssValue# *value = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
504
505 do
506 {
507 /* the image part */
508 if (values[0] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
509 (gtk_css_parser_has_identcxx . . $ gtk_css_parser_has_ident(b5471d620daa5380). (parser, "none") ||
510 _gtk_css_image_can_parsecxx . . $ _gtk_css_image_can_parse(1218f77d161081c9). (parser)))
511 {
512 GtkCssImagecxx . . $ GtkCssImage# *image;
513
514 if (gtk_css_parser_try_identcxx . . $ gtk_css_parser_try_ident(b5471d620daa5380). (parser, "none"))
515 image = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
516 else
517 {
518 image = _gtk_css_image_new_parsecxx . . $ _gtk_css_image_new_parse(5939efb4cff1a411). (parser);
519 if (image == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
520 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
521 }
522
523 values[0] = _gtk_css_image_value_newcxx . . $ _gtk_css_image_value_new(e42596d9faf47e1a). (image);
524 }
525 else if (values[1] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
526 (value = _gtk_css_position_value_try_parsecxx . . $ _gtk_css_position_value_try_parse(66d8ac11734e4f87). (parser)))
527 {
528 values[1] = value;
529 value = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
530
531 if (gtk_css_parser_try_delimcxx . . $ gtk_css_parser_try_delim(445fe0de899bf106). (parser, '/') &&
532 (value = _gtk_css_bg_size_value_parsecxx . . $ _gtk_css_bg_size_value_parse(66d8ac11734e4f87). (parser)))
533 {
534 values[2] = value;
535 value = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
536 }
537 }
538 else if (values[3] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
539 (value = _gtk_css_background_repeat_value_try_parsecxx . . $ _gtk_css_background_repeat_value_try_parse(66d8ac11734e4f87). (parser)))
540 {
541 values[3] = value;
542 value = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
543 }
544 else if ((values[4] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! || values[5] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) &&
545 (value = _gtk_css_area_value_try_parsecxx . . $ _gtk_css_area_value_try_parse(66d8ac11734e4f87). (parser)))
546 {
547 values[4] = value;
548
549 if (values[5] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
550 {
551 values[5] = values[4];
552 values[4] = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
553 }
554 value = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
555 }
556 else if (values[6] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
557 {
558 value = gtk_css_color_value_parsecxx . . $ gtk_css_color_value_parse(66d8ac11734e4f87). (parser);
559 if (value == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
560 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
561
562 values[6] = value;
563 value = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
564 }
565 else
566 {
567 /* We parsed everything and there's still stuff left?
568 * Pretend we didn't notice and let the normal code produce
569 * a 'junk at end of value' error
570 */
571 break;
572 }
573 }
574 while (!value_is_done_parsingcxx . . $ value_is_done_parsing(1218f77d161081c9). (parser));
575
576 if (values[5] != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! && values[4] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
577 values[4] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (values[5]);
578
579 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
580 }
581
582 static gbooleancxx . . $ gboolean#
583 parse_backgroundcxx . . $ parse_background(c84cca61cd26e416). (GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *shorthand,
584 GtkCssValuecxx . . $ GtkCssValue# **values,
585 GtkCssParsercxx . . $ GtkCssParser# *parser)
586 {
587 GtkCssValuecxx . . $ GtkCssValue# *step_values[7];
588 GPtrArraycxx . . $ GPtrArray# *arrays[6];
589 guintcxx . . $ guint# i;
590
591 for (i = 0; i < 6; i++)
592 {
593 arrays[i] = g_ptr_array_newcxx . . $ g_ptr_array_new(61b5db61367ab387). ();
594 step_values[i] = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
595 }
596
597 step_values[6] = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
598
599 do {
600 if (!parse_one_backgroundcxx . . $ parse_one_background(c84cca61cd26e416). (shorthand, step_values, parser))
601 {
602 for (i = 0; i < 6; i++)
603 {
604 g_ptr_array_set_free_funccxx . . $ g_ptr_array_set_free_func(5d63e8d76b8eb3ce). (arrays[i], (GDestroyNotifycxx . . $ GDestroyNotify#) gtk_css_value_unrefcxx . . $ gtk_css_value_unref(eca506aa56b70245).);
605 g_ptr_array_unrefcxx . . $ g_ptr_array_unref(ebd7774315fc8cef). (arrays[i]);
606 }
607 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
608 }
609
610 for (i = 0; i < 6; i++)
611 {
612 if (step_values[i] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
613 {
614 GtkCssValuecxx . . $ GtkCssValue# *initial = _gtk_css_style_property_get_initial_valuecxx . . $ _gtk_css_style_property_get_initial_value(caa1ffdc0e79392e). (
615 _gtk_css_shorthand_property_get_subpropertycxx . . $ _gtk_css_shorthand_property_get_subproperty(fb9065194e167d3c). (shorthand, i));
616 step_values[i] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (_gtk_css_array_value_get_nth (initial, 0));
617 }
618
619 g_ptr_array_addcxx . . $ g_ptr_array_add(3cd73f70a4ada9). (arrays[i], step_values[i]);
620 step_values[i] = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
621 }
622 } while (gtk_css_parser_try_tokencxx . . $ gtk_css_parser_try_token(72b4dcd93b1a40ac). (parser, GTK_CSS_TOKEN_COMMAcxx . . $ GTK_CSS_TOKEN_COMMA.));
623
624 for (i = 0; i < 6; i++)
625 {
626 values[i] = _gtk_css_array_value_new_from_arraycxx . . $ _gtk_css_array_value_new_from_array(23de5dd843c16f57). ((GtkCssValuecxx . . $ GtkCssValue# **) arrays[i]->pdatacxx . . $ _GPtrArray#pdata., arrays[i]->lencxx . . $ _GPtrArray#len.);
627 g_ptr_array_unrefcxx . . $ g_ptr_array_unref(ebd7774315fc8cef). (arrays[i]);
628 }
629
630 values[6] = step_values[6];
631
632 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
633 }
634
635 static gbooleancxx . . $ gboolean#
636 has_transition_propertycxx . . $ has_transition_property(c4485038e227b957). (GtkCssParsercxx . . $ GtkCssParser# *parser,
637 gpointercxx . . $ gpointer# option_data,
638 gpointercxx . . $ gpointer# user_data)
639 {
640 return gtk_css_parser_has_tokencxx . . $ gtk_css_parser_has_token(72b4dcd93b1a40ac). (parser, GTK_CSS_TOKEN_IDENTcxx . . $ GTK_CSS_TOKEN_IDENT.);
641 }
642
643 static gbooleancxx . . $ gboolean#
644 parse_transition_propertycxx . . $ parse_transition_property(c4485038e227b957). (GtkCssParsercxx . . $ GtkCssParser# *parser,
645 gpointercxx . . $ gpointer# option_data,
646 gpointercxx . . $ gpointer# user_data)
647 {
648 GtkCssValuecxx . . $ GtkCssValue# **value = option_data;
649
650 *value = _gtk_css_ident_value_try_parsecxx . . $ _gtk_css_ident_value_try_parse(66d8ac11734e4f87). (parser);
651 g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (*value);
652
653 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
654 }
655
656 static gbooleancxx . . $ gboolean#
657 parse_transition_timecxx . . $ parse_transition_time(c4485038e227b957). (GtkCssParsercxx . . $ GtkCssParser# *parser,
658 gpointercxx . . $ gpointer# option_data,
659 gpointercxx . . $ gpointer# user_data)
660 {
661 GtkCssValuecxx . . $ GtkCssValue# **value = option_data;
662
663 *value = gtk_css_number_value_parsecxx . . $ gtk_css_number_value_parse(f3430beb2a3a84d9). (parser, GTK_CSS_PARSE_TIMEcxx . . $ GTK_CSS_PARSE_TIME.);
664
665 return *value != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
666 }
667
668 static gbooleancxx . . $ gboolean#
669 parse_transition_timing_functioncxx . . $ parse_transition_timing_function(c4485038e227b957). (GtkCssParsercxx . . $ GtkCssParser# *parser,
670 gpointercxx . . $ gpointer# option_data,
671 gpointercxx . . $ gpointer# user_data)
672 {
673 GtkCssValuecxx . . $ GtkCssValue# **value = option_data;
674
675 *value = _gtk_css_ease_value_parsecxx . . $ _gtk_css_ease_value_parse(66d8ac11734e4f87). (parser);
676
677 return *value != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
678 }
679
680 static gbooleancxx . . $ gboolean#
681 parse_one_transitioncxx . . $ parse_one_transition(c84cca61cd26e416). (GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *shorthand,
682 GtkCssValuecxx . . $ GtkCssValue# **values,
683 GtkCssParsercxx . . $ GtkCssParser# *parser)
684 {
685 const GtkCssParseOptioncxx . . $ GtkCssParseOption# options[] = {
686 { (void *) _gtk_css_ease_value_can_parsecxx . . $ _gtk_css_ease_value_can_parse(1218f77d161081c9)., parse_transition_timing_functioncxx . . $ parse_transition_timing_function(c4485038e227b957)., &values[3] },
687 { (void *) gtk_css_number_value_can_parsecxx . . $ gtk_css_number_value_can_parse(1218f77d161081c9)., parse_transition_timecxx . . $ parse_transition_time(c4485038e227b957)., &values[1] },
688 { (void *) gtk_css_number_value_can_parsecxx . . $ gtk_css_number_value_can_parse(1218f77d161081c9)., parse_transition_timecxx . . $ parse_transition_time(c4485038e227b957)., &values[2] },
689 { (void *) has_transition_propertycxx . . $ has_transition_property(c4485038e227b957)., parse_transition_propertycxx . . $ parse_transition_property(c4485038e227b957)., &values[0] },
690 };
691
692 return gtk_css_parser_consume_anycxx . . $ gtk_css_parser_consume_any(571d23030a50fb1e). (parser, options, G_N_ELEMENTScxx . . $ `<external>/12741050725406041920/gmacros.h:993:9`! (options), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
693 }
694
695 static gbooleancxx . . $ gboolean#
696 parse_transitioncxx . . $ parse_transition(c84cca61cd26e416). (GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *shorthand,
697 GtkCssValuecxx . . $ GtkCssValue# **values,
698 GtkCssParsercxx . . $ GtkCssParser# *parser)
699 {
700 GtkCssValuecxx . . $ GtkCssValue# *step_values[4];
701 GPtrArraycxx . . $ GPtrArray# *arrays[4];
702 guintcxx . . $ guint# i;
703
704 for (i = 0; i < 4; i++)
705 {
706 arrays[i] = g_ptr_array_newcxx . . $ g_ptr_array_new(61b5db61367ab387). ();
707 step_values[i] = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
708 }
709
710 do {
711 if (!parse_one_transitioncxx . . $ parse_one_transition(c84cca61cd26e416). (shorthand, step_values, parser))
712 {
713 for (i = 0; i < 4; i++)
714 {
715 g_ptr_array_set_free_funccxx . . $ g_ptr_array_set_free_func(5d63e8d76b8eb3ce). (arrays[i], (GDestroyNotifycxx . . $ GDestroyNotify#) gtk_css_value_unrefcxx . . $ gtk_css_value_unref(eca506aa56b70245).);
716 g_ptr_array_unrefcxx . . $ g_ptr_array_unref(ebd7774315fc8cef). (arrays[i]);
717 }
718 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
719 }
720
721 for (i = 0; i < 4; i++)
722 {
723 if (step_values[i] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
724 {
725 GtkCssValuecxx . . $ GtkCssValue# *initial = _gtk_css_style_property_get_initial_valuecxx . . $ _gtk_css_style_property_get_initial_value(caa1ffdc0e79392e). (
726 _gtk_css_shorthand_property_get_subpropertycxx . . $ _gtk_css_shorthand_property_get_subproperty(fb9065194e167d3c). (shorthand, i));
727 step_values[i] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (_gtk_css_array_value_get_nth (initial, 0));
728 }
729
730 g_ptr_array_addcxx . . $ g_ptr_array_add(3cd73f70a4ada9). (arrays[i], step_values[i]);
731 step_values[i] = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
732 }
733 } while (gtk_css_parser_try_tokencxx . . $ gtk_css_parser_try_token(72b4dcd93b1a40ac). (parser, GTK_CSS_TOKEN_COMMAcxx . . $ GTK_CSS_TOKEN_COMMA.));
734
735 for (i = 0; i < 4; i++)
736 {
737 values[i] = _gtk_css_array_value_new_from_arraycxx . . $ _gtk_css_array_value_new_from_array(23de5dd843c16f57). ((GtkCssValuecxx . . $ GtkCssValue# **) arrays[i]->pdatacxx . . $ _GPtrArray#pdata., arrays[i]->lencxx . . $ _GPtrArray#len.);
738 g_ptr_array_unrefcxx . . $ g_ptr_array_unref(ebd7774315fc8cef). (arrays[i]);
739 }
740
741 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
742 }
743
744 static gbooleancxx . . $ gboolean#
745 parse_one_animationcxx . . $ parse_one_animation(c84cca61cd26e416). (GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *shorthand,
746 GtkCssValuecxx . . $ GtkCssValue# **values,
747 GtkCssParsercxx . . $ GtkCssParser# *parser)
748 {
749 do
750 {
751 if (values[1] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! && gtk_css_parser_try_identcxx . . $ gtk_css_parser_try_ident(b5471d620daa5380). (parser, "infinite"))
752 {
753 values[1] = gtk_css_number_value_newcxx . . $ gtk_css_number_value_new(bee9a27a92b863c4). (HUGE_VALcxx . . $ `<external>/11263917310783833665/math.h:48:10`!, GTK_CSS_NUMBERcxx . . $ GTK_CSS_NUMBER.);
754 }
755 else if ((values[1] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! || values[3] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) &&
756 gtk_css_number_value_can_parsecxx . . $ gtk_css_number_value_can_parse(1218f77d161081c9). (parser))
757 {
758 GtkCssValuecxx . . $ GtkCssValue# *value;
759
760 value = gtk_css_number_value_parsecxx . . $ gtk_css_number_value_parse(f3430beb2a3a84d9). (parser,
761 GTK_CSS_POSITIVE_ONLYcxx . . $ GTK_CSS_POSITIVE_ONLY.
762 | (values[1] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! ? GTK_CSS_PARSE_NUMBERcxx . . $ GTK_CSS_PARSE_NUMBER. : 0)
763 | (values[3] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! ? GTK_CSS_PARSE_TIMEcxx . . $ GTK_CSS_PARSE_TIME. : 0));
764 if (value == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
765 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
766
767 if (gtk_css_number_value_get_dimensioncxx . . $ gtk_css_number_value_get_dimension(d68c1baf7189d523). (value) == GTK_CSS_DIMENSION_NUMBERcxx . . $ GTK_CSS_DIMENSION_NUMBER.)
768 values[1] = value;
769 else if (values[2] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
770 values[2] = value;
771 else
772 values[3] = value;
773 }
774 else if (values[4] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
775 _gtk_css_ease_value_can_parsecxx . . $ _gtk_css_ease_value_can_parse(1218f77d161081c9). (parser))
776 {
777 values[4] = _gtk_css_ease_value_parsecxx . . $ _gtk_css_ease_value_parse(66d8ac11734e4f87). (parser);
778
779 if (values[4] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
780 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
781 }
782 else if (values[5] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
783 (values[5] = _gtk_css_direction_value_try_parsecxx . . $ _gtk_css_direction_value_try_parse(66d8ac11734e4f87). (parser)))
784 {
785 /* nothing to do */
786 }
787 else if (values[6] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
788 (values[6] = _gtk_css_fill_mode_value_try_parsecxx . . $ _gtk_css_fill_mode_value_try_parse(66d8ac11734e4f87). (parser)))
789 {
790 /* nothing to do */
791 }
792 else if (values[0] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
793 (values[0] = _gtk_css_ident_value_try_parsecxx . . $ _gtk_css_ident_value_try_parse(66d8ac11734e4f87). (parser)))
794 {
795 /* nothing to do */
796 /* keep in mind though that this needs to come last as fill modes, directions
797 * etc are valid idents */
798 }
799 else
800 {
801 /* We parsed everything and there's still stuff left?
802 * Pretend we didn't notice and let the normal code produce
803 * a 'junk at end of value' error */
804 break;
805 }
806 }
807 while (!value_is_done_parsingcxx . . $ value_is_done_parsing(1218f77d161081c9). (parser));
808
809 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
810 }
811
812 static gbooleancxx . . $ gboolean#
813 parse_animationcxx . . $ parse_animation(c84cca61cd26e416). (GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *shorthand,
814 GtkCssValuecxx . . $ GtkCssValue# **values,
815 GtkCssParsercxx . . $ GtkCssParser# *parser)
816 {
817 GtkCssValuecxx . . $ GtkCssValue# *step_values[7];
818 GPtrArraycxx . . $ GPtrArray# *arrays[7];
819 guintcxx . . $ guint# i;
820
821 for (i = 0; i < 7; i++)
822 {
823 arrays[i] = g_ptr_array_newcxx . . $ g_ptr_array_new(61b5db61367ab387). ();
824 step_values[i] = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
825 }
826
827 do {
828 if (!parse_one_animationcxx . . $ parse_one_animation(c84cca61cd26e416). (shorthand, step_values, parser))
829 {
830 for (i = 0; i < 7; i++)
831 {
832 g_ptr_array_set_free_funccxx . . $ g_ptr_array_set_free_func(5d63e8d76b8eb3ce). (arrays[i], (GDestroyNotifycxx . . $ GDestroyNotify#) gtk_css_value_unrefcxx . . $ gtk_css_value_unref(eca506aa56b70245).);
833 g_ptr_array_unrefcxx . . $ g_ptr_array_unref(ebd7774315fc8cef). (arrays[i]);
834 }
835 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
836 }
837
838 for (i = 0; i < 7; i++)
839 {
840 if (step_values[i] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
841 {
842 GtkCssValuecxx . . $ GtkCssValue# *initial = _gtk_css_style_property_get_initial_valuecxx . . $ _gtk_css_style_property_get_initial_value(caa1ffdc0e79392e). (
843 _gtk_css_shorthand_property_get_subpropertycxx . . $ _gtk_css_shorthand_property_get_subproperty(fb9065194e167d3c). (shorthand, i));
844 step_values[i] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (_gtk_css_array_value_get_nth (initial, 0));
845 }
846
847 g_ptr_array_addcxx . . $ g_ptr_array_add(3cd73f70a4ada9). (arrays[i], step_values[i]);
848 step_values[i] = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
849 }
850 } while (gtk_css_parser_try_tokencxx . . $ gtk_css_parser_try_token(72b4dcd93b1a40ac). (parser, GTK_CSS_TOKEN_COMMAcxx . . $ GTK_CSS_TOKEN_COMMA.));
851
852 for (i = 0; i < 7; i++)
853 {
854 values[i] = _gtk_css_array_value_new_from_arraycxx . . $ _gtk_css_array_value_new_from_array(23de5dd843c16f57). ((GtkCssValuecxx . . $ GtkCssValue# **) arrays[i]->pdatacxx . . $ _GPtrArray#pdata., arrays[i]->lencxx . . $ _GPtrArray#len.);
855 g_ptr_array_unrefcxx . . $ g_ptr_array_unref(ebd7774315fc8cef). (arrays[i]);
856 }
857
858 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
859 }
860
861 static gbooleancxx . . $ gboolean#
862 parse_text_decorationcxx . . $ parse_text_decoration(c84cca61cd26e416). (GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *shorthand,
863 GtkCssValuecxx . . $ GtkCssValue# **values,
864 GtkCssParsercxx . . $ GtkCssParser# *parser)
865 {
866 GtkTextDecorationLinecxx . . $ GtkTextDecorationLine# line = 0;
867
868 do
869 {
870 GtkTextDecorationLinecxx . . $ GtkTextDecorationLine# parsed_line;
871
872 parsed_line = _gtk_css_text_decoration_line_try_parse_onecxx . . $ _gtk_css_text_decoration_line_try_parse_one(a457cb588eba750). (parser, line);
873
874 if (parsed_line == 0 && line != 0)
875 {
876 gtk_css_parser_error_valuecxx . . $ gtk_css_parser_error_value(41ac99f7292d7f5f). (parser, "Invalid combination of text-decoration-line values");
877 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
878 }
879
880 if (parsed_line != line)
881 {
882 line = parsed_line;
883 }
884 else if (values[1] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
885 (values[1] = _gtk_css_text_decoration_style_value_try_parsecxx . . $ _gtk_css_text_decoration_style_value_try_parse(66d8ac11734e4f87). (parser)))
886 {
887 if (values[1] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
888 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
889 }
890 else if (values[2] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
891 {
892 values[2] = gtk_css_color_value_parsecxx . . $ gtk_css_color_value_parse(66d8ac11734e4f87). (parser);
893 if (values[2] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
894 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
895 }
896 else
897 {
898 /* We parsed and there's still stuff left?
899 * Pretend we didn't notice and let the normal code produce
900 * a 'junk at end of value' error */
901 break;
902 }
903 }
904 while (!value_is_done_parsingcxx . . $ value_is_done_parsing(1218f77d161081c9). (parser));
905
906 if (line != 0)
907 {
908 values[0] = _gtk_css_text_decoration_line_value_newcxx . . $ _gtk_css_text_decoration_line_value_new(21bf5a30f29f17ef). (line);
909 if (values[0] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
910 {
911 gtk_css_parser_error_valuecxx . . $ gtk_css_parser_error_value(41ac99f7292d7f5f). (parser, "Invalid combination of text-decoration-line values");
912 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
913 }
914 }
915
916 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
917 }
918
919 static gbooleancxx . . $ gboolean#
920 parse_font_variantcxx . . $ parse_font_variant(c84cca61cd26e416). (GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *shorthand,
921 GtkCssValuecxx . . $ GtkCssValue# **values,
922 GtkCssParsercxx . . $ GtkCssParser# *parser)
923 {
924 if (gtk_css_parser_try_identcxx . . $ gtk_css_parser_try_ident(b5471d620daa5380). (parser, "normal"))
925 {
926 /* all initial values */
927 }
928 else if (gtk_css_parser_try_identcxx . . $ gtk_css_parser_try_ident(b5471d620daa5380). (parser, "none"))
929 {
930 /* all initial values, except for font-variant-ligatures */
931 values[0] = _gtk_css_font_variant_ligature_value_newcxx . . $ _gtk_css_font_variant_ligature_value_new(13e0b775a7c76dbf). (GTK_CSS_FONT_VARIANT_LIGATURE_NONEcxx . . $ GTK_CSS_FONT_VARIANT_LIGATURE_NONE.);
932 }
933 else
934 {
935 GtkCssFontVariantLigaturecxx . . $ GtkCssFontVariantLigature# ligatures;
936 GtkCssFontVariantNumericcxx . . $ GtkCssFontVariantNumeric# numeric;
937 GtkCssFontVariantEastAsiancxx . . $ GtkCssFontVariantEastAsian# east_asian;
938
939 ligatures = 0;
940 numeric = 0;
941 east_asian = 0;
942 do {
943 GtkCssFontVariantLigaturecxx . . $ GtkCssFontVariantLigature# parsed_ligature;
944 GtkCssFontVariantNumericcxx . . $ GtkCssFontVariantNumeric# parsed_numeric;
945 GtkCssFontVariantEastAsiancxx . . $ GtkCssFontVariantEastAsian# parsed_east_asian;
946
947 parsed_ligature = _gtk_css_font_variant_ligature_try_parse_onecxx . . $ _gtk_css_font_variant_ligature_try_parse_one(be8de273040b11f6). (parser, ligatures);
948 if (parsed_ligature == 0 && ligatures != 0)
949 {
950 gtk_css_parser_error_valuecxx . . $ gtk_css_parser_error_value(41ac99f7292d7f5f). (parser, "Invalid combination of ligature values");
951 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
952 }
953 if (parsed_ligature == GTK_CSS_FONT_VARIANT_LIGATURE_NORMALcxx . . $ GTK_CSS_FONT_VARIANT_LIGATURE_NORMAL. ||
954 parsed_ligature == GTK_CSS_FONT_VARIANT_LIGATURE_NONEcxx . . $ GTK_CSS_FONT_VARIANT_LIGATURE_NONE.)
955 {
956 gtk_css_parser_error_valuecxx . . $ gtk_css_parser_error_value(41ac99f7292d7f5f). (parser, "Unexpected ligature value");
957 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
958 }
959 if (parsed_ligature != ligatures)
960 {
961 ligatures = parsed_ligature;
962 goto found;
963 }
964
965 parsed_numeric = _gtk_css_font_variant_numeric_try_parse_onecxx . . $ _gtk_css_font_variant_numeric_try_parse_one(7b4749cb08e59fe5). (parser, numeric);
966 if (parsed_numeric == 0 && numeric != 0)
967 {
968 gtk_css_parser_error_valuecxx . . $ gtk_css_parser_error_value(41ac99f7292d7f5f). (parser, "Invalid combination of numeric values");
969 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
970 }
971 if (parsed_numeric == GTK_CSS_FONT_VARIANT_NUMERIC_NORMALcxx . . $ GTK_CSS_FONT_VARIANT_NUMERIC_NORMAL.)
972 {
973 gtk_css_parser_error_valuecxx . . $ gtk_css_parser_error_value(41ac99f7292d7f5f). (parser, "Unexpected numeric value");
974 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
975 }
976 if (parsed_numeric != numeric)
977 {
978 numeric = parsed_numeric;
979 goto found;
980 }
981
982 parsed_east_asian = _gtk_css_font_variant_east_asian_try_parse_onecxx . . $ _gtk_css_font_variant_east_asian_try_parse_one(aef2de8c8c849a47). (parser, east_asian);
983 if (parsed_east_asian == 0 && east_asian != 0)
984 {
985 gtk_css_parser_error_valuecxx . . $ gtk_css_parser_error_value(41ac99f7292d7f5f). (parser, "Invalid combination of east asian values");
986 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
987 }
988 if (parsed_east_asian == GTK_CSS_FONT_VARIANT_EAST_ASIAN_NORMALcxx . . $ GTK_CSS_FONT_VARIANT_EAST_ASIAN_NORMAL.)
989 {
990 gtk_css_parser_error_valuecxx . . $ gtk_css_parser_error_value(41ac99f7292d7f5f). (parser, "Unexpected east asian value");
991 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
992 }
993 if (parsed_east_asian != east_asian)
994 {
995 east_asian = parsed_east_asian;
996 goto found;
997 }
998
999 if (values[1] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
1000 {
1001 values[1] = _gtk_css_font_variant_position_value_try_parsecxx . . $ _gtk_css_font_variant_position_value_try_parse(66d8ac11734e4f87). (parser);
1002 if (values[1])
1003 {
1004 if (_gtk_css_font_variant_position_value_getcxx . . $ _gtk_css_font_variant_position_value_get(5bc8c03dfbcfbc63). (values[1]) == GTK_CSS_FONT_VARIANT_POSITION_NORMALcxx . . $ GTK_CSS_FONT_VARIANT_POSITION_NORMAL.)
1005 {
1006 gtk_css_parser_error_valuecxx . . $ gtk_css_parser_error_value(41ac99f7292d7f5f). (parser, "Unexpected position value");
1007 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
1008 }
1009 goto found;
1010 }
1011 }
1012 if (values[2] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
1013 {
1014 values[2] = _gtk_css_font_variant_caps_value_try_parsecxx . . $ _gtk_css_font_variant_caps_value_try_parse(66d8ac11734e4f87). (parser);
1015 if (values[2])
1016 {
1017 if (_gtk_css_font_variant_caps_value_getcxx . . $ _gtk_css_font_variant_caps_value_get(e33173bcd0dd97d5). (values[2]) == GTK_CSS_FONT_VARIANT_CAPS_NORMALcxx . . $ GTK_CSS_FONT_VARIANT_CAPS_NORMAL.)
1018 {
1019 gtk_css_parser_error_valuecxx . . $ gtk_css_parser_error_value(41ac99f7292d7f5f). (parser, "Unexpected caps value");
1020 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
1021 }
1022 goto found;
1023 }
1024 }
1025
1026 if (values[4] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
1027 {
1028 values[4] = _gtk_css_font_variant_alternate_value_try_parsecxx . . $ _gtk_css_font_variant_alternate_value_try_parse(66d8ac11734e4f87). (parser);
1029 if (values[4])
1030 {
1031 if (_gtk_css_font_variant_alternate_value_getcxx . . $ _gtk_css_font_variant_alternate_value_get(fd8187e7347eeb4f). (values[4]) == GTK_CSS_FONT_VARIANT_ALTERNATE_NORMALcxx . . $ GTK_CSS_FONT_VARIANT_ALTERNATE_NORMAL.)
1032 {
1033 gtk_css_parser_error_valuecxx . . $ gtk_css_parser_error_value(41ac99f7292d7f5f). (parser, "Unexpected alternate value");
1034 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
1035 }
1036 goto found;
1037 }
1038 }
1039
1040 gtk_css_parser_error_valuecxx . . $ gtk_css_parser_error_value(41ac99f7292d7f5f). (parser, "Unknown value for property");
1041 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
1042
1043 found:
1044 if (value_is_done_parsingcxx . . $ value_is_done_parsing(1218f77d161081c9). (parser))
1045 break;
1046
1047 } while (1);
1048
1049 if (ligatures != 0)
1050 {
1051 values[0] = _gtk_css_font_variant_ligature_value_newcxx . . $ _gtk_css_font_variant_ligature_value_new(13e0b775a7c76dbf). (ligatures);
1052 if (values[0] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
1053 {
1054 gtk_css_parser_error_valuecxx . . $ gtk_css_parser_error_value(41ac99f7292d7f5f). (parser, "Invalid combination of ligature values");
1055 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
1056 }
1057 }
1058
1059 if (numeric != 0)
1060 {
1061 values[3] = _gtk_css_font_variant_numeric_value_newcxx . . $ _gtk_css_font_variant_numeric_value_new(c5bc995906060a4c). (numeric);
1062 if (values[3] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
1063 {
1064 gtk_css_parser_error_valuecxx . . $ gtk_css_parser_error_value(41ac99f7292d7f5f). (parser, "Invalid combination of numeric values");
1065 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
1066 }
1067 }
1068
1069 if (east_asian != 0)
1070 {
1071 values[5] = _gtk_css_font_variant_east_asian_value_newcxx . . $ _gtk_css_font_variant_east_asian_value_new(5a3f4d448dc54c95). (east_asian);
1072 if (values[5] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
1073 {
1074 gtk_css_parser_error_valuecxx . . $ gtk_css_parser_error_value(41ac99f7292d7f5f). (parser, "Invalid combination of east asian values");
1075 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
1076 }
1077 }
1078 }
1079
1080 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
1081 }
1082
1083 static gbooleancxx . . $ gboolean#
1084 parse_allcxx . . $ parse_all(c84cca61cd26e416). (GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *shorthand,
1085 GtkCssValuecxx . . $ GtkCssValue# **values,
1086 GtkCssParsercxx . . $ GtkCssParser# *parser)
1087 {
1088 gtk_css_parser_error_syntaxcxx . . $ gtk_css_parser_error_syntax(41ac99f7292d7f5f). (parser, "The 'all' property can only be set to 'initial', 'inherit' or 'unset'");
1089 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
1090 }
1091
1092 static void
1093 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). (const char *name,
1094 unsigned int id,
1095 const char **subproperties,
1096 GtkCssShorthandPropertyParseFunccxx . . $ GtkCssShorthandPropertyParseFunc# parse_func)
1097 {
1098 GtkCssShorthandPropertycxx . . $ GtkCssShorthandProperty# *node;
1099
1100 node = g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (GTK_TYPE_CSS_SHORTHAND_PROPERTYcxx . . $ `gtk/gtkcssshorthandpropertyprivate.h:32:9`!,
1101 "name", name,
1102 "subproperties", subproperties,
1103 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1104
1105 node->idcxx . . $ _GtkCssShorthandProperty#id. = id;
1106
1107 node->parsecxx . . $ _GtkCssShorthandProperty#parse. = parse_func;
1108 }
1109
1110 /* NB: return value is transfer: container */
1111 static const char **
1112 get_all_subpropertiescxx . . $ get_all_subproperties(5435fb1d25b36c11). (void)
1113 {
1114 const char **properties;
1115 guintcxx . . $ guint# i, n;
1116
1117 n = _gtk_css_style_property_get_n_propertiescxx . . $ _gtk_css_style_property_get_n_properties(db52760e79bf9054). ();
1118 properties = g_newcxx . . $ `<external>/1123956534522462559/gmem.h:318:9`! (const char *, n + 1);
1119 properties[n] = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1120
1121 for (i = 0; i < n; i++)
1122 {
1123 properties[i] = _gtk_style_property_get_namecxx . . $ _gtk_style_property_get_name(f66ae3b230716ea4). (GTK_STYLE_PROPERTYcxx . . $ `gtk/gtkstylepropertyprivate.h:28:9`! (_gtk_css_style_property_lookup_by_id (i)));
1124 }
1125
1126 return properties;
1127 }
1128
1129 void
1130 _gtk_css_shorthand_property_init_propertiescxx . . $ _gtk_css_shorthand_property_init_properties(49f6e7a06ebc5aa8). (void)
1131 {
1132 /* The order is important here, be careful when changing it */
1133 const char *font_subproperties[] = { "font-family", "font-style", "font-variant-caps", "font-weight", "font-stretch", "font-size", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
1134 const char *margin_subproperties[] = { "margin-top", "margin-right", "margin-bottom", "margin-left", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
1135 const char *padding_subproperties[] = { "padding-top", "padding-right", "padding-bottom", "padding-left", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
1136 const char *border_width_subproperties[] = { "border-top-width", "border-right-width", "border-bottom-width", "border-left-width", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
1137 const char *border_radius_subproperties[] = { "border-top-left-radius", "border-top-right-radius",
1138 "border-bottom-right-radius", "border-bottom-left-radius", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
1139 const char *border_color_subproperties[] = { "border-top-color", "border-right-color", "border-bottom-color", "border-left-color", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
1140 const char *border_style_subproperties[] = { "border-top-style", "border-right-style", "border-bottom-style", "border-left-style", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
1141 const char *border_image_subproperties[] = { "border-image-source", "border-image-slice", "border-image-width", "border-image-repeat", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
1142 const char *border_top_subproperties[] = { "border-top-width", "border-top-style", "border-top-color", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
1143 const char *border_right_subproperties[] = { "border-right-width", "border-right-style", "border-right-color", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
1144 const char *border_bottom_subproperties[] = { "border-bottom-width", "border-bottom-style", "border-bottom-color", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
1145 const char *border_left_subproperties[] = { "border-left-width", "border-left-style", "border-left-color", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
1146 const char *border_subproperties[] = { "border-top-width", "border-right-width", "border-bottom-width", "border-left-width",
1147 "border-top-style", "border-right-style", "border-bottom-style", "border-left-style",
1148 "border-top-color", "border-right-color", "border-bottom-color", "border-left-color",
1149 "border-image-source", "border-image-slice", "border-image-width", "border-image-repeat", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
1150 const char *outline_subproperties[] = { "outline-width", "outline-style", "outline-color", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
1151 const char *background_subproperties[] = { "background-image", "background-position", "background-size", "background-repeat", "background-clip", "background-origin",
1152 "background-color", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
1153 const char *transition_subproperties[] = { "transition-property", "transition-duration", "transition-delay", "transition-timing-function", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
1154 const char *animation_subproperties[] = { "animation-name", "animation-iteration-count", "animation-duration", "animation-delay",
1155 "animation-timing-function", "animation-direction", "animation-fill-mode", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
1156 const char *text_decoration_subproperties[] = { "text-decoration-line", "text-decoration-style", "text-decoration-color", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
1157 const char *font_variant_subproperties[] = { "font-variant-ligatures", "font-variant-position", "font-variant-caps", "font-variant-numeric", "font-variant-alternates", "font-variant-east-asian", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
1158
1159 const char **all_subproperties;
1160
1161 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). ("font",
1162 GTK_CSS_SHORTHAND_PROPERTY_FONTcxx . . $ GTK_CSS_SHORTHAND_PROPERTY_FONT.,
1163 font_subproperties,
1164 parse_fontcxx . . $ parse_font(c84cca61cd26e416).);
1165 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). ("margin",
1166 GTK_CSS_SHORTHAND_PROPERTY_MARGINcxx . . $ GTK_CSS_SHORTHAND_PROPERTY_MARGIN.,
1167 margin_subproperties,
1168 parse_margincxx . . $ parse_margin(c84cca61cd26e416).);
1169 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). ("padding",
1170 GTK_CSS_SHORTHAND_PROPERTY_PADDINGcxx . . $ GTK_CSS_SHORTHAND_PROPERTY_PADDING.,
1171 padding_subproperties,
1172 parse_paddingcxx . . $ parse_padding(c84cca61cd26e416).);
1173 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). ("border-width",
1174 GTK_CSS_SHORTHAND_PROPERTY_BORDER_WIDTHcxx . . $ GTK_CSS_SHORTHAND_PROPERTY_BORDER_WIDTH.,
1175 border_width_subproperties,
1176 parse_border_widthcxx . . $ parse_border_width(c84cca61cd26e416).);
1177 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). ("border-radius",
1178 GTK_CSS_SHORTHAND_PROPERTY_BORDER_RADIUScxx . . $ GTK_CSS_SHORTHAND_PROPERTY_BORDER_RADIUS.,
1179 border_radius_subproperties,
1180 parse_border_radiuscxx . . $ parse_border_radius(c84cca61cd26e416).);
1181 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). ("border-color",
1182 GTK_CSS_SHORTHAND_PROPERTY_BORDER_COLORcxx . . $ GTK_CSS_SHORTHAND_PROPERTY_BORDER_COLOR.,
1183 border_color_subproperties,
1184 parse_border_colorcxx . . $ parse_border_color(c84cca61cd26e416).);
1185 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). ("border-style",
1186 GTK_CSS_SHORTHAND_PROPERTY_BORDER_STYLEcxx . . $ GTK_CSS_SHORTHAND_PROPERTY_BORDER_STYLE.,
1187 border_style_subproperties,
1188 parse_border_stylecxx . . $ parse_border_style(c84cca61cd26e416).);
1189 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). ("border-image",
1190 GTK_CSS_SHORTHAND_PROPERTY_BORDER_IMAGEcxx . . $ GTK_CSS_SHORTHAND_PROPERTY_BORDER_IMAGE.,
1191 border_image_subproperties,
1192 parse_border_imagecxx . . $ parse_border_image(c84cca61cd26e416).);
1193 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). ("border-top",
1194 GTK_CSS_SHORTHAND_PROPERTY_BORDER_TOPcxx . . $ GTK_CSS_SHORTHAND_PROPERTY_BORDER_TOP.,
1195 border_top_subproperties,
1196 parse_border_sidecxx . . $ parse_border_side(c84cca61cd26e416).);
1197 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). ("border-right",
1198 GTK_CSS_SHORTHAND_PROPERTY_BORDER_RIGHTcxx . . $ GTK_CSS_SHORTHAND_PROPERTY_BORDER_RIGHT.,
1199 border_right_subproperties,
1200 parse_border_sidecxx . . $ parse_border_side(c84cca61cd26e416).);
1201 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). ("border-bottom",
1202 GTK_CSS_SHORTHAND_PROPERTY_BORDER_BOTTOMcxx . . $ GTK_CSS_SHORTHAND_PROPERTY_BORDER_BOTTOM.,
1203 border_bottom_subproperties,
1204 parse_border_sidecxx . . $ parse_border_side(c84cca61cd26e416).);
1205 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). ("border-left",
1206 GTK_CSS_SHORTHAND_PROPERTY_BORDER_LEFTcxx . . $ GTK_CSS_SHORTHAND_PROPERTY_BORDER_LEFT.,
1207 border_left_subproperties,
1208 parse_border_sidecxx . . $ parse_border_side(c84cca61cd26e416).);
1209 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). ("border",
1210 GTK_CSS_SHORTHAND_PROPERTY_BORDERcxx . . $ GTK_CSS_SHORTHAND_PROPERTY_BORDER.,
1211 border_subproperties,
1212 parse_bordercxx . . $ parse_border(c84cca61cd26e416).);
1213 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). ("outline",
1214 GTK_CSS_SHORTHAND_PROPERTY_OUTLINEcxx . . $ GTK_CSS_SHORTHAND_PROPERTY_OUTLINE.,
1215 outline_subproperties,
1216 parse_border_sidecxx . . $ parse_border_side(c84cca61cd26e416).);
1217 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). ("background",
1218 GTK_CSS_SHORTHAND_PROPERTY_BACKGROUNDcxx . . $ GTK_CSS_SHORTHAND_PROPERTY_BACKGROUND.,
1219 background_subproperties,
1220 parse_backgroundcxx . . $ parse_background(c84cca61cd26e416).);
1221 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). ("transition",
1222 GTK_CSS_SHORTHAND_PROPERTY_TRANSITIONcxx . . $ GTK_CSS_SHORTHAND_PROPERTY_TRANSITION.,
1223 transition_subproperties,
1224 parse_transitioncxx . . $ parse_transition(c84cca61cd26e416).);
1225 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). ("animation",
1226 GTK_CSS_SHORTHAND_PROPERTY_ANIMATIONcxx . . $ GTK_CSS_SHORTHAND_PROPERTY_ANIMATION.,
1227 animation_subproperties,
1228 parse_animationcxx . . $ parse_animation(c84cca61cd26e416).);
1229 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). ("text-decoration",
1230 GTK_CSS_SHORTHAND_PROPERTY_TEXT_DECORATIONcxx . . $ GTK_CSS_SHORTHAND_PROPERTY_TEXT_DECORATION.,
1231 text_decoration_subproperties,
1232 parse_text_decorationcxx . . $ parse_text_decoration(c84cca61cd26e416).);
1233 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). ("font-variant",
1234 GTK_CSS_SHORTHAND_PROPERTY_FONT_VARIANTcxx . . $ GTK_CSS_SHORTHAND_PROPERTY_FONT_VARIANT.,
1235 font_variant_subproperties,
1236 parse_font_variantcxx . . $ parse_font_variant(c84cca61cd26e416).);
1237
1238 all_subproperties = get_all_subpropertiescxx . . $ get_all_subproperties(5435fb1d25b36c11). ();
1239 gtk_css_shorthand_property_registercxx . . $ gtk_css_shorthand_property_register(5f9c5d6bfbff01cb). ("all",
1240 GTK_CSS_SHORTHAND_PROPERTY_ALLcxx . . $ GTK_CSS_SHORTHAND_PROPERTY_ALL.,
1241 all_subproperties,
1242 parse_allcxx . . $ parse_all(c84cca61cd26e416).);
1243 g_freecxx . . $ g_free(5d22bdacc48458e8). (all_subproperties);
1244 }