about summary refs log tree commit diff stats
path: root/src/io
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2021-12-17 23:20:55 +0100
committerbptato <nincsnevem662@gmail.com>2021-12-17 23:20:55 +0100
commitf8116499bb450928ecf737fa179ec371ccbb5dae (patch)
tree2c0013593c054e5e18f6b96cac22fe6da40443da /src/io
parentef4604ba8f494a2997a744a0b04732dc686c46ea (diff)
downloadchawan-f8116499bb450928ecf737fa179ec371ccbb5dae.tar.gz
Move... things
Diffstat (limited to 'src/io')
-rw-r--r--src/io/buffer.nim7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/io/buffer.nim b/src/io/buffer.nim
index 4f1f4960..d7a2b092 100644
--- a/src/io/buffer.nim
+++ b/src/io/buffer.nim
@@ -743,11 +743,8 @@ proc renderDocument*(buffer: Buffer) =
   stack.add(buffer.rootbox)
   while stack.len > 0:
     let box = stack.pop()
-    if box of CSSInlineBox:
-      let inline = CSSInlineBox(box)
-      #eprint "NEW BOX", inline.context.conty
-      for line in inline.content:
-        #eprint line
+    if box of CSSBlockBox:
+      for line in box.icontext.rows:
         buffer.setRowBox(line)
 
     var i = box.children.len - 1