summaryrefslogtreecommitdiff
path: root/render/html.c
Commit message (Collapse)AuthorAgeFilesLines
* Add fire_dom_event, it's in a bad place but we can move it laterDaniel Silverstone2015-10-311-0/+34
|
* Shunt the handling of new elementsDaniel Silverstone2015-10-311-3/+4
|
* Initial work toward JS event supportDaniel Silverstone2015-10-311-0/+14
|
* It's not a hubbub errorDaniel Silverstone2015-08-121-1/+2
|
* Store the HTML content as userdata on the DOM's HTMLDocumentDaniel Silverstone2015-08-091-0/+53
|
* fixup all the remaining logging macro callsitesVincent Sanders2015-05-281-1/+1
| | | | | The semantic patch tool appears to have missed some difficult to reason about callsites which have now been manually cleaned up
* Change LOG() macro to be varadicVincent Sanders2015-05-281-20/+20
| | | | | | | | | | | | This changes the LOG macro to be varadic removing the need for all callsites to have double bracketing and allows for future improvement on how we use the logging macros. The callsites were changed with coccinelle and the changes checked by hand. Compile tested for several frontends but not all. A formatting annotation has also been added which allows the compiler to check the parameters and types passed to the logging.
* Ensure result of ftell is checked for errorsVincent Sanders2015-04-261-0/+6
| | | | | | | | The ftell call in the html renderer handling of drag and drop was not checking its return value for errors which could have resulted in attempting to read -1 bytes. coverity 1251038
* Add invalidate API to html content script handling and use it.Vincent Sanders2015-03-091-11/+21
| | | | | | | | | | The html content script handling needs to invalidate its JavaScript context when the browsing context (browser_window) containing it is either closed or the content fetch is aborted (stopped) Previously the invalidation was only done on browser_window close which resulted in use after free crashes because of the now invalid JavaScript context.
* clear the html content reference to javascript context.Vincent Sanders2015-03-061-0/+8
| | | | | | | | | | | | When the browser window is about to be destroyed html_close gets called indicating the browser_window previously associated with the html content is about to become invalid. This makes the javascript context invalid within the html content (it is held by the browser window) when that context is about to be destroyed. Previously the javascript children would continue to attempt to use the context after it had been destroyed causing all sorts of strange errors and failures.
* cleanup Doxygen warningsVincent Sanders2014-11-121-23/+19
|
* Doxygen cleanupsVincent Sanders2014-11-121-2/+3
|
* Make most of the form API internal to the html renderer.Vincent Sanders2014-11-111-1/+1
| | | | | | Very little of the form API needed exposing outside of the renderer. This makes the form API that may be used by frontends obvious and limited.
* Fix reference to local variable outside scope (fixes coverity 1251161)Vincent Sanders2014-11-101-1/+1
|
* Improve content encoding information APIVincent Sanders2014-11-071-15/+7
| | | | | Extend the content_get_encoding() API to retrieve the source of the encoding as well as the actual encoding.
* Allow content handlers to have debug values set through APIVincent Sanders2014-11-061-1/+18
| | | | | | | | Previously content handler debugging features were accessed by global variables. This allows the setting of debugging parameters via a content API giving per content control over debugging features. Currently only used by the html content handler to toggle global redraw debugging.
* Make the fetching of a contents encoding generic.Vincent Sanders2014-11-051-5/+6
| | | | | | | The frontends previously had to use an html renderer API to get the encoding of a content. This also required the explicit checking of the contents type rather than using the existing content API to abstract this knowledge.
* Change contextual content retrieval to browser features.Vincent Sanders2014-11-021-17/+19
| | | | | | | | | | | | | Update the API which allows frontends to acquire the page features (images, link urls or form elements) present at the given coordinates within a browser window. By making this an explicit browser_window API and using the browser.h header for the associated data structure with a more appropriate API naming the usage is much more obvious and contained. Additionally the link url is now passed around as a nsurl stopping it being converted from nsurl to text and back again several times.
* remove unecessary browser.h include from core headersVincent Sanders2014-10-171-0/+1
|
* Update the core to use the split operations table headersVincent Sanders2014-10-161-1/+2
| | | | Second in the series to decouple the core API usage from the frontends.
* Put the font operations table alongside all the other core APIVincent Sanders2014-10-131-1/+1
| | | | | | | | | | | | The netsurf core is driven from numerous operation tables most of which are now set through a common netsurf_register() interface. The font and plotting interfaces are currently separate and unlike all the other operation tables are modified for differing contexts. This change moves the font operations alongside all the other operations table and remove unnecessary interaction with the renderers font internals. Further this also removes the need for css internals to be visible in frontends.
* Redraws during layout are prohibited, and redundant.Michael Drake2014-09-271-0/+5
|
* fix DOM tree dump debugVincent Sanders2014-08-041-7/+33
|
* Allow suppression of style dump in box tree dumps.Michael Drake2014-07-131-2/+2
|
* remove unecessary utils/url.h includesVincent Sanders2014-05-091-1/+0
|
* Remove debug logging.Michael Drake2014-03-101-2/+0
|
* Ensure we get gadget from correct box.Michael Drake2014-03-101-1/+1
|
* Add some logging.Michael Drake2014-03-101-2/+4
|
* move scheduleing into browser operation tableVincent Sanders2014-03-091-1/+1
|
* Gadgets can exisit outside forms, so now they store their own ref to the ↵Michael Drake2014-02-171-3/+0
| | | | containing html content.
* Fix #2071: handle parse completion creating style or script nodes.John-Mark Bell2014-02-101-8/+28
|
* Native select menu interface shouldn't force front end to dig inside bw struct.Michael Drake2014-02-081-1/+4
|
* move utf8 local conversion operations to tableVincent Sanders2014-02-011-16/+18
|
* move utf8 conversion routines to use nserror instead of their own error enumVincent Sanders2014-01-281-6/+6
|
* Use corestrings in box construction.Michael Drake2014-01-241-6/+0
|
* Merge branch 'rjek/click-file-gadget'Daniel Silverstone2014-01-051-27/+39
|\
| * Add infrastructure for calling front ends to set file gadget filenames via ↵Rob Kendrick2014-01-051-29/+41
| | | | | | | | clicking in addition to drag-and-drop
* | Support image inputsDaniel Silverstone2014-01-051-1/+1
| |
* | Speculatively start image fetches as we parse the document.John-Mark Bell2014-01-051-0/+35
| |
* | Remove logging now that file upload *seems* to workDaniel Silverstone2014-01-041-4/+0
|/
* Add a bunch of logging to try and help track down the issue with rawfile ↵Daniel Silverstone2014-01-041-0/+4
| | | | handling, sorry guys
* Ensure that file inputs update the dom node and annotate with the unencoded ↵Daniel Silverstone2014-01-041-3/+52
| | | | filename
* Fix leak of html encoding.Michael Drake2013-10-231-0/+7
|
* use correct acessors for unsigned typeVincent Sanders2013-05-281-2/+2
|
* move options includeVincent Sanders2013-05-281-1/+1
|
* Handle title on dom event. Remove head walker from begin_conversion.Michael Drake2013-05-231-81/+27
|
* Move base and link element handling to event callback.Michael Drake2013-05-231-182/+182
|
* Move meta refresh handling to dom event handler.Michael Drake2013-05-221-293/+203
|
* Tiny simplification.Michael Drake2013-05-201-8/+5
|
* Remove search context from browser window, simplify search interface for ↵Michael Drake2013-05-071-30/+4
| | | | | | | | | | | | | | | | | | | | | | front ends. Added content interface for search. Removed bw->cur_search search context. Desktop layer now does nothing except pass search requests from front end onto the bw's current_content via the content interface. Search API reduced to a pair of functions at each level: {desktop|content|html|textplain}_search and {desktop|content|html|textplain}_search_clear Updated front ends to use simplified search API. Only tested GTK and RO builds. These confine the search stuff to render/. However search still uses struct selection. The handling for which is still spread over desktop/ and render/. Also the render/search code itself still fiddles inside html and textplain privates.