summaryrefslogtreecommitdiff
path: root/content/handlers
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Expose NaN on WindowDaniel Silverstone2019-05-251-0/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Add dodgy window method to clear callbacksDaniel Silverstone2019-05-252-1/+39
| | | | | | | | | Until we can determine *how* the compartment isn't cleaning up properly in the duktape context, this will at least mean we don't get unpleasant callback related issues when compartments are reset during browsing. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Log when we finalise window objectsDaniel Silverstone2019-05-251-0/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Use generics for makeListProxy properlyDaniel Silverstone2019-05-251-2/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Use generics for makeListProxy properlyDaniel Silverstone2019-05-251-2/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Remove unnecessary generics magicDaniel Silverstone2019-05-251-1/+0
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* HTML: Update selection media data for new libcss API.Michael Drake2019-05-071-4/+7
|
* CSS: One inch is 96 css pixels.Michael Drake2019-05-071-2/+2
|
* HTML: Set up the CSS length measuring context in CSS pixels.Michael Drake2019-05-061-2/+2
|
* CSS: Use helper to convert form css to physical pixels.Michael Drake2019-05-061-2/+1
|
* CSS: Add helpers to convert between css and physical pixels.Michael Drake2019-05-061-0/+25
|
* CSS: Extern the nscss_baseline_pixel_density value.Michael Drake2019-05-061-0/+3
| | | | | Front ends should be able to set this, or it should be a config option.
* Convert css_len2pt and css_len2px for CSS pixels.Michael Drake2019-05-061-15/+20
|
* HTML: Squash error-path leaks in select box construction.Michael Drake2019-05-061-0/+2
|
* HTML: Before building the box tree, get viewport dimensions.Michael Drake2019-05-061-0/+21
|
* HTML content handler: Handle content msg for getdims.Michael Drake2019-05-061-0/+7
|
* Quieten dukky a little more in default log levelsDaniel Silverstone2019-05-061-3/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Do not prevent reattempting conversion of HTML contentsDaniel Silverstone2019-05-061-8/+0
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Use new safe context dumpDaniel Silverstone2019-05-061-9/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Support context dump safely in duktapeDaniel Silverstone2019-05-062-2/+24
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Add some missing unrefsDaniel Silverstone2019-05-061-0/+4
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* complete basic binding documentationVincent Sanders2019-05-061-3/+13
| | | | improve the alert() method parameter handling
* Properly set log levelsDaniel Silverstone2019-05-061-8/+8
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* change content get_source_data interfaces to return uint8_t and size_tVincent Sanders2019-05-0516-56/+69
| | | | | previously these interfaces returned char * and unsigned int which was undesirable.
* Use consoleFormatter in Console.bndDaniel Silverstone2019-05-051-6/+27
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Generics: Add consoleFormatterDaniel Silverstone2019-05-051-0/+76
| | | | | | | | In order to support the console logging formatting specification as per https://console.spec.whatwg.org/#logger we need to implement the Formatter(...) algorithm which is easier done within JavaScript Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Dukky: Change from specifically named genericsDaniel Silverstone2019-05-053-8/+18
| | | | | | | | Instead of specifically having to extract each generic by name, such as makeListProxy, instead support the entire generics table and use `dukky_push_generics()` to gain access to it. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>