Lines Matching refs:style
30 #include <cr-style.h>
194 CRXStyle *style;
215 style = *a_style;
216 style->parent_style = a_parent_style;
217 style->base->parent_style =
228 cr_style_set_style_from_decl (style->base, decl);
245 style->text_decoration = TEXT_DECORATION_NONE;
247 style->text_decoration = TEXT_DECORATION_UNDERLINE;
249 style->text_decoration = TEXT_DECORATION_OVERLINE;
251 style->text_decoration = TEXT_DECORATION_LINE_THROUGH;
253 style->text_decoration = TEXT_DECORATION_BLINK;
255 style->text_decoration = TEXT_DECORATION_INHERIT;
273 So we write style accessors that fetch the computed value, doing the
279 style_compute_color_value (CRStyle *style, enum CRRgbProp which,
284 if (style == NULL)
286 if (cr_rgb_is_set_to_inherit (&style->rgb_props[which].sv))
287 style = style->parent_style;
288 else if (cr_rgb_is_set_to_transparent (&style->rgb_props[which].sv))
299 cr_rgb_copy (&rgb, &style->rgb_props[which].sv);
311 style_compute_font_weight_value (const CRStyle *style)
316 if (style == NULL)
319 switch (style->font_weight)
322 style = style->parent_style;
326 style = style->parent_style;
330 style = style->parent_style;
368 style_compute_font_posture_value (const CRStyle *style)
372 if (style == NULL)
374 switch (style->font_style)
377 style = style->parent_style;
391 style_compute_text_underline_value (const CRXStyle *style)
395 if (style == NULL)
397 switch (style->text_decoration)
400 style = style->parent_style;
479 /* curr_style is a new style, inheriting from parent_style. */
496 /* Free the style chain. */