about summary refs log tree commit diff stats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* formdata: fix FormData constructor, append filename handlingbptato2025-02-052-21/+23
| | | | + some strict defs
* buffer: remove rfd, fdbptato2025-02-052-58/+55
| | | | | | maybe InputData should just be a Response (really it should be a ReadableStream - if we had that...)
* cssparser: fix an infinite loopbptato2025-02-051-23/+9
| | | | | | | startsWithNumber was a poorly copied version of the standard algorithm, which, as it turns out, is largely redundant. So I removed most of it and inlined the rest.
* layout: round out small list-item margins and paddingbptato2025-02-041-8/+16
| | | | | They can be especially distracting when the rounding error fluctuates between items.
* cssparser: fix parsing of consequitive commentsbptato2025-02-041-1/+1
|
* cascade, ua.css: use ansi red, replace option with anonymous StyledNodesbptato2025-02-042-41/+74
| | | | Now select[multiple] options have the same coloring as w3m.
* layout: merge addOuterBlock with layoutBlock, refactorbptato2025-02-041-478/+571
| | | | | | | | | | | Having to initLine after every block hurts... I've added a mechanism to at least eliminate cleared floats, but I wish we just didn't init the line :/ (I tried making it lazy, but I couldn't get it to work elegantly.) I've also added some comments about flow, and moved around code so that related layouts are mostly in the same place.
* promise: fix leakbptato2025-02-041-0/+2
|
* dom: fix @import processing orderbptato2025-02-031-14/+31
| | | | Not only was it wrong until now, it was also non-deterministic...
* dom, event: stub UIEvent, MouseEvent; accept customevent in createEventbptato2025-02-033-5/+23
|
* dom: expose activeElementbptato2025-02-031-1/+1
|
* buffer: fire change event on selection etcbptato2025-02-033-0/+20
|
* buffer: fix evalJSURL angle bracket placementbptato2025-02-031-2/+2
|
* dom: reflect iframe src, namebptato2025-02-031-2/+2
|
* lunit: fix negative roundingbptato2025-02-031-0/+2
|
* layout: eliminate InlineAtombptato2025-02-033-225/+230
| | | | | | | | | * For boxes, we now use the box in InlineBox. * For images, wrap bmp in an InlineImage type that stores offset + size. * For text, wrap strings into TextRun objects (an offset + a string). (Ideally, TextRuns shouldn't copy at all, but that's a problem for another time.)
* layout: inline background fixes & simplificationbptato2025-02-031-132/+67
| | | | | Eliminates two superfluous line box alignment passes, and fixes some vertical-align bugs.
* layout: fix list item layoutbptato2025-02-031-14/+6
| | | | The content should clear.
* dom: fire load event on image loadbptato2025-02-031-0/+3
|
* dom: add blur()bptato2025-02-021-0/+6
|
* javascript: derive ctor functions from parent ctor functionsbptato2025-02-021-3/+2
| | | | no idea why JS_NewCFunction3 is not public...
* term: simplify/optimizebptato2025-02-021-38/+34
| | | | by storing capabilities as strings instead of cstrings.
* dom: load inline module scripts toobptato2025-02-012-6/+22
|
* dom: stub scrollIntoViewbptato2025-02-011-0/+3
|
* dom: handle exceptions in module scriptbptato2025-02-012-27/+80
|
* dom, layout: fix empty canvas cache idsbptato2025-02-016-9/+20
| | | | ok now I understand why I made shareCachedItem crash...
* dom: add title setter, unify newText usebptato2025-02-013-6/+20
| | | | createTextNode is redundant...
* response: stub constructorbptato2025-02-012-3/+16
|
* dom: basic module supportbptato2025-02-014-48/+97
| | | | probably breaks with TLA
* loader: do not crash on invalid shareCachedItembptato2025-01-311-3/+4
| | | | | | | It could be legitimate. (Although I found it in a case where it likely isn't legitimate. But that's another question...)
* eprint: add fprintf wrapperbptato2025-01-311-0/+3
| | | | useful in situations where allocations change program behavior
* sheet: fix a hashing bugbptato2025-01-301-1/+1
|
* layout: fix absolute sizing order with floatsbptato2025-01-301-3/+9
| | | | | Also removed the redundant pushPositioned/popPositioned calls in popPositioned.
* buffer: drop pipe, pipe2, passFd privilegesbptato2025-01-305-42/+85
| | | | | All uses of these could be delegated to other processes with more privileges.
* about: move to loaderbptato2025-01-302-6/+14
| | | | | This means we can now use about:downloads for downloads. Plus it shaves off some ks from the distribution.
* mediaquery: fix some parser bugsbptato2025-01-301-9/+8
| | | | | | <media-condition-without-or> works correctly once again. ref. https://todo.sr.ht/~bptato/chawan/46
* render: fix OOB panic with scroll container outside the canvasbptato2025-01-291-1/+1
| | | | | clipBox must not be allowed to start outside the canvas, or paintBackground will happily try to setTextStr in a negative position.
* pager: fix gotoAnchor on buffers that were redirectedbptato2025-01-291-3/+4
| | | | | Redirection no longer preserves the previous cursor position, so gotoAnchor is now allowed to override it.
* lineedit: add missing nil check to nextHist, prevent empty entries in submitbptato2025-01-291-12/+9
| | | | | | | | | And clean up the function, while we're at it. ref. https://todo.sr.ht/~bptato/chawan/45 (The submit bug is unrelated, just something I discovered while testing nextHist & prevHist.)
* container: fix getSelectionText with no parametersbptato2025-01-291-7/+3
|
* event: fix some refcounting bugsbptato2025-01-282-5/+6
|
* sandbox: fix compilation without sandboxingbptato2025-01-281-1/+1
|
* layout: fix flow roots in inline boxes not respecting floatsbptato2025-01-281-104/+92
| | | | Also, some more work on the unification of inline & block layouts.
* layout: fix some float margin resolution bugsbptato2025-01-281-34/+21
|
* loader: fix missing newline in downloadsbptato2025-01-281-3/+3
|
* cascade: fix variable inheritancebptato2025-01-281-11/+16
|
* layout: unify InlineContext with FlowStatebptato2025-01-271-547/+538
|
* cascade: reuse input value when possiblebptato2025-01-273-27/+39
|
* layout: remove obsolete comment, improve struct packingbptato2025-01-261-12/+8
|
* main: add version checkbptato2025-01-261-0/+4
| | | | ref. https://todo.sr.ht/~bptato/chawan/44