about summary refs log tree commit diff stats
path: root/src/css
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-01 00:02:44 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-01 00:04:50 +0100
commitef767b8cc87ef82b7645c3cd1d3faa979723e786 (patch)
treefadf81cad6c1b96a8311be88ec9fe4f928075ce9 /src/css
parentafafcaf1047f721c8d061d883329d0e556326511 (diff)
downloadchawan-ef767b8cc87ef82b7645c3cd1d3faa979723e786.tar.gz
css/values: assign to the correct variable
Diffstat (limited to 'src/css')
-rw-r--r--src/css/values.nim12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/css/values.nim b/src/css/values.nim
index 41fe3f27..88a5df34 100644
--- a/src/css/values.nim
+++ b/src/css/values.nim
@@ -1412,18 +1412,18 @@ proc getComputedValues0(res: var seq[CSSComputedEntry], d: CSSDeclaration):
       res.add((PROPERTY_BACKGROUND_IMAGE, bgimageval, global))
   of SHORTHAND_LIST_STYLE:
     let global = cssGlobal(d)
-    var positionval = getDefault(PROPERTY_LIST_STYLE_POSITION)
-    var typeval = getDefault(PROPERTY_LIST_STYLE_TYPE)
+    var positionVal = getDefault(PROPERTY_LIST_STYLE_POSITION)
+    var typeVal = getDefault(PROPERTY_LIST_STYLE_TYPE)
     var valid = true
     if global == VALUE_NOGLOBAL:
       for tok in d.value:
         if (let r = cssListStylePosition(tok); r.isOk):
-          positionval = CSSComputedValue(
+          positionVal = CSSComputedValue(
             v: VALUE_LIST_STYLE_POSITION,
             liststyleposition: r.get
           )
         elif (let r = cssListStyleType(tok); r.isOk):
-          positionval = CSSComputedValue(
+          typeVal = CSSComputedValue(
             v: VALUE_LIST_STYLE_TYPE,
             liststyletype: r.get
           )
@@ -1432,8 +1432,8 @@ proc getComputedValues0(res: var seq[CSSComputedEntry], d: CSSDeclaration):
           #valid = false
           discard
     if valid:
-      res.add((PROPERTY_LIST_STYLE_TYPE, positionval, global))
-      res.add((PROPERTY_LIST_STYLE_POSITION, typeval, global))
+      res.add((PROPERTY_LIST_STYLE_POSITION, positionVal, global))
+      res.add((PROPERTY_LIST_STYLE_TYPE, typeVal, global))
   return ok()
 
 proc getComputedValues(d: CSSDeclaration): seq[CSSComputedEntry] =