aboutsummaryrefslogtreecommitdiff
path: root/src/css.hh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-30 20:32:20 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-30 20:32:20 +0100
commit05581a769d934cf6231cd112c917ddde949354b4 (patch)
treeb9b915a689fee809f960a01380b5b75b7a1ff612 /src/css.hh
parenta59deba5ca4253f5ad7fe0d01988742c657afd76 (diff)
add CssRule::specificity
Diffstat (limited to 'src/css.hh')
-rw-r--r--src/css.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/css.hh b/src/css.hh
index 0b8018af..b299adab 100644
--- a/src/css.hh
+++ b/src/css.hh
@@ -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 ();
};