Photon 1.0.0
Loading...
Searching...
No Matches
css_selector.h File Reference
#include "style.h"
#include "media_query.h"
#include "css_tokenizer.h"

Go to the source code of this file.

Classes

struct  litehtml::selector_specificity
 
struct  litehtml::css_attribute_selector
 
class  litehtml::css_element_selector
 
class  litehtml::css_selector
 
class  litehtml::used_selector
 

Namespaces

namespace  litehtml
 

Enumerations

enum  litehtml::attr_select_type {
  litehtml::select_class , litehtml::select_id , litehtml::select_attr , litehtml::select_pseudo_class ,
  litehtml::select_pseudo_element
}
 
enum  litehtml::attr_matcher : char {
  litehtml::attribute_exists = 0 , litehtml::attribute_equals = '=' , litehtml::attribute_contains_string = '*' , litehtml::attribute_contains_word = '~' ,
  litehtml::attribute_starts_with_string = '^' , litehtml::attribute_starts_with_string_hyphen = '|' , litehtml::attribute_ends_with_string = '$'
}
 
enum  litehtml::css_combinator { litehtml::combinator_descendant = ' ' , litehtml::combinator_child = '>' , litehtml::combinator_adjacent_sibling = '+' , litehtml::combinator_general_sibling = '~' }
 
enum  { litehtml::strict_mode = 0 , litehtml::forgiving_mode = 1 , litehtml::forbid_pseudo_elements = 1 << 1 }
 

Functions

bool litehtml::operator> (const css_selector &v1, const css_selector &v2)
 
bool litehtml::operator< (const css_selector &v1, const css_selector &v2)
 
bool litehtml::operator> (const css_selector::ptr &v1, const css_selector::ptr &v2)
 
bool litehtml::operator< (const css_selector::ptr &v1, const css_selector::ptr &v2)
 
css_selector::vector litehtml::parse_selector_list (const css_token_vector &tokens, int options, document_mode mode)