diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/css.cc | 1 | ||||
-rw-r--r-- | src/css.hh | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -218,6 +218,7 @@ CssRule::CssRule (CssSelector *selector, CssPropertyList *props) { this->selector->ref (); this->props = props; this->props->ref (); + spec = selector->specificity (); }; CssRule::~CssRule () { @@ -271,6 +271,7 @@ class CssSelector { class CssRule { private: CssPropertyList *props; + int spec; public: CssSelector *selector; @@ -280,6 +281,7 @@ class CssRule { void apply (CssPropertyList *props, Doctree *docTree, const DoctreeNode *node); + inline int specificity () { return spec; }; void print (); }; |