Libcroco
Data Fields
_CRSimpleSel Struct Reference

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
CRStringname
enum Combinator combinator
 The combinator that separates this simple selector from the previous one.
CRAdditionalSeladd_sel
 The additional selector list of the current simple selector.
gulong specificity
CRSimpleSelnext
CRSimpleSelprev
CRParsingLocation location

Detailed Description

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.


Field Documentation

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().

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().

Definition at line 77 of file cr-simple-sel.h.

Definition at line 104 of file cr-simple-sel.h.

Definition at line 100 of file cr-simple-sel.h.

Referenced by cr_simple_sel_compute_specificity().

Definition at line 76 of file cr-simple-sel.h.

Referenced by cr_simple_sel_compute_specificity().


The documentation for this struct was generated from the following file: