about summary refs log tree commit diff stats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Move charsets into chakasubptato2023-08-1420-1877/+70
| | | | Operation "modularize Chawan somewhat" part 1
* mediaquery: fix logic errorbptato2023-08-141-1/+1
| | | | Not isAscii means we cannot convert to char. Oops.
* mimetypes: small optimizationbptato2023-08-131-2/+1
|
* Simplify mailcap entry matchingbptato2023-08-131-25/+14
|
* Do not replace existing mime typesbptato2023-08-131-1/+2
| | | | | Make mime.types behavior consistent with mailcap: that is, the *first* match counts.
* Add mailcap, mime.types & misc refactoringsbptato2023-08-1326-378/+1289
| | | | | | | | * add mailcap: works with copiousoutput, needsterminal, etc. * add mime.types (only works with mailcap) * refactor pipeBuffer * remove "dispatcher" * fix bug in directory display where baseurl would not be used
* css: implement case insensitivitybptato2023-08-103-135/+142
| | | | For some reason I forgot about this.
* serialize: add missing prepareMutationbptato2023-08-011-0/+1
|
* Fixes & workarounds to compile on Nim 2.0.0bptato2023-08-0111-36/+45
| | | | | | | | | | | | | | * Import punycode, as it has been removed from stdlib. * Fix some syntax errors * Apparently you can no longer compare distinct pointers with nil. Add explicit comparisons with typeof(nil) instead. * htmlparser: rename _ to other, as semantics of _ have changed. (Quite a shame, it looked better with _. Oh well.) * Explicitly specify mm:refc, as the browser OOMs with orc for some reason. Confirmed to compile & run on 2.0.0, 1.6.14, 1.6.12, 1.6.10 and 1.6.8. (<1.6.8 it's broken & wontfix.)
* Fix double line bug in dump modebptato2023-07-292-3/+4
|
* Add default background/foreground color overridebptato2023-07-292-38/+50
|
* css: very minor optimizationsbptato2023-07-282-19/+15
| | | | probably insignificant overall
* mediaquery: fix some missing has checks in parserbptato2023-07-281-0/+2
|
* layout: count spacing before inline padding toobptato2023-07-281-2/+10
|
* Fix twtstr.cmpbptato2023-07-281-2/+2
| | | | We were comparing the wrong sides of ranges here.
* htmlparser: replace stray insert callbptato2023-07-271-1/+1
|
* 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.