about summary refs log tree commit diff stats
path: root/src/layout
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-12-13 13:29:42 +0100
committerbptato <nincsnevem662@gmail.com>2023-12-13 13:29:42 +0100
commitdf40fcdde896f636a05d1e3fe598feb2a816f2b9 (patch)
treecc8ffa2729d5e3b078782047d87bdb9019e349e9 /src/layout
parentab203acf554993d15e37604773f160c84b4d8252 (diff)
downloadchawan-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/layout')
-rw-r--r--src/layout/engine.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index 3219f06d..637285a6 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -8,6 +8,7 @@ import css/values
 import display/winattrs
 import layout/box
 import layout/layoutunit
+import utils/strwidth
 import utils/twtstr
 
 type