summaryrefslogtreecommitdiff
path: root/render/html.h
Commit message (Collapse)AuthorAgeFilesLines
* Rework handling of HTTP redirects -- we now count the number of redirects ↵John Mark Bell2008-01-281-1/+0
| | | | | | | | | | | | | | | | | | | | followed for a given item and abort if a fixed limit is reached. This fixes sites which have pages that redirect to themselves. Redirect handling is now transparent to clients of fetchcache. The new scheme works as follows: 1) Request content for URL (fetchcache() 2) Start fetch of content (fetchcache_go() 3) If no redirect, continue through LOADING, READY, DONE etc. states as before If redirect, receive NEWPTR for each redirect that occurs, then continue through LOADING, READY, DONE etc. states as before. The upshot of this is that redirects result in extra contents being created. It also means that, until LOADING has been received, the content (and thus the URL being fetched) may change. Therefore, fetchcache clients should expect to have to deal with transient data prior to LOADING occurring. As a necessary side-effect of this, the HTML object URLs and CSS @import URLs are no longer stored alongside the relevant contents. These URLs can be accessed by interrogating the url member of struct content anyway, so it was a rather redundant scheme before. svn path=/trunk/netsurf/; revision=3787
* Update all source code file headers to reflect GPL version 2 only and ↵Vincent Sanders2007-08-081-3/+14
| | | | | | contain appropriate licence text svn path=/trunk/netsurf/; revision=3486
* Remove the netsurf/ from the include paths and rationalise use of <> vs "" ↵Daniel Silverstone2007-05-301-3/+3
| | | | | | | | | | | | | | in includes NetSurf includes are now done with ""s and other system includes with <>s as C intended. The scandeps tool has been updated to only look for ""ed includes, and to verify that the files exist in the tree before adding them to the dependency lines. The depend rule has therefore been augmented to make sure the autogenerated files are built before it is run. This is untested under self-hosted RISC OS builds. All else tested and works. svn path=/trunk/netsurf/; revision=3307
* Update project URL.Michael Drake2006-11-271-7/+7
| | | | svn path=/trunk/netsurf/; revision=3073
* Experimental new frames code.Richard Wilson2006-09-021-4/+62
| | | | svn path=/trunk/netsurf/; revision=2906
* [project @ 2006-02-15 23:09:53 by adrianl]Adrian Lees2006-02-151-0/+14
| | | | | | Extend text selection, copying, saving and searching code to handle textplain contents; modified textplain code to accept other line terminators svn path=/import/netsurf/; revision=2081
* [project @ 2005-10-30 21:23:03 by bursa]James Bursa2005-10-301-1/+15
| | | | | | Add page, index, and box to struct content_html_data. Implement html_replace_object() and html_find_target(). No longer combine box trees of frames and frameset (was causing crashes). svn path=/import/netsurf/; revision=1874
* [project @ 2005-08-20 22:52:20 by bursa]James Bursa2005-08-201-4/+5
| | | | | | Work towards implementing link target frames: add target attribute to struct box, add frame to struct content_html_object and html_fetch_object(). svn path=/import/netsurf/; revision=1849
* [project @ 2005-05-21 23:30:19 by bursa]James Bursa2005-05-211-0/+2
| | | | | | Improve selector specificity support by adding "working stylesheets" with pre-sorted lists of rules. This also simplifies css_get_style(). The stylesheet origin is now encoded in the specificity. Improve output of css_dump_style(). svn path=/import/netsurf/; revision=1729
* [project @ 2005-04-09 09:47:36 by bursa]James Bursa2005-04-091-6/+4
| | | | | | Move HTML contents almost fully over to talloc(), simplifying code. Improvements to title attributes, broken forms, cellpadding. Reorder functions in box_construct.c. svn path=/import/netsurf/; revision=1608
* [project @ 2005-02-20 13:18:21 by bursa]James Bursa2005-02-201-2/+0
| | | | | | Font rewrite, part 2. svn path=/import/netsurf/; revision=1518
* [project @ 2005-01-01 22:05:20 by bursa]James Bursa2005-01-011-11/+19
| | | | | | xcalloc/xrealloc/xstrdup-purge week, part 5. Improve and simplify encoding detection. svn path=/import/netsurf/; revision=1416
* [project @ 2004-10-17 22:13:34 by jmb]John Mark Bell2004-10-171-0/+3
| | | | | | Lose hard-coded stylesheet URLs. svn path=/import/netsurf/; revision=1323
* [project @ 2004-10-17 21:10:19 by bursa]James Bursa2004-10-171-2/+6
| | | | | | Move box tree from html.layout->children to html.layout. Work on scrollbars. svn path=/import/netsurf/; revision=1314
* [project @ 2004-08-15 19:06:23 by jmb]John Mark Bell2004-08-151-1/+1
| | | | | | | | | Rationalise image redraw. Supply background colour when redrawing contents Reenable printing of background images Require Tinct 0.07 svn path=/import/netsurf/; revision=1234
* [project @ 2004-08-14 12:57:00 by joty]John Tytgat2004-08-141-1/+1
| | | | | | Using more stddef.h types. svn path=/import/netsurf/; revision=1230
* [project @ 2004-08-11 22:08:25 by bursa]James Bursa2004-08-111-10/+6
| | | | | | Remove content_add_instance(), content_remove_instance(), content_reshape_instance(). Add content_open(), content_close(). Implement for CONTENT_HTML. svn path=/import/netsurf/; revision=1213
* [project @ 2004-08-11 16:26:13 by jmb]John Mark Bell2004-08-111-1/+1
| | | | | | | | | | | Make content_redraw return a bool Printing of foreground images now uses OS_SpriteOp Printing of background images disabled Mega-paranoid SWI result checking in htmlredraw.c Rearranged GIF data structure slightly - updates to reflect this. Other stuff I've probably forgotten svn path=/import/netsurf/; revision=1208
* [project @ 2004-07-30 23:40:00 by jmb]John Mark Bell2004-07-301-2/+7
| | | | | | | | Rework stylesheet fetching code to remove dependence on magic numbers (now uses values defined in html.h) Make ad blocking optional. svn path=/import/netsurf/; revision=1168
* [project @ 2004-07-18 17:38:01 by bursa]James Bursa2004-07-181-17/+2
| | | | | | Improve form control interaction code. Replace box_under_area() with simpler box_at_point(). Detect objects for menu once on menu opening. Remove obsolete text selection code. svn path=/import/netsurf/; revision=1096
* [project @ 2004-06-20 23:09:51 by bursa]James Bursa2004-06-201-0/+1
| | | | | | Implement content_stop() and html_stop(). svn path=/import/netsurf/; revision=982
* [project @ 2004-06-10 20:41:26 by bursa]James Bursa2004-06-101-8/+7
| | | | | | Add global content list. Better error handling in content code. Improved code documentation. Remove some obsolete functions. Implement debug window listing contents. svn path=/import/netsurf/; revision=951
* [project @ 2004-06-09 23:13:55 by bursa]James Bursa2004-06-091-1/+2
| | | | | | Fix double-free of background image url. Add background parameter to html_fetch_object(). svn path=/import/netsurf/; revision=944
* [project @ 2004-06-09 19:55:06 by jmb]John Mark Bell2004-06-091-0/+2
| | | | | | | | | Implement background-image, background-repeat, background-position and background-attachment CSS properties. background-attachment and background-position need more work. Some redraw issues remain. svn path=/import/netsurf/; revision=938
* [project @ 2004-05-21 14:26:59 by bursa]James Bursa2004-05-211-1/+2
| | | | | | Improved handling of objects and frames; some work on malloc() failure in box conversion. svn path=/import/netsurf/; revision=880
* [project @ 2004-05-09 16:49:53 by joty]John Tytgat2004-05-091-1/+1
| | | | | | Type change of struct content_html.encoding from xmlCharEncoding to xmlChar; Pickup Content-Type charset in the HTML file and use this if the server didn't send it or there was no server involved (e.g. HTML loading from disk). svn path=/import/netsurf/; revision=846
* [project @ 2004-03-26 22:16:31 by jmb]John Mark Bell2004-03-261-0/+3
| | | | | | Imagemap support svn path=/import/netsurf/; revision=671
* [project @ 2004-03-24 20:10:03 by jmb]John Mark Bell2004-03-241-1/+0
| | | | | | | Remove need for XML parse tree to be kept in memory. The source document is now reparsed when saving complete. svn path=/import/netsurf/; revision=662
* [project @ 2004-03-24 00:07:21 by jmb]John Mark Bell2004-03-241-0/+1
| | | | | | | | | | | Add URL rewriting for most URLs. Still TODO: 1) rewriting of @import rules 2) Objects used by embedded html pages NB. This change means that the XML parse tree is kept in memory until the content is freed. svn path=/import/netsurf/; revision=659
* [project @ 2004-03-11 02:19:13 by bursa]James Bursa2004-03-111-2/+0
| | | | | | Add source_data to content structure and remove equivalents from individual contents. svn path=/import/netsurf/; revision=606
* [project @ 2004-03-08 18:21:21 by jmb]John Mark Bell2004-03-081-0/+1
| | | | | | Attempt to detect document charset encoding if the server doesn't send it. svn path=/import/netsurf/; revision=592
* [project @ 2004-02-25 15:12:57 by bursa]James Bursa2004-02-251-1/+2
| | | | | | Implement scaling; rewrite desktop/browser; add riscos/thumbnail; rewrite history. svn path=/import/netsurf/; revision=566
* [project @ 2004-02-20 00:43:17 by bursa]James Bursa2004-02-201-12/+34
| | | | | | Fix html_destroy() crash, add documentation. svn path=/import/netsurf/; revision=562
* [project @ 2004-02-15 20:39:53 by bursa]James Bursa2004-02-151-2/+1
| | | | | | Document box.h, remove struct page_elements. svn path=/import/netsurf/; revision=547
* [project @ 2004-01-24 17:08:15 by bursa]James Bursa2004-01-241-1/+6
| | | | | | Add permitted_types to html_fetch_object(). svn path=/import/netsurf/; revision=500
* [project @ 2004-01-02 12:04:04 by bursa]James Bursa2004-01-021-0/+3
| | | | | | Use memory pool for box tree. svn path=/import/netsurf/; revision=477
* [project @ 2003-12-27 20:15:22 by bursa]James Bursa2003-12-271-1/+1
| | | | | | Use charset from Content-Type header. svn path=/import/netsurf/; revision=460
* [project @ 2003-12-26 00:17:55 by bursa]James Bursa2003-12-261-0/+1
| | | | | | New url_join using liburi, <base href=...>. svn path=/import/netsurf/; revision=441
* [project @ 2003-11-12 22:22:45 by jmb]John Mark Bell2003-11-121-0/+4
| | | | | | | Begin frames support. Just data structure handling for now. None of this code is called atm. svn path=/import/netsurf/; revision=416
* [project @ 2003-09-10 17:10:25 by bursa]James Bursa2003-09-101-1/+2
| | | | | | Set graphics window when rendering objects. svn path=/import/netsurf/; revision=279
* [project @ 2003-09-07 21:08:13 by bursa]James Bursa2003-09-071-1/+41
| | | | | | Document cache and content, split struct content up. svn path=/import/netsurf/; revision=270
* [project @ 2003-09-03 21:58:54 by jmb]John Mark Bell2003-09-031-0/+3
| | | | | | Call content_reshape_instance svn path=/import/netsurf/; revision=265
* [project @ 2003-07-15 14:37:34 by bursa]James Bursa2003-07-151-0/+2
| | | | | | Implement html_redraw. svn path=/import/netsurf/; revision=218
* [project @ 2003-07-14 22:57:45 by bursa]James Bursa2003-07-141-0/+6
| | | | | | Add content instances. svn path=/import/netsurf/; revision=216
* [project @ 2003-06-30 12:44:02 by bursa]James Bursa2003-06-301-2/+5
| | | | | | New file headers. svn path=/import/netsurf/; revision=190
* [project @ 2003-06-17 19:24:20 by bursa]James Bursa2003-06-171-2/+2
| | | | | | Change fetchcache system to store loading contents in cache. svn path=/import/netsurf/; revision=180
* [project @ 2003-04-15 17:53:00 by bursa]James Bursa2003-04-151-1/+2
| | | | | | Inline images and related. svn path=/import/netsurf/; revision=125
* [project @ 2003-02-09 12:58:14 by bursa]James Bursa2003-02-091-0/+17
Reorganization and rewrite of fetch, cache, and content handling. svn path=/import/netsurf/; revision=96