about summary refs log tree commit diff stats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* dom: fix hasChildbptato2023-07-271-1/+1
| | | | Return true instead of false when a node with nodeType was found.
* layout: remove incorrect commentbptato2023-07-271-2/+0
|
* htmlparser: fix <th> not closing table cellsbptato2023-07-271-1/+1
| | | | | <th> should close table cells, but was missing from the table cell closing list for some reason.
* layout: distinguish padding from spacingbptato2023-07-272-5/+23
| | | | | Re-consideration of 1e0506adb: we do need to explicitly specify padding after all, so the rendering engine knows of it too.
* layout: fix incorrect parenthesesbptato2023-07-271-1/+1
| | | | | | In the tab width case, only whitespacenum was being divided instead of charwidth + whitespacenum, which resulted in an exponential growth of both charwidth and whitespacenum.
* layout: do not treat inline padding as spacingbptato2023-07-271-5/+6
| | | | | So e.g. padding: 1px does not inhibit automatic addition of spaces for inline blocks.
* htmlparser: remove stray nil comparisonbptato2023-07-271-4/+3
|
* layout: remove unused variablesbptato2023-07-271-3/+0
|
* htmlparser: remove nil comparisons for Handlebptato2023-07-272-41/+52
| | | | This makes it possible to use non-reference types as Handle.
* layout: refactor absolute positioning width calcbptato2023-07-271-13/+84
| | | | Still not perfect, but at least not completely broken.
* Add suspend() function (bound to C-z)bptato2023-07-261-0/+5
|
* layout: fix superfluous inline whitespacebptato2023-07-251-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 functionbptato2023-07-251-1/+1
|
* css: handle unknown tag names correctlybptato2023-07-253-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 parserbptato2023-07-252-5/+7
|
* html: add SEARCH tagbptato2023-07-251-17/+17
|
* layout: fix position: relative sizesbptato2023-07-251-2/+2
| | | | | Only inherit width from the last positioned element if position: absolute is set.
* Add compileMatchRegexbptato2023-07-252-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 sizingbptato2023-07-252-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 functionsbptato2023-07-231-3/+35
|
* css: fix percentage min/max-width valuesbptato2023-07-231-1/+1
|
* Fix compilation on nim 1.6.10bptato2023-07-171-2/+3
| | | | It appears there is a compiler bug we have to work around there.
* htmlparser: fix regressionbptato2023-07-171-2/+2
| | | | Fixed unintended variable shadowing introduced during refactoring
* Include libunicode header in bindingbptato2023-07-151-0/+5
|
* htmlparser: make getTemplateContent optionalbptato2023-07-151-3/+4
|
* htmlparser: check required callbacksbptato2023-07-151-0/+13
|
* htmlparser: add parse error handlingbptato2023-07-154-281/+437
|
* htmlparser: correct outdated commentbptato2023-07-141-9/+3
|
* decoderstream: refactoring + iso2022jp fixesbptato2023-07-121-115/+138
| | | | | * Use openArray in decoder functions * Fix iso-2022-jp erroring out in the wrong case
* Improve encoding supportbptato2023-07-126-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 functionbptato2023-07-111-9/+0
|
* Buffer search fixes & improvementsbptato2023-07-113-53/+82
| | | | | * Fix race condition in updateReadLineISearch * Disable reshape during isearch
* buffer: fix textarea regressionbptato2023-07-101-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 regressionbptato2023-07-102-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 termcapbptato2023-07-101-1/+1
|
* htmlparser: remove more references to dombptato2023-07-092-13/+34
|
* htmlparser: more Option wrapping, remove dom referencebptato2023-07-091-18/+21
|
* htmlparser: fix fragment case, fix head bugbptato2023-07-091-8/+13
| | | | Also, wrap head in an Option
* htmltokenizer: only yield oncebptato2023-07-091-12/+22
| | | | | Seems to reverse the +200M peakmem during compile introduced by the previous commit.
* htmlparser: decouple from DOMbptato2023-07-098-544/+1113
| | | | | Instead of directly appending nodes to the DOM, use a DOMBuilder interface.
* make it compilebptato2023-07-081-8/+7
| | | | whoops
* layout: width-related fixesbptato2023-07-081-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 debuggingbptato2023-07-081-0/+14
|
* Fix toHex weirdnessbptato2023-07-072-11/+11
|
* layout: refactor table layoutbptato2023-07-072-92/+109
| | | | Split it into smaller functions.
* layout: show [img] instead of image urlbptato2023-07-071-1/+1
| | | | urls can get pretty long
* url: fix empty hostnames being acceptedbptato2023-07-071-1/+1
|
* Fixes in ipv6 parser and serializerbptato2023-07-072-14/+30
|
* Add separate type for premultiplied colorbptato2023-07-071-10/+16
|
* color: replace straight alpha table with bit shifting magicbptato2023-07-061-14/+11
| | | | | | And save 64k in the process. Yay! (As it turns out, the lookup table was rounding incorrectly anyways in some cases.)