about summary refs log tree commit diff stats
path: root/src/css
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-08-15 18:35:19 +0200
committerbptato <nincsnevem662@gmail.com>2023-08-15 18:35:19 +0200
commitaea27f52335d203f8acfed3f2113ab0e61cdafd5 (patch)
treeab3ff3cf553e2a548c590bd25408945612686daa /src/css
parent542800305a01587a1cc7402ee429da6417fc1bb8 (diff)
downloadchawan-aea27f52335d203f8acfed3f2113ab0e61cdafd5.tar.gz
Move HTML parsing into Chame
Operation "modularize Chawan somewhat" part 2
Diffstat (limited to 'src/css')
-rw-r--r--src/css/cascade.nim3
-rw-r--r--src/css/match.nim3
-rw-r--r--src/css/selectorparser.nim3
-rw-r--r--src/css/sheet.nim3
-rw-r--r--src/css/stylednode.nim3
5 files changed, 10 insertions, 5 deletions
diff --git a/src/css/cascade.nim b/src/css/cascade.nim
index 1c711dfb..53eff5cf 100644
--- a/src/css/cascade.nim
+++ b/src/css/cascade.nim
@@ -11,10 +11,11 @@ import css/sheet
 import css/stylednode
 import css/values
 import html/dom
-import html/tags
 import layout/layoutunit
 import types/color
 
+import chame/tags
+
 type
   DeclarationList* = array[PseudoElem, seq[CSSDeclaration]]
 
diff --git a/src/css/match.nim b/src/css/match.nim
index 810cdbe4..e8a693eb 100644
--- a/src/css/match.nim
+++ b/src/css/match.nim
@@ -7,7 +7,8 @@ import css/cssparser
 import css/selectorparser
 import css/stylednode
 import html/dom
-import html/tags
+
+import chame/tags
 
 func attrSelectorMatches(elem: Element, sel: Selector): bool =
   case sel.rel
diff --git a/src/css/selectorparser.nim b/src/css/selectorparser.nim
index 57532ca3..c8144ffb 100644
--- a/src/css/selectorparser.nim
+++ b/src/css/selectorparser.nim
@@ -4,7 +4,8 @@ import strutils
 import unicode
 
 import css/cssparser
-import html/tags
+
+import chame/tags
 
 type
   SelectorType* = enum
diff --git a/src/css/sheet.nim b/src/css/sheet.nim
index d0d03cb0..1f68816a 100644
--- a/src/css/sheet.nim
+++ b/src/css/sheet.nim
@@ -4,7 +4,8 @@ import tables
 import css/mediaquery
 import css/cssparser
 import css/selectorparser
-import html/tags
+
+import chame/tags
 
 type
   CSSRuleBase* = ref object of RootObj
diff --git a/src/css/stylednode.nim b/src/css/stylednode.nim
index c9358b90..1b99773a 100644
--- a/src/css/stylednode.nim
+++ b/src/css/stylednode.nim
@@ -1,7 +1,8 @@
 import css/selectorparser
 import css/values
 import html/dom
-import html/tags
+
+import chame/tags
 
 # Container to hold a style and a node.
 # Pseudo-elements are implemented using StyledNode objects without nodes. Input