about summary refs log tree commit diff stats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* dom: expose HTMLInputElement.checkedbptato2023-11-241-1/+1
|
* layout: clamp size constraints to min/max sizes for floatsbptato2023-11-231-7/+12
|
* layout: add clear, etc.bptato2023-11-232-39/+116
| | | | | | * Add clear CSS property * Fix some margin resolution bugs * Apply min-height, max-height to inner inline outer block boxes
* css/values: use Opt instead of Result[string]bptato2023-11-211-55/+54
| | | | the error values were 100% unused
* css/values: simplify getComputedValuebptato2023-11-211-11/+10
|
* Move clang workaround to config.nimsbptato2023-11-211-4/+0
|
* layout: simplify max width/height calculationbptato2023-11-211-41/+43
| | | | No need for the options.
* layout: fix some sizing bugsbptato2023-11-211-103/+124
| | | | | | | | * Merged float and inline-block size calculation * Set min-height, max-height for floats * Fix incorrect positioning of inline atoms with margins * Respect box-sizing in more places * Do not flush remaining margins in layoutRootBlock as top margin
* pager: fix regressionbptato2023-11-213-20/+20
| | | | | pager.tty refers to infile, not outfile. rename to avoid further confusion
* bindings: find termcap on FreeBSDbptato2023-11-212-10/+21
| | | | | pkg-config does not find termcap (or really, ncurses) here, so we have to find it ourselves.
* pager: remove pager.tty memberbptato2023-11-212-7/+8
| | | | now it's a function
* buffer: call onload function on dispatchLoadEventbptato2023-11-211-3/+13
|
* env: stub out window.getComputedStyle()bptato2023-11-212-1/+6
| | | | not a real implementation, just to reduce exceptions
* fromjs: fix fromJSOption with nilbptato2023-11-211-1/+1
| | | | Use option() instead of some()
* renderdocument: avoid setText with zero-width stringbptato2023-11-211-9/+10
| | | | This can happen e.g. if the word is fully outside the canvas.
* css: add box-sizingbptato2023-11-212-16/+60
|
* dom: add baseURI, insertAdjacentHTMLbptato2023-11-201-0/+35
|
* renderdocument: fix regression in d20fc30bptato2023-11-201-12/+0
| | | | | The reasoning for using early returns was wrong, and they should be unnecessary anyway.
* 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.
* Update chakasubptato2023-11-171-1/+1
|
* urimethodmap: do not escape substituted URIbptato2023-11-171-1/+1
| | | | This is consistent with what w3m does and is way more convenient.
* http: use Accept-Encodingbptato2023-11-172-0/+4
| | | | just ask libcurl to decode
* layout: move charwidth into LineBoxStatebptato2023-11-171-9/+8
|
* layout: add floatsbptato2023-11-173-222/+562
| | | | | | | | | | | | | 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
* 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
|
* 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-273-150/+178
|
* toml: fix dquote escapingbptato2023-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...
* 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
|