about summary refs log tree commit diff stats
path: root/src/layout
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2021-12-23 15:17:37 +0100
committerbptato <nincsnevem662@gmail.com>2021-12-23 15:19:33 +0100
commiteb16da9fdff2d483c9143a4caea641e021a9e3af (patch)
treee96d0da20325788a53e61f3b4578ee26452efd38 /src/layout
parent7c5241b8dc4c59e602976a80740281b5673ac65e (diff)
downloadchawan-eb16da9fdff2d483c9143a4caea641e021a9e3af.tar.gz
Refactor buffer rendering procedures
Diffstat (limited to 'src/layout')
-rw-r--r--src/layout/engine.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index 42067ace..bea3371d 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -496,3 +496,8 @@ proc alignBoxes*(document: Document, term: TermAttributes): CSSBox =
   state.nodes.add(document.root)
   state.processElemChildren(rootbox, document.root)
   return rootbox
+
+proc alignBoxes2*(document: Document, term: TermAttributes): CSSBlockBox =
+  result = CSSBlockBox()
+  result.bcontext = BlockContext()
+  result.bcontext.content.add(CSSInlineBox())