summaryrefslogtreecommitdiff
path: root/content/content.c
Commit message (Collapse)AuthorAgeFilesLines
* Add libpng support. Default to off.Daniel Silverstone2008-09-151-3/+17
| | | | svn path=/trunk/netsurf/; revision=5330
* Constify content_type_name & content_status_nameJohn Tytgat2008-07-301-2/+2
| | | | svn path=/trunk/netsurf/; revision=4815
* Performance improvements: rather than calling content_clean() every poll, we ↵Rob Kendrick2008-07-071-2/+3
| | | | | | now call it no more frequently than once every 5 seconds. Additionally, we cache the result of talloc_total_size() in content_clean() rather than calculating it twice. On large documents, this function took 25% of CPU time. This makes the fetching/rendering/scrolling/redrawing of large documents over twice as fast. svn path=/trunk/netsurf/; revision=4527
* Move struct cache_data from fetch to content as it is no longer needed by ↵James Bursa2008-06-031-14/+9
| | | | | | fetch. Make it a member instead of pointer in struct content. svn path=/trunk/netsurf/; revision=4246
* Implement sprite support for GTK using librospriteJames Shaw2008-03-291-2/+9
| | | | svn path=/trunk/netsurf/; revision=4051
* Make content_reset actually do what it's meant to (i.e. reset the ↵John Mark Bell2008-02-271-0/+7
| | | | | | | | appropriate members) Fix up CONTENT_MSG_REFRESH scheduled events to gracefully the refresh URL disappearing from under them. svn path=/trunk/netsurf/; revision=3870
* Add url_fragment to extract fragment from URLJohn Mark Bell2008-02-031-0/+1
| | | | | | | | Optionally allow url_compare to ignore fragments in comparison Fix handling of url_compare result in a few places Fix redirects which contain fragments in the Location header svn path=/trunk/netsurf/; revision=3826
* Rework handling of HTTP redirects -- we now count the number of redirects ↵John Mark Bell2008-01-281-0/+1
| | | | | | | | | | | | | | | | | | | | 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
* Move window scaling from platform-specific code to desktop/browser.c. Modify ↵James Bursa2007-08-071-1/+2
| | | | | | gtk gui to handle scaling in the same way as RO. svn path=/trunk/netsurf/; revision=3478
* Fix crash when building error page -- fetch will be NULL, so ↵John Mark Bell2007-08-061-1/+2
| | | | | | fetch_get_referer will fail. svn path=/trunk/netsurf/; revision=3476
* Change ArtWorks file MIME type to "image/x-artworks".Michael Drake2007-07-211-6/+3
| | | | svn path=/trunk/netsurf/; revision=3449
* Add SVG content name to content_type_name array.John Mark Bell2007-07-211-0/+3
| | | | svn path=/trunk/netsurf/; revision=3448
* Add incremental parsing of SVG data to librsvg content handler.Rob Kendrick2007-07-191-1/+1
| | | | svn path=/trunk/netsurf/; revision=3441
* Initial work on RSVG image handler. Still a lot to do.Rob Kendrick2007-07-181-1/+8
| | | | svn path=/trunk/netsurf/; revision=3433
* Wrap internal SVG renderer with appropriate #ifdef WITH_NS_SVGRob Kendrick2007-07-181-0/+6
| | | | svn path=/trunk/netsurf/; revision=3432
* Add CONTENT_SVG to content handling.James Bursa2007-07-131-0/+5
| | | | svn path=/trunk/netsurf/; revision=3406
* Remove the netsurf/ from the include paths and rationalise use of <> vs "" ↵Daniel Silverstone2007-05-301-23/+23
| | | | | | | | | | | | | | 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
* Fix abort on attempted destruction of CONTENT_DIRECTORY (1690222)John Mark Bell2007-03-281-3/+1
| | | | svn path=/trunk/netsurf/; revision=3228
* Lose noisy loggingJohn Mark Bell2007-03-181-3/+3
| | | | svn path=/trunk/netsurf/; revision=3213
* Ensure content structures are zero initialised.John Mark Bell2007-03-181-1/+1
| | | | | | | | | Make css_destroy check that the stylesheet pointer exists (content destructors may be called whilst the content is still loading - e.g. if the content type isn't permissable in the context it was loaded from). Fixes 1627413, 1580980. svn path=/trunk/netsurf/; revision=3212
* Improve debug output so that content usage may be tracedJohn Mark Bell2007-03-181-9/+17
| | | | svn path=/trunk/netsurf/; revision=3210
* Content handlers should not call warn_user - they should broadcast the John Mark Bell2007-03-111-4/+0
| | | | | | | | | | error using content_broadcast and leave it to the content owner(s) to decide what to do about it. Only use warn_user for top-level contents. svn path=/trunk/netsurf/; revision=3204
* Dynamically update scale view (implement 1556975) and prevent double redraws.Richard Wilson2007-03-031-0/+11
| | | | svn path=/trunk/netsurf/; revision=3191
* Fix handling of cookies in unverifiable transactions caused by a redirect ↵John Mark Bell2007-02-021-2/+5
| | | | | | from a fetch into a browser window which was varifiable. svn path=/trunk/netsurf/; revision=3165
* Make time taken that is displayed in status bar use gettimeofday()-based ↵Rob Kendrick2007-01-301-5/+5
| | | | | | time rather than clock()-based time svn path=/trunk/netsurf/; revision=3157
* Make GTK build compile on FreeBSD.James Bursa2007-01-291-0/+1
| | | | svn path=/trunk/netsurf/; revision=3154
* Handle cookies in unverifiable transactionsJohn Mark Bell2007-01-271-1/+2
| | | | svn path=/trunk/netsurf/; revision=3151
* Fix parsing error when an empty HTML data is returned. Add HTTP status and ↵James Bursa2007-01-131-6/+54
| | | | | | other information to status bar. svn path=/trunk/netsurf/; revision=3140
* Improved tracking of memory usage. c->size is now exclusive of talloc size, ↵James Bursa2006-12-031-7/+4
| | | | | | and the two are added to find the full size. svn path=/trunk/netsurf/; revision=3103
* Update project URL.Michael Drake2006-11-271-1/+1
| | | | svn path=/trunk/netsurf/; revision=3073
* Experimental new frames code.Richard Wilson2006-09-021-1/+1
| | | | svn path=/trunk/netsurf/; revision=2906
* Generate directory listings (fix 1397934)Richard Wilson2006-07-061-0/+7
| | | | svn path=/trunk/netsurf/; revision=2719
* [project @ 2006-02-26 02:25:19 by rjw]Richard Wilson2006-02-261-0/+14
| | | | | | Add support for ICO files. svn path=/import/netsurf/; revision=2096
* [project @ 2006-02-25 18:50:34 by rjw]Richard Wilson2006-02-251-0/+40
| | | | | | Support for BMP files svn path=/import/netsurf/; revision=2095
* [project @ 2006-02-21 20:49:11 by rjw]Richard Wilson2006-02-211-28/+99
| | | | | | Allow any content to be used as a background. Simplify bitmap code. svn path=/import/netsurf/; revision=2087
* [project @ 2006-02-12 23:07:28 by bursa]James Bursa2006-02-121-1/+2
| | | | | | Rewrite handling of text/plain contents. Now rendered directly instead of converting to HTML. svn path=/import/netsurf/; revision=2078
* [project @ 2006-02-08 00:35:05 by jmb]John Mark Bell2006-02-081-0/+1
| | | | | | Handle case where no cache expiry headers are sent; use (now - last_modified) / 10. This should reduce the frequency of cache entry validation. svn path=/import/netsurf/; revision=2064
* [project @ 2006-02-06 00:10:09 by jmb]John Mark Bell2006-02-061-0/+49
| | | | | | Implement HTTP caching algorithm; this should avoid stale cache entries being used. svn path=/import/netsurf/; revision=2059
* [project @ 2006-01-25 06:52:38 by jmb]John Mark Bell2006-01-251-0/+1
| | | | | | Meta refresh support svn path=/import/netsurf/; revision=2039
* [project @ 2005-12-11 21:54:30 by bursa]James Bursa2005-12-111-1/+0
| | | | | | Disable some log messages. svn path=/import/netsurf/; revision=1896
* [project @ 2005-12-10 14:31:32 by adrianl]Adrian Lees2005-12-101-0/+16
| | | | | | ArtWorks support svn path=/import/netsurf/; revision=1891
* [project @ 2005-10-30 21:22:19 by bursa]James Bursa2005-10-301-3/+12
| | | | | | Add index parameter to content_open(). svn path=/import/netsurf/; revision=1872
* [project @ 2005-08-21 12:04:17 by bursa]James Bursa2005-08-211-19/+23
| | | | | | Change void * parameters to intptr_t to make them correct for storing integers or pointers. svn path=/import/netsurf/; revision=1852
* [project @ 2005-07-05 22:43:38 by bursa]James Bursa2005-07-051-3/+22
| | | | | | Add locked attribute to content structure and use it to ignore content_redraw() during _convert() or _reformat(). svn path=/import/netsurf/; revision=1787
* [project @ 2005-04-05 17:19:58 by rjw]Richard Wilson2005-04-051-1/+1
| | | | | | Add sanity checks to Sprite file handling and simplify code. svn path=/import/netsurf/; revision=1600
* [project @ 2005-04-05 02:36:33 by rjw]Richard Wilson2005-04-051-11/+29
| | | | | | Reduce re-allocation of memory when receiving files (drastically increases the speed of loading large files locally). Sprite files no longer require two copies of their data. svn path=/import/netsurf/; revision=1598
* [project @ 2005-04-03 10:58:24 by bursa]James Bursa2005-04-031-20/+15
| | | | | | Use talloc for content structures. svn path=/import/netsurf/; revision=1592
* [project @ 2005-04-01 02:25:11 by jmb]John Mark Bell2005-04-011-0/+3
| | | | | | | application/xhtml+xml -> CONTENT_HTML Fix minor issue with mimetype matching regexp. svn path=/import/netsurf/; revision=1587
* [project @ 2005-01-24 23:02:37 by bursa]James Bursa2005-01-241-1/+3
| | | | | | Reformat pages loaded from memory cache to window width. svn path=/import/netsurf/; revision=1467