diff options
author | bptato <nincsnevem662@gmail.com> | 2023-12-13 13:29:42 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-12-13 13:29:42 +0100 |
commit | df40fcdde896f636a05d1e3fe598feb2a816f2b9 (patch) | |
tree | cc8ffa2729d5e3b078782047d87bdb9019e349e9 /src/render | |
parent | ab203acf554993d15e37604773f160c84b4d8252 (diff) | |
download | chawan-df40fcdde896f636a05d1e3fe598feb2a816f2b9.tar.gz |
break up twtstr somewhat
Avoid computing e.g. charwidth data for http which does not need it at all.
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/renderdocument.nim | 2 | ||||
-rw-r--r-- | src/render/rendertext.nim | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/render/renderdocument.nim b/src/render/renderdocument.nim index 61eb0d72..f1404c6d 100644 --- a/src/render/renderdocument.nim +++ b/src/render/renderdocument.nim @@ -9,7 +9,7 @@ import layout/engine import layout/layoutunit import types/cell import types/color -import utils/twtstr +import utils/strwidth func toFormat(computed: CSSComputedValues): Format = if computed == nil: diff --git a/src/render/rendertext.nim b/src/render/rendertext.nim index 012e01e7..39380ee0 100644 --- a/src/render/rendertext.nim +++ b/src/render/rendertext.nim @@ -2,6 +2,7 @@ import streams import unicode import types/cell +import utils/strwidth import utils/twtstr import chakasu/charset |