Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Retrieve RegExp 'g' flag in spec conformant way (original patch by bnoordhuis) | Fabrice Bellard | 2023-12-09 | 2 | -17/+41 | |
| | ||||||
* | fixed lexical scope of 'this' with eval (github issue #192) | Fabrice Bellard | 2023-12-09 | 1 | -6/+7 | |
| | ||||||
* | fixed negative zero date | Fabrice Bellard | 2023-12-09 | 1 | -12/+14 | |
| | ||||||
* | Revert "add_eval_variables: do not close over `this' twice" | bptato | 2023-12-09 | 1 | -2/+1 | |
| | | | | | | This reverts commit 9ff482dd8d5b1b252e77712e9418b5b253f4bbf8. Importing fix from upstream instead. | |||||
* | pager: add marks | bptato | 2023-12-09 | 9 | -16/+293 | |
| | | | | | Default is vi-style, but w3m-style marks work as well; see bonus/w3m.toml. | |||||
* | pager: add precnum to [, ] | bptato | 2023-12-09 | 3 | -15/+29 | |
| | ||||||
* | pager: add `{', `}'; document externInto | bptato | 2023-12-09 | 5 | -1/+55 | |
| | | | | | | | | { & } acts like in vi (except the cursor is not moved to the line beginning). No reason to leave externInto undocumented, as it is even used in the default config. | |||||
* | sheet: fix overflow in addAtRule | bptato | 2023-12-09 | 1 | -1/+1 | |
| | | | | It is enough to just take the len of children there. | |||||
* | cascade: simplify | bptato | 2023-12-09 | 1 | -2/+1 | |
| | ||||||
* | cascade: fix regression | bptato | 2023-12-09 | 1 | -18/+23 | |
| | | | | | Styled children must be added to their parents *before* they are styled, because match expects this to hold. | |||||
* | selectorparser: enum-ize rel | bptato | 2023-12-09 | 2 | -25/+35 | |
| | ||||||
* | sheet: fix a correctness issue, misc refactorings | bptato | 2023-12-09 | 2 | -51/+63 | |
| | | | | | | | * Fix a bug where rules would be sorted incorrectly if retrieved from the cache. * Use withValue where possible * camelCase some variables, de-extern some functions, etc. | |||||
* | cascade: refactor & optimize | bptato | 2023-12-09 | 1 | -153/+192 | |
| | | | | | | * Break up applyRules into smaller functions * Do not call calcRules for every child pseudo element separately; just use parent's DeclarationListMap | |||||
* | fixed private field setters (github issue #194) | Fabrice Bellard | 2023-12-08 | 2 | -2/+3 | |
| | ||||||
* | added missing bignum error tests (github issue #159) | Fabrice Bellard | 2023-12-08 | 1 | -12/+64 | |
| | ||||||
* | added String.prototype.at, Array.prototype.at and TypedArray.prototype.at | Fabrice Bellard | 2023-12-08 | 1 | -3/+72 | |
| | ||||||
* | Revert "quickjs: add Array.prototype.at" | bptato | 2023-12-08 | 1 | -30/+0 | |
| | | | | | | This reverts commit b7367506fa05e9396e69b1db7277e011722af6b0. Importing upstream patch instead. | |||||
* | updated to unicode 15.0.0 | Fabrice Bellard | 2023-12-08 | 1 | -1198/+1237 | |
| | ||||||
* | Makefile: disable CONFIG_BIGNUM for QJS | bptato | 2023-12-05 | 1 | -2/+1 | |
| | | | | We do only use BigInt, so the flag is no longer necessary. | |||||
* | quickjs/libbf: add missing ifdef | bptato | 2023-12-05 | 1 | -0/+2 | |
| | ||||||
* | the BigInt support is now always included | bellard | 2023-12-05 | 4 | -846/+509 | |
| | ||||||
* | bf_set_ui() fix (github issue #133) | bellard | 2023-12-05 | 1 | -16/+16 | |
| | ||||||
* | Revert "fix undefined behavior: shift 32 bits for uint32_t in bf_set_ui" | bptato | 2023-12-05 | 1 | -6/+1 | |
| | | | | | | This reverts commit 821693c4374d9895f462fa29644905c61dbb241d. (Importing fix from upstream instead.) | |||||
* | quickjs: improve can_destroy hook | bptato | 2023-12-05 | 1 | -19/+40 | |
| | | | | | | Use a separate list for tracking potential can_destroy targets. This lets us skip unnecessarily calling can_destroy for non-platform objects, and gets rid of exponential complexity in the loop. | |||||
* | Update chame | bptato | 2023-12-03 | 2 | -6/+6 | |
| | ||||||
* | event: remove ctx from CustomEvent | bptato | 2023-12-03 | 3 | -36/+47 | |
| | | | | | Instead, make finalizers optionally pass their runtime for resource deallocation. | |||||
* | Update todo | bptato | 2023-12-03 | 1 | -2/+0 | |
| | ||||||
* | buffer: do not needlessly copy in onload | bptato | 2023-12-03 | 1 | -9/+5 | |
| | ||||||
* | pager, container: add text selection/copying | bptato | 2023-12-03 | 11 | -73/+280 | |
| | | | | | | | | | | * Add select & copy selection functionality to container * Fix bug in generateSwapOutput where output could be misplaced because of zero-width cells * Add fromJSPromise, call runJSJobs in every iteration of the headed event loop * "await" pager actions that output a promise * Change default view source keybinding to `\' | |||||
* | qjs: fix a warning | bptato | 2023-12-02 | 1 | -1/+1 | |
| | | | | | We want to check if d is larger than INT64_MAX, but the conversion rounds it up, so we actually need to use greater-equals. | |||||
* | Get rid of clang 16 workaround | bptato | 2023-12-02 | 6 | -17/+30 | |
| | | | | | * bindings/quickjs: importc and use correct pointer types * add constcharp module for when it is unavoidable | |||||
* | js: get rid of emit | bptato | 2023-12-02 | 1 | -22/+15 | |
| | | | | now I know how to :P | |||||
* | dom: fix relList setter regression, remove rel() | bptato | 2023-12-02 | 2 | -6/+15 | |
| | ||||||
* | js: get rid of getJSValue | bptato | 2023-12-02 | 2 | -11/+11 | |
| | | | | just use an UncheckedArray in the binding | |||||
* | ua.css: do not set del, ins display to block; strike del | bptato | 2023-12-01 | 1 | -3/+3 | |
| | ||||||
* | pager: small optimization in drawBuffer | bptato | 2023-12-01 | 1 | -2/+2 | |
| | ||||||
* | dom: redefine Node.contains to match standard | bptato | 2023-12-01 | 2 | -5/+7 | |
| | | | | (and expose it as a JS function) | |||||
* | dom: functionize parentElement, improve Node.document | bptato | 2023-12-01 | 1 | -7/+7 | |
| | | | | | | * parentElement is now just a function. * Remove TODO from node.document; it is useful and not going anywhere. * Check for Nim type in Node.document, not nodeType | |||||
* | dom: fix `children' being available for all Nodes | bptato | 2023-12-01 | 1 | -6/+17 | |
| | | | | It is only defined for Document, Element, DocumentFragment. | |||||
* | html: add HTMLElement.dataset (+ some twtstr cleanup) | bptato | 2023-12-01 | 3 | -32/+96 | |
| | ||||||
* | Makefile: fix $(FLAGS) not being used | bptato | 2023-11-30 | 1 | -2/+3 | |
| | ||||||
* | js: simplify toJSP0 | bptato | 2023-11-30 | 5 | -33/+25 | |
| | | | | | | | * Expose js_create_from_ctor from QuickJS and directly use that (instead of badly recreating it) * Do not call defineUnforgeable twice (it is inevitably called in toJSP0, so jsctor does not need it) | |||||
* | js: allow subclassing platform objects in JS | bptato | 2023-11-30 | 3 | -5/+50 | |
| | ||||||
* | intl: stub out Intl.PluralRules | bptato | 2023-11-30 | 2 | -0/+26 | |
| | ||||||
* | twtstr: simplify expandPath | bptato | 2023-11-29 | 1 | -19/+12 | |
| | ||||||
* | env: add window.top, window.parent | bptato | 2023-11-29 | 1 | -3/+12 | |
| | | | | | Also, func-ize some similar identity functions, and add TODOs about [Replaceable]. | |||||
* | buffer: do not set readyState if document is nil | bptato | 2023-11-29 | 1 | -1/+2 | |
| | | | | | As the comment says, buffer.document only exists if buffer.ishtml is true. | |||||
* | Makefile: rewrite | bptato | 2023-11-28 | 3 | -71/+112 | |
| | | | | | | | * Get rid of useless targets * Use real recipes instead of command runner targets * When given, use environment variables * Document Makefile stuff in doc/build.md | |||||
* | dom: add document.readyState | bptato | 2023-11-27 | 2 | -2/+10 | |
| | ||||||
* | buffer: add DOMContentLoaded, misc event improvements | bptato | 2023-11-27 | 2 | -49/+75 | |
| | | | | | | | * Add DOMContentLoaded * Re-use the same event object for all elements * Reshape if an event was fired * Reshape on setTimeout/setInterval fired |