about summary refs log tree commit diff stats
path: root/src/layout/box.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-07-28 00:03:10 +0200
committerbptato <nincsnevem662@gmail.com>2024-07-28 00:03:10 +0200
commit54ed875becbbfaa1a1e86c78592e80f933ebb828 (patch)
tree855d1cfb1bcdaf9fa913ffda865f0f094ce377c2 /src/layout/box.nim
parentbbcf2540627bf3adfd015e71895640e6b09fa379 (diff)
downloadchawan-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.nim4
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: