summaryrefslogtreecommitdiff
path: root/content/handlers
Commit message (Collapse)AuthorAgeFilesLines
...
* enable gnu extensions to get strcasestr from string.hVincent Sanders2019-08-051-0/+2
|
* form: Fix situation where a gadget initialises with NULL valueDaniel Silverstone2019-08-041-2/+6
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* html: Mirror gadget values in and out of the DOMDaniel Silverstone2019-08-046-1/+169
| | | | | | | | | Currently only supporting text input, password input, and hidden input, along with text areas, this mirrors the text values in and out of the DOM, allowing JS to adjust the gadget values and for the gadget values to be interrogated from JS. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* change browser_window_drop_file_at_point() to take unscaled coordinatesVincent Sanders2019-08-041-18/+26
|
* change browser_window_redraw to use unscaled coordinatesVincent Sanders2019-08-041-2/+2
|
* Add content handlers for queriesDaniel Silverstone2019-08-044-1/+58
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Duktape element binding: Check dom_string_create for error.Michael Drake2019-08-041-0/+6
|
* CSS hints: Change css_hint_advance to advance pointer by parameter.Michael Drake2019-08-041-55/+55
|
* remove unnecessary browser_window_redraw_rect interfaceVincent Sanders2019-08-031-2/+4
|
* change browser_window_get_features to use unscaled coordinatesVincent Sanders2019-08-031-4/+11
|
* change browser_window_mouse_track to use unscaled coordinatesVincent Sanders2019-08-031-3/+2
|
* change browser_window_mouse_click to use unscaled coordinatesVincent Sanders2019-08-031-5/+5
| | | | | this means frontends no longer need to scale mouse click events thus simplifying their implementation.
* box_construct: Check error return from dom_has_attributeDaniel Silverstone2019-08-031-3/+11
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* dukky: Remove unused `dukky_safe_get()`Daniel Silverstone2019-08-021-6/+0
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* dukky: Clean up our stacktrace reportingDaniel Silverstone2019-08-021-31/+6
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Duktape: Hopefully silence issue with %lldDaniel Silverstone2019-08-021-1/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Duktape: Make declaration match definition for memcmp and double_div.Michael Drake2019-08-021-3/+3
|
* Duktape: Make declaration match definition for duk_refzero_check_fast()Michael Drake2019-08-021-1/+1
|
* Duktape: Make declarations match definitions for fastint-enabled functions.Michael Drake2019-08-021-2/+2
|
* Duktape: Make declarations match definitions for duk_raw_read_xxx_beMichael Drake2019-08-021-6/+6
|
* Duktape: Make declarations match definitions for inline functions.Michael Drake2019-08-021-4/+4
|
* Duktape: Prevent clang static analysis.Michael Drake2019-08-021-0/+3
|
* Duktape: Update to 2.4.0 release.Michael Drake2019-08-023-7413/+8430
|
* Document.bnd: Fix cookies getter and implement setterDaniel Silverstone2019-08-021-1/+33
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Dukky: Add and utilise a jserrors categoryDaniel Silverstone2019-08-021-4/+4
| | | | | | | Normal, and verbose logging will now also log all JS errors in order that we stand a chance of debugging things more easily when testing. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Window: Provide a little more info on why not EXPOSE()ing some stuffDaniel Silverstone2019-08-021-9/+10
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Window: Restructure EXPOSE()d globalsDaniel Silverstone2019-08-021-14/+82
| | | | | | | By reference to the MDN and to Duktape's CLI, expose everything we possibly can on the global object (Window). Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* dukky.c: Correct typo (BUTTOM -> BUTTON)Daniel Silverstone2019-08-011-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Dukky: Support console logging betterDaniel Silverstone2019-08-014-2/+117
| | | | | | | Add a polyfill for Array.from(), and fix the console formatter so that it won't keep exploding. This should improve matters in the tests. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* dukky: Attempt to make the fallback to HTMLUnknownElement more useful.Daniel Silverstone2019-08-011-4/+7
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* html_interaction.c: Default node to <HTML> nodeDaniel Silverstone2019-08-011-1/+1
| | | | | | | | | | | In order to cope when an entire document is `visibility: hidden` we default to the <HTML> node when interacting with the document to ensure we don't drop off the end of the box model without identifying at least one node to fire events at. This resolves #2658 Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Console.bnd: Support attempts to log when Window has goneDaniel Silverstone2019-08-011-1/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Layout: Apply min/max width to replaced elements when width is given.Michael Drake2019-07-301-0/+5
|
* cleanup some javascript documentation commentsVincent Sanders2019-07-122-33/+69
|
* when owning context is destroyed ensure that active js compartment is ↵Vincent Sanders2019-07-121-24/+56
| | | | destroyed first
* make content close check the content status itselfVincent Sanders2019-07-103-6/+15
| | | | make content handler open and close return error status
* add isFinite to global contextVincent Sanders2019-07-011-0/+1
|
* css/utils.c: Fix vw/vh handling in len2ptDaniel Silverstone2019-06-301-2/+2
| | | | | | | | | We were using integer multiplication rather than fixed-point multiplication when calculating point sizes relative to the viewport. This fixes that. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* HTML: Viewport width/height in length context are fixed point.Michael Drake2019-06-291-2/+2
|
* revert 8265b8b66f7072a659dbc0f3e50fe23d6d6a68a1 as ssize_t is not available ↵Vincent Sanders2019-06-251-1/+1
| | | | everywhere
* Duktape: Probably should use ssize_tDaniel Silverstone2019-06-151-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Duktape: Hopefully silence issue with %lldDaniel Silverstone2019-06-152-1/+4
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Window.bnd: Suppress some unnecessary stack frame dumpsDaniel Silverstone2019-06-091-3/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Window.bnd: Expose isNanDaniel Silverstone2019-06-091-0/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Window.bnd: Do not remove in-train callbacksDaniel Silverstone2019-06-091-8/+17
| | | | | | | | | | Sometimes callbacks may be cancelled from within themselves. In that case we need to simply ensure that should the callback be wanted to repeat, we instead stop that so that once the callback is completed we do not attempt to reschedule something which had already been deleted. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Update schedulers return codesVincent Sanders2019-06-081-1/+6
| | | | | The GTK and monkey frontends schedulers now return NSERROR_NOT_FOUND when a caller is using a negative schedule time to remove a callback.
* html.c: Correct ordering for reformat timeDaniel Silverstone2019-06-051-1/+1
| | | | | | Fix a minor bug where we'd likely never end up reformatting. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Document.bnd: createDocumentFragment() unref fragmentDaniel Silverstone2019-06-011-0/+2
| | | | | | | The pushed fragment node holds the reference, so unref it in the end of createDocumentFragment() Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* html_script.c: html_script_exec() reqacquire script ptrDaniel Silverstone2019-06-011-0/+5
| | | | | | | | | Since executing a script can cause more scripts to be appended to the script array, and that can cause a reallocation which might move the script array, reacquire the script pointer after running the script so that we don't wander off into the reeds. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Improve javascript unimplemented bnding documentation generationVincent Sanders2019-05-311-4/+8
|