summaryrefslogtreecommitdiff
path: root/content/handlers/html/html.c
Commit message (Collapse)AuthorAgeFilesLines
* html: Add function for issuing a keypress event.Michael Drake2019-12-011-0/+79
|
* html: Split out helper for firing DOM events and swallowing errors.Michael Drake2019-12-011-4/+23
|
* HTML: Rename fire_dom_event to fire_generic_dom_event.Michael Drake2019-12-011-2/+2
|
* html_saw_insecure_objects: Don't infinite loop on objectsDaniel Silverstone2019-12-011-0/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Allow contents to indicate if they believe they may not be secure.Daniel Silverstone2019-12-011-0/+29
| | | | | | | | | | HTML contents reference many other objects. The browser window needs to know if any of them may not be secure, in which case it needs to report that in its page state. If other content types might refer to sub-contents, they will need to define the callback too. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* split out html interaction header elements and rename sourceVincent Sanders2019-11-121-0/+1
|
* remove user warning and log error insteadVincent Sanders2019-11-071-2/+3
|
* Box Conversion: Cancel conversion during html_destroyDaniel Silverstone2019-08-231-1/+10
| | | | | | | | If dom_to_box is still in progress when we destroy an HTML content, we need to cancel the conversion otherwise we will end up with a scheduled callback into infinity. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* HTML: Don't allow objects to redraw until we have a layout.Michael Drake2019-08-061-0/+1
|
* html_begin_conversion: If we pause in completing parse, try again later.Daniel Silverstone2019-08-051-0/+7
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* content: Rename content_broadcast_errorcode()Daniel Silverstone2019-08-051-25/+30
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* html: Mirror gadget values in and out of the DOMDaniel Silverstone2019-08-041-0/+20
| | | | | | | | | 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_get_features to use unscaled coordinatesVincent Sanders2019-08-031-4/+11
|
* make content close check the content status itselfVincent Sanders2019-07-101-2/+6
| | | | make content handler open and close return error status
* HTML: Viewport width/height in length context are fixed point.Michael Drake2019-06-291-2/+2
|
* 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>
* HTML: Update selection media data for new libcss API.Michael Drake2019-05-071-4/+7
|
* HTML: Set up the CSS length measuring context in CSS pixels.Michael Drake2019-05-061-2/+2
|
* HTML: Before building the box tree, get viewport dimensions.Michael Drake2019-05-061-0/+21
|
* Do not prevent reattempting conversion of HTML contentsDaniel Silverstone2019-05-061-8/+0
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* change content get_source_data interfaces to return uint8_t and size_tVincent Sanders2019-05-051-3/+3
| | | | | previously these interfaces returned char * and unsigned int which was undesirable.
* Logging: migrate and provide content interfaceDaniel Silverstone2019-05-051-1/+1
| | | | | | | | Migrate the console enums into netsurf/console.h and add support so that contents can raise a message to log to the console. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Support content_exec for content_htmlDaniel Silverstone2019-05-051-0/+85
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* CSS: Update for change to libcss select style API.Michael Drake2019-05-041-0/+1
| | | | | | | LibCSS now takes the client media spec, rather than just the media type we're selecting for. Signed-off-by: Michael Drake <michael.drake@codethink.co.uk>
* Support script insertion after conversion has begunDaniel Silverstone2019-05-041-4/+107
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* HTML: Don't try to finish an HTML document's conversion twice.Michael Drake2018-08-271-0/+16
|
* clean up html content handler header useVincent Sanders2018-05-111-1/+3
| | | | Improve header use in preperation for making browser window a corewindow
* move html and text content handlers where they belongVincent Sanders2018-05-101-0/+2468