19#ifndef NETSURF_CSS_SELECT_H_
20#define NETSURF_CSS_SELECT_H_
26#include <libcss/libcss.h>
45 const char *charset,
const char *url,
bool allow_quirks);
48 const css_media *media,
49 const css_unit_ctx *unit_len_ctx,
50 const css_stylesheet *inline_style);
53 const css_unit_ctx *unit_len_ctx,
54 const css_computed_style *
parent);
58 const css_qname *qname,
void **ancestor);
struct nsurl nsurl
NetSurf URL object.
css_select_results * nscss_get_style(nscss_select_ctx *ctx, dom_node *n, const css_media *media, const css_unit_ctx *unit_len_ctx, const css_stylesheet *inline_style)
Get style selection results for an element.
css_stylesheet * nscss_create_inline_style(const uint8_t *data, size_t len, const char *charset, const char *url, bool allow_quirks)
Create an inline style.
css_error node_is_visited(void *pw, void *node, bool *match)
Callback to determine if a node is a linking element whose target has been visited.
css_error named_ancestor_node(void *pw, void *node, const css_qname *qname, void **ancestor)
Callback to find a named ancestor node.
css_computed_style * nscss_get_blank_style(nscss_select_ctx *ctx, const css_unit_ctx *unit_len_ctx, const css_computed_style *parent)
Get a blank style.
struct nscss_select_ctx nscss_select_ctx
Selection context.
Content which corresponds to a single URL.
const css_computed_style * parent_style
const css_computed_style * root_style