diff options
author | bptato <nincsnevem662@gmail.com> | 2024-07-03 17:25:51 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-07-03 17:34:44 +0200 |
commit | 73c6bf9a5bf1e72e8cc2f8792fdb926d66c069ea (patch) | |
tree | 16d06deef991b7d67e9aca1c084b68609bf82e68 /src/layout/box.nim | |
parent | fb68da21497d5bda9057afaf34947258f8c425cb (diff) | |
download | chawan-73c6bf9a5bf1e72e8cc2f8792fdb926d66c069ea.tar.gz |
layout: reduce copies
Text data is no longer stored separately in InlineFragments; instead, we now include refs to StyledNodes.
Diffstat (limited to 'src/layout/box.nim')
-rw-r--r-- | src/layout/box.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/box.nim b/src/layout/box.nim index 4be02553..e4005a54 100644 --- a/src/layout/box.nim +++ b/src/layout/box.nim @@ -71,7 +71,7 @@ type of iftParent: children*: seq[InlineFragment] of iftText: - text*: string + text*: StyledNode # note: this has no parent. of iftNewline: discard of iftBitmap: |