aboutsummaryrefslogtreecommitdiff
path: root/src/css.hh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-30 20:29:56 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-30 20:29:56 +0100
commita59deba5ca4253f5ad7fe0d01988742c657afd76 (patch)
tree3593c071b9729597e91aa8c75f8dd39b9fa28375 /src/css.hh
parent827b17481f131da837c770ea006302f0283c662e (diff)
add CssSelector::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 87f8f902..0b8018af 100644
--- a/src/css.hh
+++ b/src/css.hh
@@ -223,6 +223,7 @@ class CssSimpleSelector {
CssSimpleSelector ();
~CssSimpleSelector ();
bool match (const DoctreeNode *node);
+ int specificity ();
void print ();
};
@@ -257,6 +258,7 @@ class CssSelector {
};
inline int size () { return selectorList->size (); };
bool match (Doctree *dt, const DoctreeNode *node);
+ int specificity ();
void print ();
inline void ref () { refCount++; }
inline void unref () { if(--refCount == 0) delete this; }