diff options
author | bptato <nincsnevem662@gmail.com> | 2023-08-15 18:35:19 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-08-15 18:35:19 +0200 |
commit | aea27f52335d203f8acfed3f2113ab0e61cdafd5 (patch) | |
tree | ab3ff3cf553e2a548c590bd25408945612686daa /src/css | |
parent | 542800305a01587a1cc7402ee429da6417fc1bb8 (diff) | |
download | chawan-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.nim | 3 | ||||
-rw-r--r-- | src/css/match.nim | 3 | ||||
-rw-r--r-- | src/css/selectorparser.nim | 3 | ||||
-rw-r--r-- | src/css/sheet.nim | 3 | ||||
-rw-r--r-- | src/css/stylednode.nim | 3 |
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 |