grafthistory: support curl
[elinks/elinks-j605.git] / src / document / css / apply.h
blob61423152e4745bda883dffae374445a1342cac53
2 #ifndef EL__DOCUMENT_CSS_APPLY_H
3 #define EL__DOCUMENT_CSS_APPLY_H
5 #include "util/lists.h"
7 struct css_stylesheet;
8 struct html_context;
9 struct html_element;
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(). */
16 struct 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. */
24 void
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). */
31 void
32 css_apply(struct html_context *html_context, struct html_element *element,
33 struct css_stylesheet *css, struct list_head *html_stack);
35 #endif