summaryrefslogtreecommitdiff
path: root/render/html.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix comment.Michael Drake2010-11-031-1/+1
| | | | svn path=/trunk/netsurf/; revision=10935
* Fix crash when top-level content is not HTML and there is a fragment ↵John Mark Bell2010-10-111-2/+4
| | | | | | | | identifier in the URL. Constify. svn path=/trunk/netsurf/; revision=10881
* Change back to using tree directly because element navigation functions ↵James Bursa2010-09-161-2/+4
| | | | | | require libxml2 2.7.3 which is not available everywhere. svn path=/trunk/netsurf/; revision=10790
* Use libxml functions to loop through elements in html_head() instead of ↵James Bursa2010-09-161-5/+2
| | | | | | checking all nodes. Remove logging. svn path=/trunk/netsurf/; revision=10788
* Pedantic whitespace changeJohn Mark Bell2010-06-301-1/+1
| | | | svn path=/trunk/netsurf/; revision=10590
* + Refactor input handling from browser window code into contentMichael Drake2010-06-041-0/+45
| | | | | | | | | | | | | handlers. + Disentangle all box tree manipulation from browser window code and put it where it belongs. + Move other content specific and other irrelevant code from browser window handling to appropriate places. + Put mouse state enum in new mouse header, since it's not just used by browser window code, and it is used by treeview windows on the treeview branch. svn path=/trunk/netsurf/; revision=10561
* Consolidate several 'myrealloc' functions into ns_realloc, rename one which ↵Daniel Silverstone2010-04-301-19/+1
| | | | | | *is* different, thereby eliminating the word 'myrealloc' from the NS codebase svn path=/trunk/netsurf/; revision=10530
* It turns out that realloc(ptr, 0) --> free(ptr) is not actually required by ↵John Mark Bell2010-04-301-0/+5
| | | | | | | | the C standard (whereas realloc(NULL, size) --> malloc(size) is). Therefore, explicitly model the behaviour expected by our libraries (that realloc of 0 size is equivalent to free). svn path=/trunk/netsurf/; revision=10524
* First step to fixing memory leaks -- Box model no longer leaks computed stylesDaniel Silverstone2010-04-271-1/+1
| | | | svn path=/trunk/netsurf/; revision=10500
* Update comment for new cache.Michael Drake2010-04-251-1/+1
| | | | svn path=/trunk/netsurf/; revision=10481
* remove _GNU_SOURCE define from everywhere.Vincent Sanders2010-04-241-2/+0
| | | | | | strndup is not standard so provide an implementation. svn path=/trunk/netsurf/; revision=10474
* Use API to invalidate content freshness informationJohn Mark Bell2010-04-121-1/+1
| | | | svn path=/trunk/netsurf/; revision=10387
* Remove need to constantly type c->data.html in html_destroy().John Mark Bell2010-04-111-37/+40
| | | | | | Fix destruction of linked and inline stylesheets to ensure that the pointer is non-NULL before trying to destroy it. svn path=/trunk/netsurf/; revision=10364
* Merge jmb/kill-reentrancy. r=vinceJohn Mark Bell2010-04-111-84/+110
| | | | svn path=/trunk/netsurf/; revision=10346
* Catch calls to html_clone, which is guaranteed to result in breakage, so ↵John Mark Bell2010-04-101-0/+6
| | | | | | it's safer to just die, rather than limp on. svn path=/trunk/netsurf/; revision=10341
* Add encoding source getter.Michael Drake2010-04-071-0/+16
| | | | svn path=/trunk/netsurf/; revision=10269
* Release favicon when HTML content is destroyedJohn Mark Bell2010-04-041-0/+5
| | | | svn path=/trunk/netsurf/; revision=10239
* Make the high-level cache drop contents of unacceptable type on the floor.John Mark Bell2010-04-041-4/+7
| | | | svn path=/trunk/netsurf/; revision=10238
* Most of a stop implementation.John Mark Bell2010-04-041-1/+6
| | | | | | | | | Remaining work: 1) Clone content_html_data 2) Cloning content_css_data requires the charset of the old content 3) Calling hlcache_handle_abort() before a content has been created must clean up the retrieval context. svn path=/trunk/netsurf/; revision=10236
* Constify data parameter to *_process_dataJohn Mark Bell2010-04-031-4/+4
| | | | svn path=/trunk/netsurf/; revision=10234
* Remove pointless destruction of bitmap: HTML contents will never have one.John Mark Bell2010-04-031-5/+0
| | | | svn path=/trunk/netsurf/; revision=10232
* Use mutator to modify content's title field.John Mark Bell2010-04-031-8/+8
| | | | svn path=/trunk/netsurf/; revision=10231
* The convert stage of a content's state progression no longer reflows the ↵John Mark Bell2010-03-291-31/+13
| | | | | | | | | | | | | content to the provided dimensions. It is now defined as converting the content into a state in which it is ready for use. The user of the content is now responsible for performing an initial reformat (sic) of the content before it can be redrawn. Purge width/height parameters from hlcache_handle_retrieve/content_convert/*_convert APIs. Fix up content handlers affected by the above change in semantics. Ensure that browser_window_callback performs an initial reformat of its content. svn path=/trunk/netsurf/; revision=10207
* Replace fetch_poll with llcache_poll throughout. Allow CONTENT_OTHER to ↵Daniel Silverstone2010-03-281-1/+1
| | | | | | complete properly. svn path=/trunk/netsurf/; revision=10187
* Remove fetchcache.[ch]Daniel Silverstone2010-03-281-1/+0
| | | | svn path=/trunk/netsurf/; revision=10183
* Ensure we honour html_fetch_object's API properly regarding NOMEM behaviourDaniel Silverstone2010-03-281-19/+18
| | | | svn path=/trunk/netsurf/; revision=10181
* Merge jmb/new-cache; r=dsilvers,rs=vinceDaniel Silverstone2010-03-281-391/+534
| | | | svn path=/trunk/netsurf/; revision=10180
* Remove apparently spurious status update.John Mark Bell2010-02-101-2/+0
| | | | svn path=/trunk/netsurf/; revision=9963
* fix box_dump callVincent Sanders2010-01-281-1/+1
| | | | | | fix spurious newlines in log message svn path=/trunk/netsurf/; revision=9919
* Merge branches/MarkieB/gtkmain to trunk.John Mark Bell2009-12-171-2/+6
| | | | svn path=/trunk/netsurf/; revision=9729
* Squash memory leakJohn Mark Bell2009-11-221-2/+3
| | | | svn path=/trunk/netsurf/; revision=9691
* Include size of lwc_context in content size.John Mark Bell2009-07-281-0/+2
| | | | svn path=/trunk/netsurf/; revision=8835
* Shrink allocated <style> source data block to minimum.John Mark Bell2009-07-271-14/+29
| | | | svn path=/trunk/netsurf/; revision=8828
* Consider stylesheet media typesJohn Mark Bell2009-07-271-121/+126
| | | | svn path=/trunk/netsurf/; revision=8820
* Fix crash when a style element is not used because of mismatched media or type.John Mark Bell2009-07-241-16/+19
| | | | svn path=/trunk/netsurf/; revision=8768
* Merge LibCSS port to trunk.John Mark Bell2009-07-231-73/+118
| | | | svn path=/trunk/netsurf/; revision=8752
* Rename TRANSPARENT to NS_TRANSPARENT to avoid clash on Windows. By MarkieB.Michael Drake2009-07-141-1/+1
| | | | svn path=/trunk/netsurf/; revision=8513
* Replace parent_url with a pointer to the parent content.John Mark Bell2009-07-101-5/+5
| | | | svn path=/trunk/netsurf/; revision=8428
* Hubbub is no longer optional.John Mark Bell2009-04-171-4/+0
| | | | | | Remove libxml2 parser binding. svn path=/trunk/netsurf/; revision=7115
* Handle hubbub errors.John Mark Bell2009-04-151-3/+25
| | | | | | Handle parser binding errors. svn path=/trunk/netsurf/; revision=7087
* Purge WITH_AUTHJohn Mark Bell2009-02-221-4/+0
| | | | svn path=/trunk/netsurf/; revision=6600
* Purge NETSURF_USE_SSL and WITH_SSLJohn Mark Bell2009-02-221-4/+0
| | | | svn path=/trunk/netsurf/; revision=6599
* If we have no document charset on completion of parse, retrieve it from the ↵John Mark Bell2009-02-201-1/+25
| | | | | | | | | | binding. Make the binding return Windows-1252 if it has no idea (as this is what the parser will have defaulted to). Fix form_new to not require a document charset to be present -- it may not be known at this point. Fixup form document charsets post-parse, so that form submission works correctly. svn path=/trunk/netsurf/; revision=6575
* Utilise hubbub's form association callback.John Mark Bell2009-02-201-2/+37
| | | | | | | | Please can we dispense with the libxml binding? It's causing much #ifdef mess. Fix encoding of <input type=image> names -- previously were output as raw utf-8, rather than in the submission charset. Actually bother to destroy forms in a document, and the controls associated with them. We still leak non form-associated controls, but that's too much effort to fix right now. svn path=/trunk/netsurf/; revision=6573
* Ensure URLs are normalized prior to fetching.John Mark Bell2009-02-101-6/+41
| | | | | | Squash memory leaks. svn path=/trunk/netsurf/; revision=6411
* Charset fallbacks. If we don't support the charset declared in the HTTP ↵John Mark Bell2009-01-061-0/+27
| | | | | | header, fall back to autodetect. If we don't support the charset declared in a meta charset, fall back to Windows-1252. svn path=/trunk/netsurf/; revision=5974
* It's probably a good idea if we're consistent in which allocation routines ↵John Mark Bell2009-01-061-3/+6
| | | | | | we're using. svn path=/trunk/netsurf/; revision=5972
* More lenient refresh delay parsingJohn Mark Bell2008-12-301-2/+10
| | | | svn path=/trunk/netsurf/; revision=5948
* Process error page correctly.John Mark Bell2008-11-201-3/+31
| | | | | | TODO: Why don't *_process_data take a const pointer to the data? svn path=/trunk/netsurf/; revision=5757
* Don't care about chunk sizes.John Mark Bell2008-11-091-4/+0
| | | | svn path=/trunk/netsurf/; revision=5671