summaryrefslogtreecommitdiff
path: root/render/html.c
Commit message (Collapse)AuthorAgeFilesLines
* Split utils header into string functions and everything elseVincent Sanders2016-04-211-0/+1
| | | | | split out the string handling API from the rest of the utils header and fix up all the fallout.
* implement tsla code review points in render monotonic time changeVincent Sanders2016-04-201-15/+16
|
* use monotonic clock call for html reflow timingVincent Sanders2016-04-201-6/+13
|
* HTML: Remove some status bar updating code.Michael Drake2016-02-101-11/+0
|
* Simplify special element handling in node inserted callback.Michael Drake2016-01-291-31/+31
|
* Ensure we do on-demand JS context creation only when JS is enabled.Michael Drake2016-01-211-13/+16
| | | | | | | | | | | An alternative approach which may be better would be to create the JavaScript context when the html_content is created, rather than on demand. This code checks for the JS context and creates one every time we add a node to the DOM. So when JS is on, every doc with a single node in it has a JS context. This seems to make on-demand creation a redundant overhead.
* Fix place where we're calling a js_* fn without checking for context.Michael Drake2016-01-211-1/+3
|
* Ensure constant javascript_enabled for HTML contents.Michael Drake2016-01-211-2/+3
| | | | | | | | | | | | | | | | Now we take the value of the javascript_enabled option when the content is created. We then use the content's script_enabled boolean everywhere else. This prevents us getting inconsistent values for javascript_enabled if a user toggles the setting while a page is loading. It was read frequently during box construction, and also the parser's script enabled setting could change where we handled a change of encoding. Now we only care about the setting of the javascript_enabled option at time of html_content creation.
* 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