summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-31 09:53:48 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-31 09:53:48 +0100
commit1eb7f63a69af93a0b41e5f05beb5ebc5b1279cc9 (patch)
tree1190b6685fd5019d0aa7a221ba95c34abc226652 /src
parent7ea33b9c2e22726413fce2a5bd55d93f9f5482f2 (diff)
comment
Diffstat (limited to 'src')
-rw-r--r--src/css.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/css.cc b/src/css.cc
index e10aedb9..e9838ce7 100644
--- a/src/css.cc
+++ b/src/css.cc
@@ -323,6 +323,8 @@ void CssStyleSheet::apply (CssPropertyList *props,
ruleList[2] = elementTable[docTree->top ()->element];
ruleList[3] = anyTable;
+ // Apply potentially matching rules from ruleList[0-3] with
+ // ascending specificity. Each ruleList is sorted already.
while (true) {
int minSpec = 1 << 30;
int minSpecIndex = -1;