mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
0f6d4310ad
Thu Sep 15 15:57:07 CEST 2005. The previous history can be added to this by grafting.
37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
/* $Id: apply.h,v 1.13 2005/07/15 19:11:10 miciah Exp $ */
|
|
|
|
#ifndef EL__DOCUMENT_CSS_APPLY_H
|
|
#define EL__DOCUMENT_CSS_APPLY_H
|
|
|
|
#include "util/lists.h"
|
|
|
|
struct css_stylesheet;
|
|
struct html_context;
|
|
struct html_element;
|
|
|
|
/* This is the main entry point for the CSS micro-engine. It throws all the
|
|
* power of the stylesheets at a given element. */
|
|
|
|
/* Gather all style information for the given @element, so it can later be
|
|
* applied. Returned value should be freed using done_css_selector(). */
|
|
struct css_selector *
|
|
get_css_selector_for_element(struct html_context *html_context,
|
|
struct html_element *element,
|
|
struct css_stylesheet *css,
|
|
struct list_head *html_stack);
|
|
|
|
|
|
/* Apply properties from an existing selector. */
|
|
void
|
|
apply_css_selector_style(struct html_context *html_context,
|
|
struct html_element *element,
|
|
struct css_selector *selector);
|
|
|
|
/* This function takes @element and applies its 'style' attribute onto its
|
|
* attributes (if it contains such an attribute). */
|
|
void
|
|
css_apply(struct html_context *html_context, struct html_element *element,
|
|
struct css_stylesheet *css, struct list_head *html_stack);
|
|
|
|
#endif
|