summaryrefslogtreecommitdiff
path: root/content/handlers
Commit message (Collapse)AuthorAgeFilesLines
* Support Document::createEvent()Daniel Silverstone2019-05-033-1/+19
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Event: Implement initEvent() and getter isTrustedDaniel Silverstone2019-05-031-0/+37
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Update UnimplementedJavascript with the window functions now implementedDaniel Silverstone2019-05-031-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Javascript: Support setTimeout and friendsDaniel Silverstone2019-05-033-31/+274
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* dukky: Clean up the logging levels a littleDaniel Silverstone2019-05-021-2/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* SVG content handler: Fix plot style stroke_widthMichael Forney2019-03-051-1/+1
| | | | | | | | In 8332bf6b2a, when the stroke width was moved from a parameter to the plot style field, it accidentally used the `stroke` field of the svgtiny shape (the color) instead of `stroke_width`. Signed-off-by: Michael Drake <michael.drake@codethink.co.uk>
* use memcpy instead of strcpy to make the dom string copy intention explicitVincent Sanders2019-03-041-4/+4
|
* validate the form button element type attribute as per specVincent Sanders2019-02-221-4/+16
| | | | | | | https://html.spec.whatwg.org/multipage/form-elements.html#attr-button-type says if the type attribute is anything but "reset" or "button" it is of "submit" type. The previous logic was incorrect and only used the button if its type was explicitly submit and noting else.
* add webp image handlerVincent Sanders2019-02-174-0/+269
|
* improve some commentsVincent Sanders2019-02-171-2/+6
|
* tidy up bmp and ico makefile entries to be one per lineVincent Sanders2019-02-171-1/+2
|
* DUKKY: Remove LOG/JS_LOG macros, update to dukky categoryDaniel Silverstone2019-02-172-57/+49
| | | | | | | Update the logging levels, change to NSLOG across the board, and ensure that we use the `dukky` category now added for us. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Use NSLOG rather than LOG/JS_LOGDaniel Silverstone2019-02-172-3/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* HTML handler: Reformat passing viewport height when triggered by object.Michael Drake2019-02-171-3/+3
| | | | | | Previously we correctly used the viewport width, but we were using the document height instead of viewport height when an HTML child content triggered a reformat of the parent HTML document.
* Layout: Add debug logging to show viewport dimensions passed into layout.Michael Drake2019-02-171-0/+4
| | | | Signed-off-by: Michael Drake <michael.drake@codethink.co.uk>
* Box construction: Don't handle IMAGE specially.Michael Drake2018-12-131-1/+0
|
* fix logging level in duktape bindingVincent Sanders2018-11-061-6/+6
|
* Slightly nicer handling of js_exec() and errorsDaniel Silverstone2018-11-041-19/+47
|
* check dom call return and improve handling of missing form typeVincent Sanders2018-10-091-22/+30
|
* rewrite form_successful_controls_dom as form_dom_to_dataVincent Sanders2018-09-291-556/+883
| | | | | | | | | | | | | | | | | | | | | | | | Trying to reason about error propagation and resource leakage within the form submission code was impossible because of the form_successful_controls_dom function. This function was over six hundred lines long, had twenty six top level local variables and six levels of indent in places. This commit splits it out into thirteen shorter and more obvious functions. The resulting operation is identical except errors are properly propagated (all failures were reported as out of memory) and resource management can be reasoned about. The compiler appears to inline the entirety of the code from form_submit() down excepting a handful of leaf functions. This results in similar code output size as previous implementation. The new implementation has a greater number of variables passed to sub functions than desirable because multiple character sets are required to encode names and values in the multipart data list. However as noted the compiler effectively inlines all these functions so this does not actually become a major problem.
* gcc on openbsd is unable to reason about res variable usage and generates ↵Vincent Sanders2018-09-261-1/+1
| | | | bogus warning
* fix url encoding to be compatible with nsurl API changes.Vincent Sanders2018-09-264-152/+165
| | | | | As part of this fix the form submission error handling and reporting has been improved.
* allow comments to supress implicit fallthrough warningsVincent Sanders2018-09-072-6/+6
|
* HTML: Don't try to finish an HTML document's conversion twice.Michael Drake2018-08-271-0/+16
|
* remove warning by replacing sprintf snprintfVincent Sanders2018-08-241-1/+5
|
* remove warning by replacing strcpy with safer strncpyVincent Sanders2018-08-241-5/+11
|
* fix size_t format specifiersVincent Sanders2018-08-181-3/+4
|
* Text handling: Display application/json, rather than offering download.Michael Drake2018-08-141-0/+6
|
* Duktape: Make declaration match definition for memcmp and double_div.Michael Drake2018-08-101-3/+3
|
* Duktape: Make declaration match definition for duk_refzero_check_fast()Michael Drake2018-08-101-1/+1
|
* Duktape: Make declarations match definitions for fastint-enabled functions.Michael Drake2018-08-101-2/+2
|
* Duktape: Make declarations match definitions for duk_raw_read_xxx_beMichael Drake2018-08-101-6/+6
|
* Duktape: Make declarations match definitions for inline functions.Michael Drake2018-08-101-4/+4
|
* Duktape: Prevent clang static analysis.Michael Drake2018-08-101-0/+3
|
* Duktape: Update to version 2.3.0 release.Michael Drake2018-08-103-2292/+3974
|
* Browser: Rename function to access bw URL.Michael Drake2018-07-231-1/+1
|
* Layout: Use box helper for first child checks.glenwalker/bug_0002428Michael Drake2018-06-291-2/+2
|
* Box: Add helper to check if box is first child.Michael Drake2018-06-291-0/+11
|
* Layout: Tidy condition so it can be read.Michael Drake2018-06-291-7/+6
|
* Plotters: Expose array of font family strings to front ends.Michael Drake2018-05-231-0/+1
|
* Plotters: Remove width param from path plotter.Michael Drake2018-05-231-2/+2
| | | | We now use the stroke_width in the plot_style.
* Plotters: Change stroke width in the plot_style_t to fixed point.Michael Drake2018-05-232-6/+7
|
* Plotters: Add plot_style_fixed type, and use for font size.Michael Drake2018-05-235-9/+9
|
* clean up html content handler header useVincent Sanders2018-05-1112-68/+180
| | | | Improve header use in preperation for making browser window a corewindow
* move html and text content handlers where they belongVincent Sanders2018-05-1036-3/+28825
|
* Duktape: Squash armhf warnings.Michael Drake2018-05-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | content/handlers/javascript/duktape/duktape.c: In function 'duk_resolve_nonbound_function': content/handlers/javascript/duktape/duktape.c:14609:25: warning: cast increases required alignment of target type [-Wcast-align] duk_push_tval(thr, &((duk_hboundfunc *) h)->target); ^ content/handlers/javascript/duktape/duktape.c: In function 'duk_bi_function_prototype_bind': content/handlers/javascript/duktape/duktape.c:32423:20: warning: cast increases required alignment of target type [-Wcast-align] h_boundtarget = (duk_hboundfunc *) h_target; ^ content/handlers/javascript/duktape/duktape.c: In function 'duk_free_hobject': content/handlers/javascript/duktape/duktape.c:46072:23: warning: cast increases required alignment of target type [-Wcast-align] duk_hboundfunc *f = (duk_hboundfunc *) h; ^ content/handlers/javascript/duktape/duktape.c: In function 'duk__mark_hobject': content/handlers/javascript/duktape/duktape.c:47889:23: warning: cast increases required alignment of target type [-Wcast-align] duk_hboundfunc *f = (duk_hboundfunc *) h; ^ content/handlers/javascript/duktape/duktape.c: In function 'duk_hobject_refcount_finalize_norz': content/handlers/javascript/duktape/duktape.c:49866:23: warning: cast increases required alignment of target type [-Wcast-align] duk_hboundfunc *f = (duk_hboundfunc *) h; ^ content/handlers/javascript/duktape/duktape.c: In function 'duk__handle_bound_chain_for_call': content/handlers/javascript/duktape/duktape.c:61533:14: warning: cast increases required alignment of target type [-Wcast-align] h_bound = (duk_hboundfunc *) func; ^ content/handlers/javascript/duktape/duktape.c: In function 'duk_js_instanceof': content/handlers/javascript/duktape/duktape.c:78165:24: warning: cast increases required alignment of target type [-Wcast-align] duk_push_tval(thr, &((duk_hboundfunc *) func)->target); ^
* Duktape: Squash -Wcast-align warnings on armhf.Michael Drake2018-05-051-2/+26
|
* Duktape: Make declarations match definitions for inline functions.Michael Drake2018-05-041-4/+4
|
* Duktape: Make declarations match definitions for fastint-enabled functions.Michael Drake2018-05-041-2/+2
|
* Duktape: Make declaration match definition for duk_refzero_check_fast()Michael Drake2018-05-041-1/+1
|