about summary refs log tree commit diff stats
path: root/src/css
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-26 22:50:36 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-26 22:53:27 +0100
commit9bc2977412ebc1e1cec67a1aa0449c8cca8e36a9 (patch)
treed43b176a12da9b03748b0fd2185139dacf8fa532 /src/css
parent829e358417cdb38ec7cfd77ea763a35e6c2d6132 (diff)
downloadchawan-9bc2977412ebc1e1cec67a1aa0449c8cca8e36a9.tar.gz
Implement DOMTokenList, item functions for collections
Diffstat (limited to 'src/css')
-rw-r--r--src/css/cascade.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css/cascade.nim b/src/css/cascade.nim
index 35732e60..1207444d 100644
--- a/src/css/cascade.nim
+++ b/src/css/cascade.nim
@@ -63,7 +63,7 @@ proc calcRule(tosorts: var ToSorts, styledNode: StyledNode, rule: CSSRuleDef) =
 func calcRules(styledNode: StyledNode, sheet: CSSStylesheet): DeclarationList =
   var tosorts: ToSorts
   let elem = Element(styledNode.node)
-  for rule in sheet.gen_rules(elem.tagType, elem.id, elem.classList):
+  for rule in sheet.gen_rules(elem.tagType, elem.id, elem.classList.toks):
     tosorts.calcRule(styledNode, rule)
 
   for i in PseudoElem: