Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | javascript: Support Canvas to a basic level | Daniel Silverstone | 2020-05-22 | 5 | -2/+314 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | html: Don't both building a bitmap if we're not rendering it | Daniel Silverstone | 2020-05-22 | 1 | -0/+7 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | html: Handle canvas in redraw | Daniel Silverstone | 2020-05-22 | 1 | -1/+29 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | html: set up canvas box properly | Daniel Silverstone | 2020-05-22 | 1 | -0/+7 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | html: Add canvas node handling in dom_event | Daniel Silverstone | 2020-05-22 | 1 | -0/+133 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | css: Support canvas width/height presentational hints | Daniel Silverstone | 2020-05-22 | 1 | -0/+65 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Squash warning: "_GNU_SOURCE" redefined. | Michael Drake | 2020-05-22 | 1 | -2/+0 |
| | | | | The utils/config.h header handles this. | ||||
* | pass the browser window to selection click handler | Vincent Sanders | 2020-05-20 | 5 | -42/+2 |
| | | | | | | this means the content handlers do not have to provide a separate method to extract their browser window and it can simply be passed in. | ||||
* | do not export texplain interfaces unnecessarily | Vincent Sanders | 2020-05-19 | 2 | -189/+173 |
| | |||||
* | implement content opacity check through the function table | Vincent Sanders | 2020-05-13 | 10 | -3/+99 |
| | |||||
* | make free text search content handler agnostic | Vincent Sanders | 2020-05-12 | 2 | -0/+254 |
| | |||||
* | hoist common text search out of content handlers | Vincent Sanders | 2020-05-12 | 5 | -182/+19 |
| | |||||
* | move free text search general interface to content. | Vincent Sanders | 2020-05-10 | 8 | -797/+59 |
| | | | | | needs additional cleanup to call content through handler table to perform searches. | ||||
* | remove unecessary includes | Vincent Sanders | 2020-05-10 | 2 | -13/+6 |
| | |||||
* | add missing header includes from previous change | Vincent Sanders | 2020-05-08 | 3 | -0/+3 |
| | |||||
* | improve content header usage | Vincent Sanders | 2020-05-07 | 16 | -8/+33 |
| | |||||
* | clean up content headers and documentation comments | Vincent Sanders | 2020-05-06 | 8 | -4/+11 |
| | | | | pure formatting and documentation changes, no code difference | ||||
* | remove junk content_add_error api | Vincent Sanders | 2020-05-06 | 3 | -5/+0 |
| | |||||
* | split dom event handling into separate module | Vincent Sanders | 2020-05-05 | 4 | -727/+837 |
| | |||||
* | Clean up html content dom element insertion processing | Vincent Sanders | 2020-05-05 | 2 | -89/+159 |
| | |||||
* | remove the forward references in html form internal handling | Vincent Sanders | 2020-05-03 | 2 | -549/+615 |
| | |||||
* | remove forward delcarations and clean up formatting in html table layout ↵ | Vincent Sanders | 2020-05-03 | 2 | -581/+561 |
| | | | | processing | ||||
* | Improve hsndling of html content objects with no associated box | Vincent Sanders | 2020-05-03 | 1 | -12/+39 |
| | |||||
* | remove unecessary include | Vincent Sanders | 2020-05-03 | 1 | -1/+0 |
| | |||||
* | improve html content handler private headers | Vincent Sanders | 2020-05-02 | 24 | -123/+277 |
| | |||||
* | add missing include | Vincent Sanders | 2020-05-01 | 1 | -1/+2 |
| | |||||
* | put html content handler object interface into its own header | Vincent Sanders | 2020-05-01 | 5 | -23/+98 |
| | |||||
* | remove unused available width and height parameters from html_fecth_object() | Vincent Sanders | 2020-04-30 | 5 | -34/+37 |
| | |||||
* | remove unecessary filename prefixes in the html content handler | Vincent Sanders | 2020-04-30 | 8 | -10/+10 |
| | |||||
* | split html box processing code | Vincent Sanders | 2020-04-29 | 20 | -2674/+2958 |
| | | | | | | | reduce the module size of the html box handling code by splitting into smaller sections. No functional code change. | ||||
* | Initial special canvas handling to not show fallback | Vincent Sanders | 2020-04-28 | 1 | -3/+27 |
| | |||||
* | clean up html box, no functionality change just cosmetic | Vincent Sanders | 2020-04-28 | 8 | -827/+1040 |
| | | | | | | split up the html box headers tidy up the documentation comments avoid forward declarations in normalisation implementation | ||||
* | use dom type interface instead of strcasecmp | Vincent Sanders | 2020-04-26 | 1 | -52/+87 |
| | |||||
* | dukky: Don't allow js_exec on a thread pending destruction | Daniel Silverstone | 2020-04-26 | 1 | -0/+5 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | dukky: Various checks for win being NULL | Daniel Silverstone | 2020-04-26 | 2 | -1/+4 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | remove forward declarations | Vincent Sanders | 2020-04-26 | 2 | -2044/+2170 |
| | | | | | reorder module to remove need for forward function declarations. remove unecessary and confusing parameter macros | ||||
* | Window: Do not get stuck if callbacks are in-train during compartment close | Daniel Silverstone | 2020-04-25 | 1 | -1/+30 |
| | | | | | | | | | When we close the JS compartment we try and cancel all callbacks so that they do not fire after the compartment is closed. However if we have in-train callbacks, they can gum up the closedown and so we need to check and if we've done all we can, we break out of the callback removal loop. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | add bindings for canvas width and height | Vincent Sanders | 2020-04-24 | 2 | -1/+19 |
| | |||||
* | Implement javascript scheme url script https://wiki.whatwg.org/wiki/URL_schemes | Vincent Sanders | 2020-04-17 | 3 | -4/+46 |
| | |||||
* | refactor html mouse action | Vincent Sanders | 2020-04-13 | 1 | -482/+738 |
| | | | | | | | | | | | | | | | | | This reduces the source complexity of the html_mouse_action() previously this was a single function of several thousand lines with over 30 local variables allocated on the stack. Variables are now mostly held in a single static structure which drasticaly reduces the size of stack frame required and improves lookup locality. The generated code does cause two additional function calls as the compiler avoids inlining the sub functions. The optimiser seems to produce somewhat better code within the sub functions. In the final analysis there appears to be no significant performance loss or gain with this change, just more readable source. | ||||
* | html: Also close js thread on html_stop() | Daniel Silverstone | 2020-03-29 | 1 | -0/+4 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | HTML: Use new js_closethread() | Daniel Silverstone | 2020-03-22 | 1 | -1/+7 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Window: Add flag to ensure we don't set timeouts after close | Daniel Silverstone | 2020-03-22 | 1 | -0/+14 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | JS: Add concept of js_closethread | Daniel Silverstone | 2020-03-22 | 3 | -4/+42 |
| | | | | | | | In order to better model content close vs destroy, add the concept of closing a thread to the JS interface. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | JS: Move ownership of jsthread from browser to htmlc | Daniel Silverstone | 2020-03-22 | 3 | -27/+8 |
| | | | | | | | | Since it makes more sense for the htmlc to be responsible for when the JS thread gets destroyed, move its lifetime from the responsibility of the browser window to the html content. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Dukky: Make heaps refcounted too | Daniel Silverstone | 2020-03-22 | 1 | -2/+18 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Dukky: Add refcounting to threads | Daniel Silverstone | 2020-03-21 | 1 | -5/+59 |
| | | | | | | | | | In order to cope with threads which manage to navigate entirely while executing (sadly possible) we need to handle the possibility that a thread is destroyed by the browser but still needs to live until it returns from whatever exec it was doing at the time. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Dukky: Upgrade dukky binding to support new heap/thread split | Daniel Silverstone | 2020-03-21 | 3 | -95/+121 |
| | | | | | | | | Update the duktape bindings and dukky interface to support the new JS heap/thread split. Heaps may have multiple active threads though in general there will only be 2 at a time. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | JS: Add concept of thread destroy | Daniel Silverstone | 2020-03-21 | 2 | -0/+18 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | JS: Split concept of JS context into heap and thread | Daniel Silverstone | 2020-03-21 | 6 | -53/+83 |
| | | | | | | | | | In preparation for proper splitting of Javascript support into heaps and threads, this renames the types and corrects the no-js builds to still work. At this time no substantive change in semantics exists, and the duktape build won't work. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> |