diff options
| author | bptato <nincsnevem662@gmail.com> | 2022-11-22 20:15:25 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2022-11-22 20:15:25 +0100 |
| commit | 1da72ab345a13ee61b1f06b30fdc6c57c97bf524 (patch) | |
| tree | 9a32e8d481c1f1feace73bc25c0b46ca4f102771 /src/render | |
| parent | 787bceb8fd7e284699223bd060100deb6f76c066 (diff) | |
| download | chawan-1da72ab345a13ee61b1f06b30fdc6c57c97bf524.tar.gz | |
Table fixes wip
Diffstat (limited to 'src/render')
| -rw-r--r-- | src/render/renderdocument.nim | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/render/renderdocument.nim b/src/render/renderdocument.nim index 06901ba6..e1342dbb 100644 --- a/src/render/renderdocument.nim +++ b/src/render/renderdocument.nim @@ -261,15 +261,6 @@ proc renderInlineContext(grid: var FlexibleGrid, ctx: InlineContext, x, y: int, let spacing = InlineSpacing(atom) grid.setSpacing(spacing, x, y, window) -proc renderTable(grid: var FlexibleGrid, ctx: TableBox, x, y: int, window: WindowAttributes) = - for row in ctx.nested: - assert row.computed{"display"} == DISPLAY_TABLE_ROW - for cell in row.nested: - let x = x + row.offset.x - let y = y + row.offset.y - assert cell.computed{"display"} == DISPLAY_TABLE_CELL - grid.renderBlockContext(cell, x, y, window) - proc renderBlockContext(grid: var FlexibleGrid, ctx: BlockBox, x, y: int, window: WindowAttributes) = var stack = newSeqOfCap[(BlockBox, int, int)](100) stack.add((ctx, x, y)) @@ -290,8 +281,6 @@ proc renderBlockContext(grid: var FlexibleGrid, ctx: BlockBox, x, y: int, window if ctx.inline != nil: assert ctx.nested.len == 0 grid.renderInlineContext(ctx.inline, x, y, window) - elif ctx.computed{"display"} == DISPLAY_TABLE: #TODO INLINE_TABLE - grid.renderTable(TableBox(ctx), x, y, window) else: for i in countdown(ctx.nested.high, 0): stack.add((ctx.nested[i], x, y)) |