diff options
author | bptato <nincsnevem662@gmail.com> | 2024-04-15 12:19:34 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-04-15 12:19:34 +0200 |
commit | ad368735ed9e78f5f4e7ed73a5e3cf8d19ce055b (patch) | |
tree | 0c6ca2999dd85c85867165f50bdf6fc49a93aca3 /src/layout/renderdocument.nim | |
parent | b0b3d6c0b9e04c6679c57bc9029268d30a6bd269 (diff) | |
download | chawan-ad368735ed9e78f5f4e7ed73a5e3cf8d19ce055b.tar.gz |
layout: remove ListItemBox, handle inline-flex correctly
This allows us to unify BlockBox instantiation and block-level inner layout calls.
Diffstat (limited to 'src/layout/renderdocument.nim')
-rw-r--r-- | src/layout/renderdocument.nim | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/layout/renderdocument.nim b/src/layout/renderdocument.nim index 06a6992a..7227cbfe 100644 --- a/src/layout/renderdocument.nim +++ b/src/layout/renderdocument.nim @@ -431,16 +431,6 @@ proc renderBlockBox(grid: var FlexibleGrid; state: var RenderState; let y = toInt(offset.y div state.attrs.ppl) if y >= 0 and x + w >= 0: grid.setText(s, x, y, box.computed.toFormat(), box.node) - - if box of ListItemBox: - let box = ListItemBox(box) - if box.marker != nil: - let offset = Offset( - x: offset.x - box.marker.size.w, - y: offset.y - ) - grid.renderRootInlineFragment(state, box.marker, offset) - if box.inline != nil: assert box.nested.len == 0 if box.computed{"visibility"} == VISIBILITY_VISIBLE: |