about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* render: actually fix the "extra unnecessary line" bugbptato2025-01-2132-38/+4
| | | | Plus remove addLines, it's no longer very useful.
* render: blend in paintBackgroundbptato2025-01-217-43/+68
| | | | | | | It's an improvement, but the painting order still isn't quite right... Also fixes a bug where paintBackground would unnecessarily append an extra line to the document's end.
* cssvalues: support percentage rgb colors, hsl & hslabptato2025-01-215-44/+154
| | | | hsl is quite popular these days.
* cssvalues: add newer length unitsbptato2025-01-211-18/+36
| | | | I'm not convinced that anybody even knows these exist, but whatever.
* layout: fix division by 0bptato2025-01-211-2/+2
|
* cssvalues: fix rgba() function parsingbptato2025-01-204-5/+10
|
* cascade: support nested variablesbptato2025-01-204-79/+91
| | | | ...and refactor applyValue in the process.
* cascade: collapse StyledNode tree into DOMbptato2025-01-209-534/+317
| | | | | We now compute styles on-demand, which is both more efficient and simpler than the convoluted tree diffing logic we previously used.
* pager: do not alert on failed history write if config dir doesn't existbptato2025-01-201-1/+4
| | | | ref. https://todo.sr.ht/~bptato/chawan/41
* Makefile: fix uninstall for old section-5 pagesbptato2025-01-201-1/+1
|
* container, config.toml: add | commandbptato2025-01-194-0/+26
| | | | | | Particularly useful when debugging minified JS. vi always wraps; the centering behavior is from vim.
* dom: simplify a bitbptato2025-01-191-1/+1
|
* config: expandTilde -> expandPathbptato2025-01-191-2/+2
|
* dom: CSSStyleDeclaration improvementsbptato2025-01-198-22/+72
| | | | Now getComputedStyle works with pseudo-elements too.
* Makefile: fix submodule targetbptato2025-01-191-1/+1
| | | | I didn't intend it to error out :(
* cascade: simplify RuleListMapbptato2025-01-181-42/+31
| | | | it can be a value type again
* dom, stylednode: move more fields, handle pseudo-element getComputedStylebptato2025-01-187-106/+133
|
* Add 'lib/monoucha0/' from commit '33efaee783c2adb20df019a8bc924411c4a97e7f'bptato2025-01-1850-0/+85771
|\ | | | | | | | | | | git-subtree-dir: lib/monoucha0 git-subtree-mainline: b56abad0883c0b4179f9c329a7169bb544fac4a5 git-subtree-split: 33efaee783c2adb20df019a8bc924411c4a97e7f
| * Version 0.9.1bptato2025-01-163-2/+6
| |
| * fromjs: add type information to JSArrayBufferView + some bindingsbptato2025-01-163-1/+21
| |
| * test: update resultsbptato2025-01-161-125/+472
| |
| * test: update optbptato2025-01-141-21/+7
| |
| * Version 0.9.0bptato2025-01-133-2/+24
| |
| * javascript: do not override jsfunc/jsctor error messagebptato2025-01-131-2/+2
| |
| * fromjs: do not accept nil for ref objectbptato2025-01-132-3/+5
| | | | | | | | | | | | | | This means that nullable WebIDL interfaces now must be wrapped in an Option when converted *from* JS. On the toJS side, nothing changes.
| * javascript: type erase dfinbptato2025-01-133-70/+68
| | | | | | | | | | | | | | | | | | It works in refc. It won't work in ARC/ORC, but that's a problem for another time. (FWIW, I think ARC/ORC could be made work by simply adding pointers to the destructors. But it's fully incompatible with refc, and I won't maintain this so long as not even ARC works with Chawan.)
| * javascript: replace old jsgetprop with new onebptato2025-01-132-39/+2
| |
| * javascript: take cstring in getClass, hasClassbptato2025-01-131-3/+3
| |
| * Conform to strict defsbptato2025-01-139-88/+130
| | | | | | | | Breaks compatibility with 1.6.14.
| * optshim: remove valType, optbptato2025-01-132-4/+1
| |
| * javascript: remove $ -> toString conversionbptato2025-01-101-5/+1
| | | | | | | | Undocumented and fairly surprising behavior. Just do it manually.
| * javascript: drop union types and non-JSValue varargsbptato2025-01-102-249/+60
| | | | | | | | Untested and unused since forever.
| * javascript: remove undocumented & broken defineConstsbptato2025-01-011-19/+0
| | | | | | | | | | | | | | I have a mostly working version in Chawan (in src/html/script.nim), but it still has to work around the fact that we define prototypes differently than mainstream browsers. So I won't try to fix it here if I'll have to change what it does *yet again* in the future.
| * Make it work with abiCheckbptato2024-12-291-4/+4
| | | | | | | | | | Nim doesn't distinguish between function pointers and functions, but C does.
| * Fix casingbptato2024-12-292-2/+2
| |
| * Version 0.8.0bptato2024-12-263-3/+6
| |
| * Update to QuickJS-NG 0.8.0bptato2024-12-266-418/+461
| |
| * Version 0.7.2bptato2024-11-253-2/+7
| |
| * javascript: fix refc deinitialization bugsbptato2024-11-258-24/+89
| | | | | | | | | | | | | | | | | | We advertise refc support only, and yet we were testing for orc. Whoops. I'm not 100% sure why the GC_fullCollect is needed in free, but it probably makes sense. Also, I haven't seen any actual bugs related to pointers being collected into seqs, but in theory they are possible. Better safe than sorry.
| * Version 0.7.1bptato2024-11-223-2/+6
| |
| * jspropenumlist: fix wrong allocation sizebptato2024-11-223-2/+4
| |
| * Version 0.7.0bptato2024-11-183-2/+6
| |
| * javascript: complete exotic pragmasbptato2024-11-184-63/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | .jsgetprop is now deprecated. Its replacement, .jsgetownprop, provides the same functionality and more, so that it's now equivalent in power to the QJS API: * instead of JS_NULL, it's JS_UNINITIALIZED that signals "not found" * it allows you to set the property descriptor (for returning get/set functions) Also, .jsgetrealprop was added to wrap get_property. This will be renamed to .jsgetprop in the future.
| * Version 0.6.0bptato2024-11-163-3/+7
| |
| * javascript, jsopaque: get rid of some useless tablesbptato2024-11-164-21/+35
| | | | | | | | these work better as seqs; I was just being lazy...
| * Update to quickjs-ng 0.7.0bptato2024-11-1610-2257/+4224
| | | | | | | | | | Includes a patch to adjust the JS_SetOpaque API to continue supporting opaques on the global object.
| * fromjs: remove leftover debugging codebptato2024-11-161-2/+0
| |
| * Version 0.5.5bptato2024-11-093-2/+6
| |
| * fromjs, quickjs: fix and use JS_FreePropertyEnum APIbptato2024-11-092-4/+2
| |
| * fromjs: fix crash on fromJS with seqbptato2024-11-093-2/+13
| |