summaryrefslogtreecommitdiff
path: root/src/css.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-30 22:27:26 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-30 22:27:26 +0100
commit1b96214bbf9f88a94f7a7cd6d2b105488a0baf36 (patch)
treef950dca4c97aafcfe4123646f67607030a77e73e /src/css.cc
parente5b07eee5af88f1048085e840c89eaa9eb6d11ea (diff)
comment
Diffstat (limited to 'src/css.cc')
-rw-r--r--src/css.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/css.cc b/src/css.cc
index 6c9bb796..e10aedb9 100644
--- a/src/css.cc
+++ b/src/css.cc
@@ -235,6 +235,12 @@ void CssRule::print () {
props->print ();
}
+/*
+ * \brief insert rule with increasing specificity
+ * If two rules have the same specificity, the one that was added later
+ * will be added behind the others.
+ * This gives later added rules more weight.
+ */
void CssStyleSheet::RuleList::insert (CssRule *rule) {
increase ();
int i = size () - 1;