2 #ifndef EL__DOCUMENT_CSS_APPLY_H
3 #define EL__DOCUMENT_CSS_APPLY_H
5 #include "util/lists.h"
11 /* This is the main entry point for the CSS micro-engine. It throws all the
12 * power of the stylesheets at a given element. */
14 /* Gather all style information for the given @element, so it can later be
15 * applied. Returned value should be freed using done_css_selector(). */
17 get_css_selector_for_element(struct html_context
*html_context
,
18 struct html_element
*element
,
19 struct css_stylesheet
*css
,
20 struct list_head
*html_stack
);
23 /* Apply properties from an existing selector. */
25 apply_css_selector_style(struct html_context
*html_context
,
26 struct html_element
*element
,
27 struct css_selector
*selector
);
29 /* This function takes @element and applies its 'style' attribute onto its
30 * attributes (if it contains such an attribute). */
32 css_apply(struct html_context
*html_context
, struct html_element
*element
,
33 struct css_stylesheet
*css
, struct list_head
*html_stack
);