diff options
author | bptato <nincsnevem662@gmail.com> | 2024-07-28 00:03:10 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-07-28 00:03:10 +0200 |
commit | 54ed875becbbfaa1a1e86c78592e80f933ebb828 (patch) | |
tree | 855d1cfb1bcdaf9fa913ffda865f0f094ce377c2 /src/layout/box.nim | |
parent | bbcf2540627bf3adfd015e71895640e6b09fa379 (diff) | |
download | chawan-54ed875becbbfaa1a1e86c78592e80f933ebb828.tar.gz |
layout: merge neighboring words
Great performance win on large documents.
Diffstat (limited to 'src/layout/box.nim')
-rw-r--r-- | src/layout/box.nim | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/layout/box.nim b/src/layout/box.nim index e4005a54..9812a9cd 100644 --- a/src/layout/box.nim +++ b/src/layout/box.nim @@ -14,14 +14,12 @@ type Overflow* = array[DimensionType, Span] InlineAtomType* = enum - iatSpacing, iatWord, iatInlineBlock, iatImage + iatWord, iatInlineBlock, iatImage InlineAtom* = ref object offset*: Offset size*: Size case t*: InlineAtomType - of iatSpacing: - discard of iatWord: str*: string of iatInlineBlock: |