diff options
author | bptato <nincsnevem662@gmail.com> | 2021-12-23 15:17:37 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2021-12-23 15:19:33 +0100 |
commit | eb16da9fdff2d483c9143a4caea641e021a9e3af (patch) | |
tree | e96d0da20325788a53e61f3b4578ee26452efd38 /src/layout | |
parent | 7c5241b8dc4c59e602976a80740281b5673ac65e (diff) | |
download | chawan-eb16da9fdff2d483c9143a4caea641e021a9e3af.tar.gz |
Refactor buffer rendering procedures
Diffstat (limited to 'src/layout')
-rw-r--r-- | src/layout/engine.nim | 5 |
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()) |