diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-21 20:13:45 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-21 20:13:45 +0100 |
commit | 0bc40aa0f574f25f02c6a1ab4f0e399d41b75655 (patch) | |
tree | f476ee28e3cd11b022c65989eca24067829157af /src/css.hh | |
parent | 9749792de478f44b82f3d4a5f47a740dd82e6421 (diff) |
don't call docTree->top() over and over
Diffstat (limited to 'src/css.hh')
-rw-r--r-- | src/css.hh | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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); }; /** |