summaryrefslogtreecommitdiff
path: root/content/content.h
Commit message (Collapse)AuthorAgeFilesLines
* Add missing #include.John Mark Bell2009-01-151-2/+3
| | | | | | Fix guard macro -- how long has this been wrong, I wonder? svn path=/trunk/netsurf/; revision=6069
* Revert r5478, I didn't notice content struct had a mime_type field.François Revel2008-10-031-1/+0
| | | | svn path=/trunk/netsurf/; revision=5480
* Add a function to tell the mime type for a content type.François Revel2008-10-031-0/+1
| | | | svn path=/trunk/netsurf/; revision=5478
* 'unsigned long' -> 'colour' where it made sense.John Tytgat2008-09-281-2/+2
| | | | svn path=/trunk/netsurf/; revision=5459
* Add libpng support. Default to off.Daniel Silverstone2008-09-151-0/+10
| | | | 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-0/+1
| | | | | | 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-2/+14
| | | | | | fetch. Make it a member instead of pointer in struct content. svn path=/trunk/netsurf/; revision=4246
* Launch redirects to unsupported URLs in other applications.John Mark Bell2008-04-191-0/+2
| | | | svn path=/trunk/netsurf/; revision=4098
* Implement sprite support for GTK using librospriteJames Shaw2008-03-291-0/+6
| | | | svn path=/trunk/netsurf/; revision=4051
* Change meaning of c->redraw_time to be the earliest time to reflow during ↵Rob Kendrick2008-03-111-3/+3
| | | | | | page asset fetch. Have the time selected vary depending on how long the last reflow took. svn path=/trunk/netsurf/; revision=3925
* Periodically reflow the page while fetching a page's objects. Make buffer ↵Michael Drake2008-02-291-1/+5
| | | | | | all rendering default. svn path=/trunk/netsurf/; revision=3874
* Add url_fragment to extract fragment from URLJohn Mark Bell2008-02-031-2/+3
| | | | | | | | 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-1/+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/+1
| | | | | | gtk gui to handle scaling in the same way as RO. svn path=/trunk/netsurf/; revision=3478
* Initial work on RSVG image handler. Still a lot to do.Rob Kendrick2007-07-181-0/+6
| | | | svn path=/trunk/netsurf/; revision=3433
* Wrap internal SVG renderer with appropriate #ifdef WITH_NS_SVGRob Kendrick2007-07-181-0/+4
| | | | svn path=/trunk/netsurf/; revision=3432
* Add CONTENT_SVG to content handling.James Bursa2007-07-131-0/+2
| | | | svn path=/trunk/netsurf/; revision=3406
* Remove the netsurf/ from the include paths and rationalise use of <> vs "" ↵Daniel Silverstone2007-05-301-14/+14
| | | | | | | | | | | | | | 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
* Dynamically update scale view (implement 1556975) and prevent double redraws.Richard Wilson2007-03-031-0/+1
| | | | svn path=/trunk/netsurf/; revision=3191
* Make time taken that is displayed in status bar use gettimeofday()-based ↵Rob Kendrick2007-01-301-2/+1
| | | | | | time rather than clock()-based time svn path=/trunk/netsurf/; revision=3157
* Fix parsing error when an empty HTML data is returned. Add HTTP status and ↵James Bursa2007-01-131-2/+9
| | | | | | 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-1/+2
| | | | | | 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
* Documentation moved to Docs/01-contentJames Bursa2006-11-111-88/+0
| | | | svn path=/trunk/netsurf/; revision=3050
* [project @ 2006-02-26 02:25:19 by rjw]Richard Wilson2006-02-261-0/+2
| | | | | | 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/+6
| | | | | | Support for BMP files svn path=/import/netsurf/; revision=2095
* [project @ 2006-02-23 15:06:53 by jmb]John Mark Bell2006-02-231-2/+11
| | | | | | | | | | Handle invalid SSL certificates better - UI still needs work. Modify fetch callback data parameter type to remove compiler warnings. Constify things. Lose global ssl_verify_certificates option. Fix issue when closing a dialog without input focus. svn path=/import/netsurf/; revision=2092
* [project @ 2006-02-21 20:49:11 by rjw]Richard Wilson2006-02-211-0/+5
| | | | | | 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-0/+2
| | | | | | Rewrite handling of text/plain contents. Now rendered directly instead of converting to HTML. svn path=/import/netsurf/; revision=2078
* [project @ 2006-02-06 00:10:09 by jmb]John Mark Bell2006-02-061-0/+3
| | | | | | 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/+5
| | | | | | Meta refresh support svn path=/import/netsurf/; revision=2039
* [project @ 2005-12-10 14:31:32 by adrianl]Adrian Lees2005-12-101-0/+6
| | | | | | ArtWorks support svn path=/import/netsurf/; revision=1891
* [project @ 2005-10-30 21:22:19 by bursa]James Bursa2005-10-301-4/+6
| | | | | | 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-17/+18
| | | | | | 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-0/+7
| | | | | | 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 02:36:33 by rjw]Richard Wilson2005-04-051-0/+1
| | | | | | 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-01-03 02:09:20 by jmb]John Mark Bell2005-01-031-0/+1
| | | | | | Shift + Click == download svn path=/import/netsurf/; revision=1429
* [project @ 2005-01-02 03:58:20 by jmb]John Mark Bell2005-01-021-1/+1
| | | | | | xcalloc/xrealloc/xstrdup-purge - Lose remaining calls (and purge the relevant functions from utils.c) svn path=/import/netsurf/; revision=1419
* [project @ 2004-10-04 23:54:42 by rjw]Richard Wilson2004-10-041-1/+1
| | | | | | Moved GIF file reading to image/, optimisation of plotting for GIFs, JNGs, PNGs and JPEGs, initial work for toolbar customisation. Possibly some other things too. svn path=/import/netsurf/; revision=1301
* [project @ 2004-09-03 22:44:47 by bursa]James Bursa2004-09-031-8/+6
| | | | | | Add generic bitmap functions. Move jpeg and mng code from riscos/ to image/ and update to use bitmap. Note: background tiling and drawfile export for jpeg and mng/png are broken. svn path=/import/netsurf/; revision=1265
* [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-11 22:08:25 by bursa]James Bursa2004-08-111-22/+10
| | | | | | 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 19:02:32 by bursa]James Bursa2004-08-111-5/+17
| | | | | | Start work on removing instances and making content types non-shareable. Clean up some #includes. svn path=/import/netsurf/; revision=1211
* [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 16:16:07 by bursa]James Bursa2004-07-301-0/+1
| | | | | | Implement content_quit() and ro_gui_window_quit() to free resources on quit. svn path=/import/netsurf/; revision=1164
* [project @ 2004-07-16 19:47:02 by rjw]Richard Wilson2004-07-161-0/+6
| | | | | | Fix for hotlist menu selection. Interface for MNG/JNG display. svn path=/import/netsurf/; revision=1083
* [project @ 2004-06-23 15:41:50 by bursa]James Bursa2004-06-231-0/+4
| | | | | | Fix fetchcache_go() treatment of contents which the initiator loses interest in (eg. wrong content-type). svn path=/import/netsurf/; revision=997
* [project @ 2004-06-22 17:37:51 by bursa]James Bursa2004-06-221-1/+2
| | | | | | Fix aborting of fetches. svn path=/import/netsurf/; revision=990