Dillo v3.1.1-119-g140d9ebd
|
A CssSelector CssPropertyList pair. More...
#include <css.hh>
Public Member Functions | |
CssRule (CssSelector *selector, CssPropertyList *props, int pos) | |
~CssRule () | |
void | apply (CssPropertyList *props, Doctree *docTree, const DoctreeNode *node, MatchCache *matchCache) const |
bool | isSafe () |
int | specificity () |
int | position () |
void | print () |
Public Attributes | |
CssSelector * | selector |
Private Attributes | |
CssPropertyList * | props |
int | spec |
int | pos |
A CssSelector CssPropertyList pair.
The CssPropertyList is applied if the CssSelector matches.
CssRule::CssRule | ( | CssSelector * | selector, |
CssPropertyList * | props, | ||
int | pos | ||
) |
Definition at line 320 of file css.cc.
References pos, props, CssPropertyList::ref(), CssSelector::ref(), selector, CssSelector::size(), spec, and CssSelector::specificity().
CssRule::~CssRule | ( | ) |
Definition at line 331 of file css.cc.
References props, selector, CssPropertyList::unref(), and CssSelector::unref().
void CssRule::apply | ( | CssPropertyList * | props, |
Doctree * | docTree, | ||
const DoctreeNode * | node, | ||
MatchCache * | matchCache | ||
) | const |
Definition at line 336 of file css.cc.
References CssPropertyList::apply(), CssSelector::match(), props, and selector.
Referenced by CssStyleSheet::apply().
|
inline |
Definition at line 463 of file css.hh.
References CssSelector::checksPseudoClass(), CssPropertyList::isSafe(), props, and selector.
Referenced by CssContext::addRule().
|
inline |
void CssRule::print | ( | ) |
Definition at line 342 of file css.cc.
References CssPropertyList::print(), CssSelector::print(), props, and selector.
|
inline |
Definition at line 466 of file css.hh.
References spec.
Referenced by CssStyleSheet::apply(), and CssStyleSheet::RuleList::insert().
|
private |
Definition at line 453 of file css.hh.
Referenced by CssRule(), and position().
|
private |
CssSelector* CssRule::selector |
Definition at line 456 of file css.hh.
Referenced by CssStyleSheet::addRule(), CssContext::addRule(), apply(), CssRule(), isSafe(), print(), and ~CssRule().
|
private |
Definition at line 453 of file css.hh.
Referenced by CssRule(), and specificity().