aboutsummaryrefslogtreecommitdiff
path: root/src/css.hh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2014-02-16 00:29:37 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2014-02-16 00:29:37 +0100
commitfb5cbcc5d4b4528728140783ab9bf4d39484a739 (patch)
tree5cd489d559b29fa9c93f699f052031972f65accc /src/css.hh
parent950e73503f41ab65396271d02e0331b85f302b29 (diff)
css: mark CssStyleSheet::apply() as const
Diffstat (limited to 'src/css.hh')
-rw-r--r--src/css.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/css.hh b/src/css.hh
index c7398559..68abbb90 100644
--- a/src/css.hh
+++ b/src/css.hh
@@ -435,7 +435,7 @@ class CssRule {
~CssRule ();
void apply (CssPropertyList *props, Doctree *docTree,
- const DoctreeNode *node, MatchCache *matchCache);
+ const DoctreeNode *node, MatchCache *matchCache) const;
inline bool isSafe () {
return !selector->checksPseudoClass () || props->isSafe ();
};
@@ -490,7 +490,7 @@ class CssStyleSheet {
CssStyleSheet () { matchCacheOffset = 0; }
void addRule (CssRule *rule);
void apply (CssPropertyList *props, Doctree *docTree,
- const DoctreeNode *node, MatchCache *matchCache);
+ const DoctreeNode *node, MatchCache *matchCache) const;
};
/**