about summary refs log tree commit diff stats
path: root/src/utils/charcategory.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-25 15:05:52 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-25 15:05:52 +0100
commita3ab70686e8c890e2dbd86572f06f5c7ba202fb9 (patch)
treefd738bef524b9285296e7900e560d92c843993db /src/utils/charcategory.nim
parent407ad7a1f04893a0598b2ea02e7d2eb118d1fa32 (diff)
downloadchawan-a3ab70686e8c890e2dbd86572f06f5c7ba202fb9.tar.gz
layout: rework inline box area model
Specifying the background area as three LayoutUnit pairs sounds clever,
but breaks down for text-align: center.

* store line Y offset in LineBox - this is necessary to pass down areas
  we need to paint
* refactor addHorizontalLine loop; remove mystery "If necessary, update ictx's
  width" line that used to be labeled "TODO this seems meaningless" and indeed
  seems meaningless now (I am prepared to deeply regret this later)
* replace broken & convoluted startOffset/endOffset/size with a simple
  seq of offsets + sizes
Diffstat (limited to 'src/utils/charcategory.nim')
0 files changed, 0 insertions, 0 deletions