about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* twtstr: remove tolower, isWhitespacebptato2023-11-208-34/+23
| | | | | | | | * tolower: strutils toLowerAscii is good enough for the cases where we need it. Also, it's easy to confuse with unicode toLower and vice versa. * isWhitespace: in AsciiWhitespace is more idiomatic. Also has a naming collision with unicode toLower.
* renderdocument, cell: fix FormatCell bugsbptato2023-11-202-20/+43
| | | | | | | * No more zero width FormatCells messing up buffer display (yay!) * Assert on setText width a zero-length string * Remove unnecessary FormatCell added to every line on paintBackground start
* buffer: optimize findPrevLinkbptato2023-11-201-0/+8
| | | | | It's better to not do it perfectly in 100% of all cases than to loop through the entire document in all cases.
* fix chakasu submodule refbptato2023-11-201-0/+0
|
* gmifetch: fix uninitialized memory access & UAFbptato2023-11-171-10/+9
| | | | C is scary
* gmi2html: fix main signaturebptato2023-11-171-1/+1
|
* Update chakasubptato2023-11-172-1/+1
|
* update chawan.htmlbptato2023-11-171-48/+60
|
* gmifetch: do not decode URLs from query stringbptato2023-11-171-2/+0
|
* cha-finger: bugfixesbptato2023-11-171-10/+3
| | | | | | * Accept port 79, not 73 * Accept ipv6 addresses * We no longer have to URL decode the input
* urimethodmap: do not escape substituted URIbptato2023-11-172-3/+5
| | | | This is consistent with what w3m does and is way more convenient.
* http: use Accept-Encodingbptato2023-11-173-0/+5
| | | | just ask libcurl to decode
* layout: move charwidth into LineBoxStatebptato2023-11-171-9/+8
|
* layout: add floatsbptato2023-11-174-223/+569
| | | | | | | | | | | | | yay!!!! * Add support for float: left, float: right Also, misc stuff: * Add support for display: flow-root * Set line width to the maximum allowed width on line wrap * Various refactorings Still todo: support clear
* env: add window.frames, window.selfbptato2023-11-151-0/+6
| | | | both just return identity
* update todobptato2023-11-151-0/+4
|
* bonus: add finger adapterbptato2023-11-141-0/+44
| | | | sort of based on lynx's finger URL parsing, except it's dumber
* dom: fix lastElementChildbptato2023-11-131-1/+1
|
* layout: refactor flow margin propagation, sizingbptato2023-11-124-615/+637
| | | | | | | | | * Blocks are now positioned before their text contents would be layouted * Untangle calcAvailableSpaceSizes's results from BlockBox * Move a couple of objects from box -> engine * Use Size in a few more places * Set display to block if float is not none
* color: fix 3/6-digit hex color parsingbptato2023-11-111-2/+4
|
* gmifetch: properly set minimum TLS version, include string.hbptato2023-11-011-4/+2
| | | | | | | * Setting minimum TLS versions by SSL_CTX_set_options is deprecated, and we were doing it wrong anyway. Use SSL_CTX_set_min_proto_version instead. * Include string.h header to reduce clang whining.
* gmifetch: fix bugsbptato2023-10-291-10/+19
| | | | | | | * fix invalid file pointer being used after adding certificate (a pointer deref was missing there) * fix compatibility with gemini servers that refuse to interpret URLs that contain the default port (yes, seriously)
* layout: refactor block layoutingbptato2023-10-281-151/+165
| | | | merge positionBlocks with buildBlocks
* layout: refactorbptato2023-10-282-273/+278
| | | | | | * remove Viewport reference from BlockBox * Viewport -> LayoutState (call it what it really is) * move more stuff from box -> engine
* buffer: remove viewport referencebptato2023-10-284-22/+16
| | | | | Viewport at this point is basically just the layout state, so it makes no sense to store it in buffer.
* Add -C optionbptato2023-10-274-177/+209
|
* toml: fix dquote escapingbptato2023-10-261-1/+1
|
* manpage: fix incorrect infobptato2023-10-261-1/+1
|
* renderdocument: slightly refactor, optimize addLinesbptato2023-10-263-39/+28
|
* layout/engine: refactor inline atoms etc.bptato2023-10-263-248/+256
|
* buffer: close ssock on exitbptato2023-10-261-0/+1
|
* layout/engine: reformatbptato2023-10-261-26/+45
|
* layout/engine: add table row group/caption to anon tablebptato2023-10-261-0/+2
| | | | bugfix, bugfix...
* ua.css: add <s>, <strike>bptato2023-10-251-0/+4
|
* dom: expose head, body, window (as defaultView)bptato2023-10-251-3/+3
|
* buffer: call load event on loadbptato2023-10-251-1/+13
|
* js: refine isInstanceOf check in functionsbptato2023-10-253-13/+30
| | | | Special case the global object, check for inheritance, etc.
* window: inherit from EventTargetbptato2023-10-251-2/+3
|
* dom: add some CSSStyleDeclaration functionsbptato2023-10-253-2/+52
|
* js: define global properties as CONFIGURABLE | WRITABLEbptato2023-10-252-2/+7
|
* reduce new() usagebptato2023-10-2512-102/+102
|
* dom: proper relList supportbptato2023-10-251-30/+71
|
* Add jspropnames, CSSStyleDeclaration stubbptato2023-10-256-35/+213
|
* dom: add cloneNodebptato2023-10-241-2/+89
|
* Remove trailing spacesbptato2023-10-238-91/+91
|
* dom: add outerHTML setterbptato2023-10-232-53/+146
| | | | Also, misc. refactorings
* Add innerHTML setterbptato2023-10-234-10/+67
| | | | yay
* about:chawan: fix markupbptato2023-10-231-8/+8
|
* dom: use same url in eval filename as in the console.log statementbptato2023-10-221-2/+2
|
* update chakasubptato2023-10-222-1/+1
|