Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | layout: do not treat inline padding as spacing | bptato | 2023-07-27 | 1 | -5/+6 | |
| | | | | | So e.g. padding: 1px does not inhibit automatic addition of spaces for inline blocks. | |||||
* | htmlparser: remove stray nil comparison | bptato | 2023-07-27 | 1 | -4/+3 | |
| | ||||||
* | layout: remove unused variables | bptato | 2023-07-27 | 1 | -3/+0 | |
| | ||||||
* | htmlparser: remove nil comparisons for Handle | bptato | 2023-07-27 | 2 | -41/+52 | |
| | | | | This makes it possible to use non-reference types as Handle. | |||||
* | layout: refactor absolute positioning width calc | bptato | 2023-07-27 | 1 | -13/+84 | |
| | | | | Still not perfect, but at least not completely broken. | |||||
* | Add suspend() function (bound to C-z) | bptato | 2023-07-26 | 1 | -0/+5 | |
| | ||||||
* | layout: fix superfluous inline whitespace | bptato | 2023-07-25 | 1 | -1/+3 | |
| | | | | | | | | | | | | | | computeShift now checks if the last inline atom is spacing, and if yes, it does not add more spacing. This fixes rendering of the following document: <span> a </span> <span> b </span> | |||||
* | layout: use nowrap function | bptato | 2023-07-25 | 1 | -1/+1 | |
| | ||||||
* | css: handle unknown tag names correctly | bptato | 2023-07-25 | 3 | -5/+16 | |
| | | | | | | Instead of grouping all of them into TAG_UNKNOWN, match their tag names. To-do: this implementation is not very efficient. | |||||
* | html: include SEARCH tag in parser | bptato | 2023-07-25 | 2 | -5/+7 | |
| | ||||||
* | html: add SEARCH tag | bptato | 2023-07-25 | 1 | -17/+17 | |
| | ||||||
* | layout: fix position: relative sizes | bptato | 2023-07-25 | 1 | -2/+2 | |
| | | | | | Only inherit width from the last positioned element if position: absolute is set. | |||||
* | Add compileMatchRegex | bptato | 2023-07-25 | 2 | -4/+39 | |
| | | | | | | | This makes it so that host = 'example\.org' mandates an exact match, but host = '^example' matches example.org, example.com, etc. (Previously, 'example\.org' would have matched exampleexample.org as well, which was quite counter-intuitive.) | |||||
* | layout: refactor sizing | bptato | 2023-07-25 | 2 | -281/+425 | |
| | | | | | | Factor out the "shrink" variable and the (broken) isWidthSpecified into a SizeConstraint type. This should make box sizing easier to reason about. | |||||
* | mediaquery: better debugging functions | bptato | 2023-07-23 | 1 | -3/+35 | |
| | ||||||
* | css: fix percentage min/max-width values | bptato | 2023-07-23 | 1 | -1/+1 | |
| | ||||||
* | Fix compilation on nim 1.6.10 | bptato | 2023-07-17 | 1 | -2/+3 | |
| | | | | It appears there is a compiler bug we have to work around there. | |||||
* | htmlparser: fix regression | bptato | 2023-07-17 | 1 | -2/+2 | |
| | | | | Fixed unintended variable shadowing introduced during refactoring | |||||
* | Include libunicode header in binding | bptato | 2023-07-15 | 1 | -0/+5 | |
| | ||||||
* | htmlparser: make getTemplateContent optional | bptato | 2023-07-15 | 1 | -3/+4 | |
| | ||||||
* | htmlparser: check required callbacks | bptato | 2023-07-15 | 1 | -0/+13 | |
| | ||||||
* | htmlparser: add parse error handling | bptato | 2023-07-15 | 4 | -281/+437 | |
| | ||||||
* | htmlparser: correct outdated comment | bptato | 2023-07-14 | 1 | -9/+3 | |
| | ||||||
* | decoderstream: refactoring + iso2022jp fixes | bptato | 2023-07-12 | 1 | -115/+138 | |
| | | | | | * Use openArray in decoder functions * Fix iso-2022-jp erroring out in the wrong case | |||||
* | Improve encoding support | bptato | 2023-07-12 | 6 | -150/+246 | |
| | | | | | | | | * Use the output charset in lineedit (as w3m does) * encoder: fix broken UTF-8 encoding, use openArray instead of var seq for input queue * Add RuneStream as an in-memory interface to EncoderStream * Document display-charset config option | |||||
* | decoderstream: remove unused function | bptato | 2023-07-11 | 1 | -9/+0 | |
| | ||||||
* | Buffer search fixes & improvements | bptato | 2023-07-11 | 3 | -53/+82 | |
| | | | | | * Fix race condition in updateReadLineISearch * Disable reshape during isearch | |||||
* | buffer: fix textarea regression | bptato | 2023-07-10 | 1 | -2/+6 | |
| | | | | | Fix bug of not setting focus on clicked text area elements, which would result in the input text being discarded. | |||||
* | htmlparser: fix form association regression | bptato | 2023-07-10 | 2 | -8/+13 | |
| | | | | | | | associateWithForm was checking whether the element was in the same tree as the form, however associateWithForm is called when element is has not been inserted into the tree yet. As a fix, pass the intended parent and perform the check on that. | |||||
* | term: fix cursorGoto without termcap | bptato | 2023-07-10 | 1 | -1/+1 | |
| | ||||||
* | htmlparser: remove more references to dom | bptato | 2023-07-09 | 2 | -13/+34 | |
| | ||||||
* | htmlparser: more Option wrapping, remove dom reference | bptato | 2023-07-09 | 1 | -18/+21 | |
| | ||||||
* | htmlparser: fix fragment case, fix head bug | bptato | 2023-07-09 | 1 | -8/+13 | |
| | | | | Also, wrap head in an Option | |||||
* | htmltokenizer: only yield once | bptato | 2023-07-09 | 1 | -12/+22 | |
| | | | | | Seems to reverse the +200M peakmem during compile introduced by the previous commit. | |||||
* | htmlparser: decouple from DOM | bptato | 2023-07-09 | 8 | -544/+1113 | |
| | | | | | Instead of directly appending nodes to the DOM, use a DOMBuilder interface. | |||||
* | make it compile | bptato | 2023-07-08 | 1 | -8/+7 | |
| | | | | whoops | |||||
* | layout: width-related fixes | bptato | 2023-07-08 | 1 | -34/+38 | |
| | | | | | | | | * Set contentWidthInfinite to false when specified width commands so * Unify applyWidth of block boxes. probably still incorrect, just less so (at least we no longer have two slightly different cases...) This appears to fix some infinite table cell width issues. | |||||
* | Add StyledNode stringifier for debugging | bptato | 2023-07-08 | 1 | -0/+14 | |
| | ||||||
* | Fix toHex weirdness | bptato | 2023-07-07 | 2 | -11/+11 | |
| | ||||||
* | layout: refactor table layout | bptato | 2023-07-07 | 2 | -92/+109 | |
| | | | | Split it into smaller functions. | |||||
* | layout: show [img] instead of image url | bptato | 2023-07-07 | 1 | -1/+1 | |
| | | | | urls can get pretty long | |||||
* | url: fix empty hostnames being accepted | bptato | 2023-07-07 | 1 | -1/+1 | |
| | ||||||
* | Fixes in ipv6 parser and serializer | bptato | 2023-07-07 | 2 | -14/+30 | |
| | ||||||
* | Add separate type for premultiplied color | bptato | 2023-07-07 | 1 | -10/+16 | |
| | ||||||
* | color: replace straight alpha table with bit shifting magic | bptato | 2023-07-06 | 1 | -14/+11 | |
| | | | | | | And save 64k in the process. Yay! (As it turns out, the lookup table was rounding incorrectly anyways in some cases.) | |||||
* | term: fix ANSI color approximation | bptato | 2023-07-06 | 2 | -11/+8 | |
| | | | | Fixes a bug that lead to incorrect color approximation. | |||||
* | select: simplify popCursorPos() | bptato | 2023-07-06 | 1 | -3/+1 | |
| | ||||||
* | decoderstream: fix incorrect Big5 decoding | bptato | 2023-07-06 | 1 | -4/+4 | |
| | ||||||
* | Fix regression in twidth | bptato | 2023-07-06 | 1 | -3/+3 | |
| | ||||||
* | Add popup menu for select element | bptato | 2023-07-05 | 6 | -192/+627 | |
| | | | | | | | Replaces the weird CSS implementation we have had until now with a searchable popup menu similar to that of w3m. (The previous implementation broke on websites that do not expect <select> to expand on click, had no separate search, and was ugly.) |