Photon 1.0.0
Loading...
Searching...
No Matches
style.cpp File Reference
#include "html.h"
#include "style.h"
#include "css_parser.h"
#include "internal.h"

Namespaces

namespace  litehtml
 

Functions

bool litehtml::parse_bg_image (const css_token &token, image &bg_image, document_container *container)
 
bool litehtml::parse_bg_position_size (const css_token_vector &tokens, int &index, css_length &x, css_length &y, css_size &size)
 
bool litehtml::parse_bg_size (const css_token_vector &tokens, int &index, css_size &size)
 
bool litehtml::parse_two_lengths (const css_token_vector &tokens, css_length len[2], int options)
 
template<class T , class... Args>
int litehtml::parse_1234_values (const css_token_vector &tokens, T result[4], bool(*func)(const css_token &, T &, Args...), Args... args)
 
int litehtml::parse_1234_lengths (const css_token_vector &tokens, css_length len[4], int options, string keywords="")
 
bool litehtml::parse_border_width (const css_token &tok, css_length &width)
 
bool litehtml::parse_font_family (const css_token_vector &tokens, string &font_family)
 
bool litehtml::parse_font_weight (const css_token &tok, css_length &weight)
 
bool litehtml::has_var (const css_token_vector &tokens)
 
bool litehtml::parse_border_helper (const css_token_vector &tokens, document_container *container, css_length &width, border_style &style, web_color &color)
 
bool litehtml::parse_length (const css_token &tok, css_length &length, int options, string keywords="")
 
bool litehtml::is_one_of_predef (const css_length &x, int idx1, int idx2)
 
bool litehtml::parse_bg_position (const css_token_vector &tokens, int &index, css_length &x, css_length &y, bool convert_keywords_to_percents)
 
bool litehtml::parse_url (const css_token &token, string &url)
 
bool litehtml::parse_font_style_variant_weight (const css_token_vector &tokens, int &index, int &style, int &variant, css_length &weight)
 
bool litehtml::is_custom_ident (const css_token &tok)
 
bool litehtml::check_var_syntax (const css_token_vector &args)
 
bool litehtml::subst_var (css_token_vector &tokens, const html_tag *el, std::set< string_id > &used_vars)
 
void litehtml::subst_vars_ (string_id name, css_token_vector &tokens, const html_tag *el)
 

Variables

std::map< string_id, vector< string_id > > litehtml::shorthands