blob: 2fcb7396e131b3f4a81759840e7cde6ee3d9e2d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/*
* This file is part of LibCSS
* Licensed under the MIT License,
* http://www.opensource.org/licenses/mit-license.php
* Copyright 2009 John-Mark Bell <jmb@netsurf-browser.org>
*/
#ifndef css_select_dispatch_h_
#define css_select_dispatch_h_
#include <stdint.h>
#include <libcss/errors.h>
#include <libcss/computed.h>
#include "stylesheet.h"
#include "bytecode/bytecode.h"
#include "select/select.h"
/**
* Enumeration of property groups
*/
enum prop_group {
GROUP_NORMAL = 0x0,
GROUP_UNCOMMON = 0x1,
GROUP_PAGE = 0x2,
GROUP_AURAL = 0x3
};
extern struct prop_table {
css_error (*cascade)(uint32_t opv, css_style *style,
css_select_state *state);
css_error (*set_from_hint)(const css_hint *hint,
css_computed_style *style);
css_error (*initial)(css_select_state *state);
css_error (*compose)(const css_computed_style *parent,
const css_computed_style *child,
css_computed_style *result);
unsigned int inherited;
unsigned int group;
} prop_dispatch[CSS_N_PROPERTIES];
#endif
|