Lines Matching refs:style
27 #include <cr-style.h>
197 CRXStyle *style;
218 style = *a_style;
219 style->parent_style = a_parent_style;
220 style->base->parent_style =
231 cr_style_set_style_from_decl (style->base, decl);
248 style->text_decoration = TEXT_DECORATION_NONE;
250 style->text_decoration = TEXT_DECORATION_UNDERLINE;
252 style->text_decoration = TEXT_DECORATION_OVERLINE;
254 style->text_decoration = TEXT_DECORATION_LINE_THROUGH;
256 style->text_decoration = TEXT_DECORATION_BLINK;
258 style->text_decoration = TEXT_DECORATION_INHERIT;
276 So we write style accessors that fetch the computed value, doing the
282 style_compute_color_value (CRStyle *style, enum CRRgbProp which,
287 if (style == NULL)
289 if (cr_rgb_is_set_to_inherit (&style->rgb_props[which].sv))
290 style = style->parent_style;
291 else if (cr_rgb_is_set_to_transparent (&style->rgb_props[which].sv))
302 cr_rgb_copy (&rgb, &style->rgb_props[which].sv);
314 style_compute_font_weight_value (const CRStyle *style)
319 if (style == NULL)
322 switch (style->font_weight)
325 style = style->parent_style;
329 style = style->parent_style;
333 style = style->parent_style;
371 style_compute_font_posture_value (const CRStyle *style)
375 if (style == NULL)
377 switch (style->font_style)
380 style = style->parent_style;
394 style_compute_text_underline_value (const CRXStyle *style)
398 if (style == NULL)
400 switch (style->text_decoration)
403 style = style->parent_style;
482 /* curr_style is a new style, inheriting from parent_style. */
499 /* Free the style chain. */