diff options
| author | bptato <nincsnevem662@gmail.com> | 2025-02-12 21:15:38 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2025-02-12 23:27:34 +0100 |
| commit | 8f3c96035f22a16459ad7c8996c280a015f0d2f5 (patch) | |
| tree | 183424ee7b20eb53b313d0ff76885e7e3acdc0d5 /src/server/buffer.nim | |
| parent | 76e2b68af52bf51854388890172bc0b2f2aaf36b (diff) | |
| download | chawan-8f3c96035f22a16459ad7c8996c280a015f0d2f5.tar.gz | |
layout: separate out tree construction logic
For now, the skeleton remains in layout. Eventually it should be
lazily constructed during the actual layout pass (thereby making layout
"single-pass" (sometimes :p))
The end goal is to do it all in styledNode.children, so that caching can
be as simple as "next box = find next matching cached box ?? make new".
This does mean that the internal structure of cached boxes will always
have to be reconstructed, but I don't see a better way. (I suppose it
still remains possible to optimize out the unnecessary layout pass when
only a repaint is needed (e.g. color change) by modifying computed
values in-place.)
Diffstat (limited to 'src/server/buffer.nim')
| -rw-r--r-- | src/server/buffer.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/buffer.nim b/src/server/buffer.nim index f2e1d560..d20b73fe 100644 --- a/src/server/buffer.nim +++ b/src/server/buffer.nim @@ -13,6 +13,7 @@ import chame/tags import config/config import css/box import css/cascade +import css/csstree import css/layout import css/lunit import css/render |