diff options
| author | bptato <nincsnevem662@gmail.com> | 2025-01-16 20:20:03 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2025-01-16 20:20:03 +0100 |
| commit | 9c03cdd883e4fafabddfa355cdaf675d56596b0c (patch) | |
| tree | df22b51e735dd5e478f8d7af804386c9dab6af36 /src/css/box.nim | |
| parent | 37bbe760b9b7c9c6aee8323c7766574a7ef55389 (diff) | |
| download | chawan-9c03cdd883e4fafabddfa355cdaf675d56596b0c.tar.gz | |
css: reduce StyledNode use
Eventually the tree should be collapsed into the DOM, and StyledNode
should be created on the stack.
Diffstat (limited to 'src/css/box.nim')
| -rw-r--r-- | src/css/box.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/css/box.nim b/src/css/box.nim index c161316a..37d9a2d3 100644 --- a/src/css/box.nim +++ b/src/css/box.nim @@ -1,6 +1,6 @@ import css/cssvalues import css/lunit -import css/stylednode +import html/dom import types/bitmap type @@ -58,13 +58,13 @@ type state*: InlineBoxState render*: BoxRenderState computed*: CSSValues - node*: StyledNode + node*: Element splitType*: set[SplitType] case t*: InlineBoxType of ibtParent: children*: seq[InlineBox] of ibtText: - text*: StyledNode # note: this has no parent. + text*: CharacterData # note: this has no parent. of ibtNewline: discard of ibtBitmap: @@ -112,7 +112,7 @@ type state*: BoxLayoutState # layout output -> render input render*: BoxRenderState # render output computed*: CSSValues - node*: StyledNode + node*: Element inline*: InlineBox children*: seq[BlockBox] |