dillo  3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java).
  Fossies Dox: dillo-3.0.5.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

CssRule Class Reference

A CssSelector CssPropertyList pair. More...

#include <css.hh>

Collaboration diagram for CssRule:

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


Private Attributes

int spec
int pos

Detailed Description

A CssSelector CssPropertyList pair.

The CssPropertyList is applied if the CssSelector matches.

Definition at line 431 of file css.hh.

Constructor & Destructor Documentation

◆ CssRule()

CssRule::CssRule ( CssSelector selector,
CssPropertyList props,
int  pos 

◆ ~CssRule()

CssRule::~CssRule ( )

Definition at line 331 of file css.cc.

References props, selector, CssPropertyList::unref(), and CssSelector::unref().

Member Function Documentation

◆ apply()

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

◆ isSafe()

bool CssRule::isSafe ( )

Definition at line 444 of file css.hh.

References CssSelector::checksPseudoClass(), CssPropertyList::isSafe(), props, and selector.

Referenced by CssContext::addRule().

◆ position()

int CssRule::position ( )

Definition at line 448 of file css.hh.

References pos.

Referenced by CssStyleSheet::apply().

◆ print()

void CssRule::print ( )

Definition at line 342 of file css.cc.

References CssPropertyList::print(), CssSelector::print(), props, and selector.

◆ specificity()

int CssRule::specificity ( )

Definition at line 447 of file css.hh.

References spec.

Referenced by CssStyleSheet::apply(), and CssStyleSheet::RuleList::insert().

Member Data Documentation

◆ pos

int CssRule::pos

Definition at line 434 of file css.hh.

Referenced by CssRule(), and position().

◆ props

CssPropertyList* CssRule::props

Definition at line 433 of file css.hh.

Referenced by apply(), CssRule(), isSafe(), print(), and ~CssRule().

◆ selector

CssSelector* CssRule::selector

◆ spec

int CssRule::spec

Definition at line 434 of file css.hh.

Referenced by CssRule(), and specificity().

The documentation for this class was generated from the following files: