aboutsummaryrefslogtreecommitdiff
path: root/src/css.hh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-21 20:13:45 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-21 20:13:45 +0100
commit0bc40aa0f574f25f02c6a1ab4f0e399d41b75655 (patch)
treef476ee28e3cd11b022c65989eca24067829157af /src/css.hh
parent9749792de478f44b82f3d4a5f47a740dd82e6421 (diff)
don't call docTree->top() over and over
Diffstat (limited to 'src/css.hh')
-rw-r--r--src/css.hh8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/css.hh b/src/css.hh
index 6b199833..122215f7 100644
--- a/src/css.hh
+++ b/src/css.hh
@@ -239,7 +239,7 @@ class CssSelector {
return &selectorList->getRef (selectorList->size () - 1)->selector;
};
inline int size () { return selectorList->size (); };
- bool match (Doctree *dt);
+ bool match (Doctree *dt, const DoctreeNode *node);
void print ();
inline void ref () { refCount++; }
inline void unref () { if(--refCount == 0) delete this; }
@@ -259,7 +259,8 @@ class CssRule {
CssRule (CssSelector *selector, CssPropertyList *props);
~CssRule ();
- void apply (CssPropertyList *props, Doctree *docTree);
+ void apply (CssPropertyList *props,
+ Doctree *docTree, const DoctreeNode *node);
void print ();
};
@@ -301,7 +302,8 @@ class CssStyleSheet {
~CssStyleSheet();
void addRule (CssRule *rule);
void addRule (CssSelector *selector, CssPropertyList *props);
- void apply (CssPropertyList *props, Doctree *docTree);
+ void apply (CssPropertyList *props,
+ Doctree *docTree, const DoctreeNode *node);
};
/**