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. More...
 
CRAdditionalSeladd_sel
 The additional selector list of the current simple selector. More...
 
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

◆ add_sel

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

◆ combinator

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

◆ is_case_sentive

gboolean _CRSimpleSel::is_case_sentive

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

◆ location

CRParsingLocation _CRSimpleSel::location

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

◆ name

CRString* _CRSimpleSel::name

◆ next

CRSimpleSel* _CRSimpleSel::next

◆ prev

CRSimpleSel* _CRSimpleSel::prev

◆ specificity

gulong _CRSimpleSel::specificity

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

Referenced by cr_simple_sel_compute_specificity().

◆ type_mask

enum SimpleSelectorType _CRSimpleSel::type_mask

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: