summaryrefslogtreecommitdiff
path: root/src/css.cc
diff options
context:
space:
mode:
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;