Libcroco
|
The abstraction of a css2 simple selection list as defined by the right part of the "selector" production in the appendix D.1 of the css2 spec. More...
#include <cr-simple-sel.h>
Data Fields | |
enum SimpleSelectorType | type_mask |
gboolean | is_case_sentive |
CRString * | name |
enum Combinator | combinator |
The combinator that separates this simple selector from the previous one. More... | |
CRAdditionalSel * | add_sel |
The additional selector list of the current simple selector. More... | |
gulong | specificity |
CRSimpleSel * | next |
CRSimpleSel * | prev |
CRParsingLocation | location |
The abstraction of a css2 simple selection list as defined by the right part of the "selector" production in the appendix D.1 of the css2 spec.
It is basically a list of simple selector, each simple selector being separated by a combinator.
In the libcroco's implementation, each simple selector is made of at most two parts:
1/An element name or 'type selector' (which can hold a '*' and then been called 'universal selector')
2/An additional selector that "specializes" the preceding type or universal selector. The additionnal selector can be either an id selector, or a class selector, or an attribute selector.
Definition at line 74 of file cr-simple-sel.h.
CRAdditionalSel* _CRSimpleSel::add_sel |
The additional selector list of the current simple selector.
An additional selector may be a class selector, an id selector, or an attribute selector. Note that this field is a linked list.
Definition at line 94 of file cr-simple-sel.h.
Referenced by cr_simple_sel_compute_specificity(), cr_simple_sel_destroy(), cr_simple_sel_one_to_string(), and cr_simple_sel_to_string().
enum Combinator _CRSimpleSel::combinator |
The combinator that separates this simple selector from the previous one.
Definition at line 84 of file cr-simple-sel.h.
Referenced by cr_simple_sel_to_string().
gboolean _CRSimpleSel::is_case_sentive |
Definition at line 77 of file cr-simple-sel.h.
CRParsingLocation _CRSimpleSel::location |
Definition at line 104 of file cr-simple-sel.h.
CRString* _CRSimpleSel::name |
Definition at line 78 of file cr-simple-sel.h.
Referenced by cr_simple_sel_compute_specificity(), cr_simple_sel_destroy(), cr_simple_sel_one_to_string(), and cr_simple_sel_to_string().
CRSimpleSel* _CRSimpleSel::next |
Definition at line 102 of file cr-simple-sel.h.
Referenced by cr_simple_sel_append_simple_sel(), cr_simple_sel_compute_specificity(), cr_simple_sel_destroy(), cr_simple_sel_prepend_simple_sel(), and cr_simple_sel_to_string().
CRSimpleSel* _CRSimpleSel::prev |
Definition at line 103 of file cr-simple-sel.h.
Referenced by cr_simple_sel_append_simple_sel(), and cr_simple_sel_prepend_simple_sel().
gulong _CRSimpleSel::specificity |
Definition at line 100 of file cr-simple-sel.h.
Referenced by cr_simple_sel_compute_specificity().
enum SimpleSelectorType _CRSimpleSel::type_mask |
Definition at line 76 of file cr-simple-sel.h.
Referenced by cr_simple_sel_compute_specificity().