about summary refs log tree commit diff stats
path: root/src/css/render.nim
Commit message (Collapse)AuthorAgeFilesLines
* css: resolve units to px before layoutbptato2024-12-161-2/+2
| | | | Lets us skip a couple pointless multiplications/divisions during layout.
* css: CSSComputedValue -> CSSValuebptato2024-12-121-1/+1
| | | | | "Computed" was redundant; other types of values don't have a common type.
* render: apply visibility to inline boxesbptato2024-12-101-21/+23
|
* pager, term: use cell offset with kitty imagesbptato2024-12-031-2/+10
| | | | | | | | Gets rid of rounding errors when positioning images. Theoretically this is possible with Sixel too, but as always, it's ten times as difficult to implement as with Kitty, so I'll leave it for later.
* cssvalues: reduce CSSComputedValue sizebptato2024-11-141-4/+3
| | | | | | | far from perfect, but it's something. (ideally, we should store enums in a bitmap instead of allocating a GC'ed property for each of them.)
* buffer: fix broken gotoAnchor behaviorbptato2024-11-121-5/+6
| | | | | | | | | | | | | | | | | 23beebe6 introduced a regression that broke gotoAnchor. This fixes that, plus a couple other long-standing gotoAnchor bugs: * If no anchor is found, do not dupe the buffer. Desktop browsers still add a history entry, while w3m prints an error. I've copied the latter because it makes more sense as a user, but this will have to be refined for the navigation API at some point. * If the anchor *is* found, then always jump to it, even if it's not visible. This was a limitation of relying on the line array, so now we rely on the box tree instead. (Sooner or later, the former must go anyway.) Also, fix `U' reload not restoring the position (hopefully this time for good).
* layout -> cssbptato2024-11-101-0/+465
as much as I wish it weren't, layout *is* css.