about summary refs log tree commit diff stats
path: root/src/css
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-10-19 11:55:48 +0200
committerbptato <nincsnevem662@gmail.com>2022-10-19 11:55:48 +0200
commite0c1d414a196a0b064ff74e8290092e5dbd496be (patch)
treeec0e54700aeb65eee0f66e636be3cd8b1ea2cc68 /src/css
parent0c8ac29f4f99a67c3ceec0e25c04de4afc7e7cee (diff)
downloadchawan-e0c1d414a196a0b064ff74e8290092e5dbd496be.tar.gz
Make it compile...
Diffstat (limited to 'src/css')
-rw-r--r--src/css/cascade.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/css/cascade.nim b/src/css/cascade.nim
index 73ec093b..200a83af 100644
--- a/src/css/cascade.nim
+++ b/src/css/cascade.nim
@@ -42,7 +42,7 @@ func applies(mq: MediaQuery): bool =
     of FEATURE_PREFERS_COLOR_SCHEME:
       return mq.feature.b
 
-func applies(mqlist: MediaQueryList): bool =
+func applies*(mqlist: MediaQueryList): bool =
   for mq in mqlist:
     if mq.applies():
       return true
@@ -246,7 +246,7 @@ proc applyRules(document: Document, ua, user: CSSStylesheet, cachedTree: StyledN
       # stylesheets
       let sheets = elem.sheets()
       if sheets.len > 0:
-	for sheet in sheets:
+        for sheet in sheets:
           author.add(sheet.applyMediaQuery())
         lenstack.add(sheets.len)
         styledStack.add((nil, nil, PSEUDO_NONE, nil))