Commit Graph

297 Commits

Author SHA1 Message Date
James Bursa 7a71363d76 [project @ 2005-01-01 22:05:20 by bursa]
xcalloc/xrealloc/xstrdup-purge week, part 5. Improve and simplify encoding detection.

svn path=/import/netsurf/; revision=1416
2005-01-01 22:05:21 +00:00
James Bursa 1d0ef6335c [project @ 2004-12-13 22:17:43 by bursa]
xcalloc/xrealloc/xstrdup-purge week, part 3.

svn path=/import/netsurf/; revision=1403
2004-12-13 22:17:43 +00:00
John Mark Bell 76efc5a0d0 [project @ 2004-12-08 00:33:25 by jmb]
Update to work with new imagemap interface

svn path=/import/netsurf/; revision=1391
2004-12-08 00:33:25 +00:00
John Mark Bell fff5f231ed [project @ 2004-10-17 22:13:34 by jmb]
Lose hard-coded stylesheet URLs.

svn path=/import/netsurf/; revision=1323
2004-10-17 22:13:35 +00:00
James Bursa fd4e3de0b5 [project @ 2004-10-17 21:10:19 by bursa]
Move box tree from html.layout->children to html.layout. Work on scrollbars.

svn path=/import/netsurf/; revision=1314
2004-10-17 21:10:19 +00:00
John Tytgat 402c4ca66c [project @ 2004-08-14 14:30:10 by joty]
Removed a chunk of Norcroft compiler warnings.  Re-ident some pieces.

svn path=/import/netsurf/; revision=1231
2004-08-14 14:30:12 +00:00
John Tytgat 7d3a242132 [project @ 2004-08-14 12:57:00 by joty]
Using more stddef.h types.

svn path=/import/netsurf/; revision=1230
2004-08-14 12:57:02 +00:00
James Bursa acfb4c0adb [project @ 2004-08-11 22:08:25 by bursa]
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
2004-08-11 22:08:26 +00:00
James Bursa bc727dda1c [project @ 2004-08-11 19:02:32 by bursa]
Start work on removing instances and making content types non-shareable. Clean up some #includes.

svn path=/import/netsurf/; revision=1211
2004-08-11 19:02:32 +00:00
John Mark Bell c9bd6fa9fc [project @ 2004-08-09 16:11:58 by jmb]
Rework the interface of the URL handing module to allow for multiple error types.
Modify save_complete URL rewriting appropriately.

svn path=/import/netsurf/; revision=1206
2004-08-09 16:11:58 +00:00
John Mark Bell 8e650e3e39 [project @ 2004-07-30 23:40:00 by jmb]
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
2004-07-30 23:40:01 +00:00
John Mark Bell 51af46fde6 [project @ 2004-07-16 20:26:49 by jmb]
Preliminary overflow support. This also goes some way to making the horizontal scrollbar work.

svn path=/import/netsurf/; revision=1088
2004-07-16 20:26:49 +00:00
John Tytgat a0d511734a [project @ 2004-07-05 20:19:51 by joty]
Using UTF-8 instead of Latin1 encoding.

svn path=/import/netsurf/; revision=1049
2004-07-05 20:19:52 +00:00
James Bursa 496bfa6d74 [project @ 2004-06-24 23:29:31 by bursa]
Simplify and improve parse_background_position(). Implement css_parse_rgb(). Fix truncation of paragraphs with background images.

svn path=/import/netsurf/; revision=1003
2004-06-24 23:29:31 +00:00
James Bursa b4723c1d05 [project @ 2004-06-21 15:09:58 by bursa]
Merge memory cache into content module.

svn path=/import/netsurf/; revision=986
2004-06-21 15:09:59 +00:00
James Bursa f8825b81e4 [project @ 2004-06-20 23:09:51 by bursa]
Implement content_stop() and html_stop().

svn path=/import/netsurf/; revision=982
2004-06-20 23:09:52 +00:00
John Tytgat 3ccc79bc81 [project @ 2004-06-12 20:08:47 by joty]
html_find_stylesheets() : returns void, not bool.

svn path=/import/netsurf/; revision=968
2004-06-12 20:08:47 +00:00
James Bursa d938fe135b [project @ 2004-06-10 23:55:23 by bursa]
Split fetchcache() into fetchcache() and fetchcache_go() to solve problems of callbacks being called before fetchcache() returns. Fix <style> breakage. Error handling fixes & improvements.

svn path=/import/netsurf/; revision=957
2004-06-10 23:55:23 +00:00
John Mark Bell bd6ec25190 [project @ 2004-06-10 22:39:56 by jmb]
Compiler warning purge

svn path=/import/netsurf/; revision=954
2004-06-10 22:39:56 +00:00
James Bursa 08177fa581 [project @ 2004-06-10 20:41:26 by bursa]
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
2004-06-10 20:41:26 +00:00
James Bursa 035eaa7849 [project @ 2004-06-09 23:13:55 by bursa]
Fix double-free of background image url. Add background parameter to html_fetch_object().

svn path=/import/netsurf/; revision=944
2004-06-09 23:13:55 +00:00
John Mark Bell 78594f3f60 [project @ 2004-06-09 19:55:06 by jmb]
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
2004-06-09 19:55:06 +00:00
John Tytgat dc65374aa6 [project @ 2004-06-05 15:03:59 by joty]
Created content_set_status() : one centralised place where status_message
in the content struct is updated in a fail safe way.

svn path=/import/netsurf/; revision=928
2004-06-05 15:03:59 +00:00
James Bursa ed4c1ad391 [project @ 2004-06-02 21:09:14 by bursa]
Update calls to layout_document() for error handling.

svn path=/import/netsurf/; revision=915
2004-06-02 21:09:14 +00:00
James Bursa 8b78a7803d [project @ 2004-05-21 14:26:59 by bursa]
Improved handling of objects and frames; some work on malloc() failure in box conversion.

svn path=/import/netsurf/; revision=880
2004-05-21 14:26:59 +00:00
John Tytgat 226c002d57 [project @ 2004-05-09 16:49:53 by joty]
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
2004-05-09 16:49:53 +00:00
James Bursa 199eee4b0b [project @ 2004-04-26 13:47:51 by bursa]
Fix scaled GIF animations.

svn path=/import/netsurf/; revision=805
2004-04-26 13:47:51 +00:00
James Bursa 1f07fc6de5 [project @ 2004-04-24 23:42:31 by bursa]
Replace void pointer in content callbacks with union content_msg_data. Fix animated gif flickering (except for scaled or masked gifs). Add gif to the debug builds.

svn path=/import/netsurf/; revision=801
2004-04-24 23:42:32 +00:00
James Bursa 455efb4fb7 [project @ 2004-04-17 16:00:16 by bursa]
Supply XML_CHAR_ENCODING_NONE to libxml2 when no encoding is specified so that meta charsets are used.

svn path=/import/netsurf/; revision=788
2004-04-17 16:00:16 +00:00
John Mark Bell 67fce3b801 [project @ 2004-04-11 00:35:24 by jmb]
Retain aspect ratio of boxes if only one of width/height are specified (eg <img src="blah" width="123"> would scale height to be 123/image_width * image_height)

NB: This does /not/ work for %age widths as %age heights do nothing as yet

svn path=/import/netsurf/; revision=750
2004-04-11 00:35:24 +00:00
James Bursa 8052ed8c6c [project @ 2004-03-28 15:41:50 by bursa]
Disable some excess logging.

svn path=/import/netsurf/; revision=688
2004-03-28 15:41:50 +00:00
John Mark Bell 4b38a2d61a [project @ 2004-03-26 22:16:31 by jmb]
Imagemap support

svn path=/import/netsurf/; revision=671
2004-03-26 22:16:31 +00:00
John Mark Bell b2242ae0f0 [project @ 2004-03-24 20:10:03 by jmb]
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
2004-03-24 20:10:03 +00:00
John Mark Bell 9c723a5924 [project @ 2004-03-24 00:07:21 by jmb]
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
2004-03-24 00:07:21 +00:00
James Bursa 423f0f1e70 [project @ 2004-03-21 13:55:51 by bursa]
Implement gui_window_update_box() and use in response to CONTENT_MSG_REDRAW.

svn path=/import/netsurf/; revision=644
2004-03-21 13:55:51 +00:00
James Bursa 15537fb20d [project @ 2004-03-21 12:50:10 by bursa]
Animation support, not yet optimised.

svn path=/import/netsurf/; revision=641
2004-03-21 12:50:10 +00:00
James Bursa fba46de9cb [project @ 2004-03-11 02:19:13 by bursa]
Add source_data to content structure and remove equivalents from individual contents.

svn path=/import/netsurf/; revision=606
2004-03-11 02:19:14 +00:00
John Mark Bell 217eae922b [project @ 2004-03-08 18:21:21 by jmb]
Attempt to detect document charset encoding if the server doesn't send it.

svn path=/import/netsurf/; revision=592
2004-03-08 18:21:21 +00:00
James Bursa 1c85bf0429 [project @ 2004-03-02 18:02:17 by bursa]
Add new url functions and modify to use them.

svn path=/import/netsurf/; revision=578
2004-03-02 18:02:41 +00:00
James Bursa 7f68e012cc [project @ 2004-02-27 17:45:19 by bursa]
Move English text to Messages file for translation.

svn path=/import/netsurf/; revision=576
2004-02-27 17:45:19 +00:00
James Bursa a7f3829d55 [project @ 2004-02-20 00:43:17 by bursa]
Fix html_destroy() crash, add documentation.

svn path=/import/netsurf/; revision=562
2004-02-20 00:43:17 +00:00
John Mark Bell 6839622183 [project @ 2004-02-17 12:41:38 by jmb]
Begin save complete support.
Fix memory leak when using Select PNG renderer. (commented out lines can probably removed)

svn path=/import/netsurf/; revision=556
2004-02-17 12:41:38 +00:00
James Bursa 1bdcb44639 [project @ 2004-01-24 17:08:15 by bursa]
Add permitted_types to html_fetch_object().

svn path=/import/netsurf/; revision=500
2004-01-24 17:08:16 +00:00
John Mark Bell 0dab93fe76 [project @ 2004-01-20 19:08:34 by jmb]
Allow toggling of POST support.
Add new toolbar icon numbers to riscos/gui.h

svn path=/import/netsurf/; revision=490
2004-01-20 19:08:34 +00:00
John Mark Bell 62245d13ec [project @ 2004-01-05 02:10:59 by jmb]
Add ability to turn off browser features in build.
This may be useful when hunting down bugs.

svn path=/import/netsurf/; revision=480
2004-01-05 02:10:59 +00:00
James Bursa 825c81f03a [project @ 2004-01-02 12:04:04 by bursa]
Use memory pool for box tree.

svn path=/import/netsurf/; revision=477
2004-01-02 12:04:04 +00:00
John Mark Bell 4e2345da92 [project @ 2003-12-29 18:59:15 by jmb]
Comment out unnecessary call to cache_dump from html_process_data.
Add Licence and relevant #include to tt2code. Stops the compiler moaning
about no definition of unicode_transliterate.

svn path=/import/netsurf/; revision=467
2003-12-29 18:59:15 +00:00
James Bursa ce0d5294d5 [project @ 2003-12-27 20:15:22 by bursa]
Use charset from Content-Type header.

svn path=/import/netsurf/; revision=460
2003-12-27 20:15:23 +00:00
John Mark Bell 0a1756a84f [project @ 2003-12-27 02:03:48 by jmb]
Reduce compiler warnings

svn path=/import/netsurf/; revision=456
2003-12-27 02:03:48 +00:00
James Bursa 894703b53b [project @ 2003-12-26 16:20:57 by bursa]
Enable cookies.

svn path=/import/netsurf/; revision=443
2003-12-26 16:20:57 +00:00
James Bursa f1b59814f8 [project @ 2003-12-26 00:17:55 by bursa]
New url_join using liburi, <base href=...>.

svn path=/import/netsurf/; revision=441
2003-12-26 00:17:55 +00:00
John Mark Bell 01d735dab8 [project @ 2003-11-12 22:22:45 by jmb]
Begin frames support. Just data structure handling for now. None of this
code is called atm.

svn path=/import/netsurf/; revision=416
2003-11-12 22:22:45 +00:00
John Mark Bell ab8edd9da4 [project @ 2003-10-25 22:51:45 by jmb]
Fix bug relating to
http://www.mw-software.com/software/artworks2/aw2support.html

svn path=/import/netsurf/; revision=388
2003-10-25 22:51:45 +00:00
John Mark Bell c9e188a4d1 [project @ 2003-10-25 19:20:13 by jmb]
HTTP Auth login improved (greatly).
Addresses all three issues in the previous version.

svn path=/import/netsurf/; revision=382
2003-10-25 19:20:13 +00:00
James Bursa 28f974f00f [project @ 2003-10-25 14:13:49 by bursa]
URL encoded POST support.

svn path=/import/netsurf/; revision=375
2003-10-25 14:13:49 +00:00
James Bursa 13d6923b5e [project @ 2003-10-17 17:39:29 by bursa]
Implement :link, ignore stylesheets with syntax errors, parse pseudo classes.

svn path=/import/netsurf/; revision=367
2003-10-17 17:39:29 +00:00
James Bursa b510716c1d [project @ 2003-10-08 20:49:57 by bursa]
Fix column width recalculation when objects are loaded.

svn path=/import/netsurf/; revision=354
2003-10-08 20:49:57 +00:00
James Bursa 9db8936d5a [project @ 2003-10-01 16:12:04 by bursa]
Partial fix for pages including themselves.

svn path=/import/netsurf/; revision=339
2003-10-01 16:12:04 +00:00
James Bursa c48e0ce8dc [project @ 2003-09-28 17:37:19 by bursa]
Fix redirected images which are already loaded.

svn path=/import/netsurf/; revision=328
2003-09-28 17:37:19 +00:00
James Bursa 763f186705 [project @ 2003-09-17 12:57:33 by bursa]
Poll queuing fix, backup redraw code.

svn path=/import/netsurf/; revision=296
2003-09-17 12:57:43 +00:00
James Bursa 22cea706c5 [project @ 2003-09-14 20:31:02 by bursa]
Fix already loaded object bug.

svn path=/import/netsurf/; revision=290
2003-09-14 20:31:02 +00:00
James Bursa f33b3e6f52 [project @ 2003-09-10 21:44:10 by bursa]
Reformat page when browser window is resized.

svn path=/import/netsurf/; revision=280
2003-09-10 21:44:11 +00:00
James Bursa f185bb4d0d [project @ 2003-09-09 21:43:44 by bursa]
Display image alt text while it loads.

svn path=/import/netsurf/; revision=278
2003-09-09 21:43:44 +00:00
James Bursa c05f00209f [project @ 2003-09-08 22:47:11 by bursa]
Box width fixes.

svn path=/import/netsurf/; revision=272
2003-09-08 22:47:11 +00:00
John Mark Bell b19462e1ff [project @ 2003-09-03 21:58:54 by jmb]
Call content_reshape_instance

svn path=/import/netsurf/; revision=265
2003-09-03 21:58:54 +00:00
James Bursa cdf0601420 [project @ 2003-08-30 21:45:03 by bursa]
Make page background colour work properly.

svn path=/import/netsurf/; revision=263
2003-08-30 21:45:03 +00:00
James Bursa 5c310d84dc [project @ 2003-08-29 12:57:14 by bursa]
Better handling of server HTTP errors.

svn path=/import/netsurf/; revision=259
2003-08-29 12:57:14 +00:00
John Mark Bell 3c0daf429a [project @ 2003-07-22 22:13:44 by jmb]
Enable viewing HTML source when F8 is pressed

svn path=/import/netsurf/; revision=241
2003-07-22 22:13:44 +00:00
James Bursa c7520629b0 [project @ 2003-07-16 17:38:46 by bursa]
Make fetchcache return 0 on failure to parse URL.

svn path=/import/netsurf/; revision=225
2003-07-16 17:38:46 +00:00
James Bursa 5911578eaf [project @ 2003-07-15 14:37:34 by bursa]
Implement html_redraw.

svn path=/import/netsurf/; revision=218
2003-07-15 14:37:34 +00:00
James Bursa 613c7003e9 [project @ 2003-07-14 23:13:23 by bursa]
Fixes for 26-bit build.

svn path=/import/netsurf/; revision=217
2003-07-14 23:13:23 +00:00
James Bursa 889ae885c6 [project @ 2003-07-14 22:57:45 by bursa]
Add content instances.

svn path=/import/netsurf/; revision=216
2003-07-14 22:57:45 +00:00
James Bursa 9317e33d0b [project @ 2003-07-09 21:33:01 by bursa]
More work on <object> and plugins.

svn path=/import/netsurf/; revision=213
2003-07-09 21:33:01 +00:00
John Mark Bell 133c3ee759 [project @ 2003-07-07 22:10:51 by jmb]
Rewrite plugin system backend.

svn path=/import/netsurf/; revision=210
2003-07-07 22:10:51 +00:00
James Bursa 176d6f8f3d [project @ 2003-07-02 14:31:11 by bursa]
Fix buffer overflows.

svn path=/import/netsurf/; revision=199
2003-07-02 14:31:11 +00:00
James Bursa 58267e14fd [project @ 2003-06-30 15:56:35 by bursa]
Fix image loading when images are in the cache.

svn path=/import/netsurf/; revision=191
2003-06-30 15:56:35 +00:00
James Bursa 017fc4eb4b [project @ 2003-06-30 12:44:02 by bursa]
New file headers.

svn path=/import/netsurf/; revision=190
2003-06-30 12:44:03 +00:00
James Bursa 1145b231d4 [project @ 2003-06-26 11:41:26 by bursa]
Implement HTTP redirects.

svn path=/import/netsurf/; revision=187
2003-06-26 11:41:26 +00:00
James Bursa 0c0ff3c596 [project @ 2003-06-17 19:24:20 by bursa]
Change fetchcache system to store loading contents in cache.

svn path=/import/netsurf/; revision=180
2003-06-17 19:24:21 +00:00
Philip Pemberton 97dea9f287 [project @ 2003-06-05 13:17:55 by philpem]
Added GIF decode support

svn path=/import/netsurf/; revision=160
2003-06-05 13:17:55 +00:00
James Bursa 27d93c182c [project @ 2003-05-10 11:13:34 by bursa]
Partial PNG support.

svn path=/import/netsurf/; revision=129
2003-05-10 11:15:49 +00:00
James Bursa 0285c2984f [project @ 2003-04-25 08:03:15 by bursa]
Various memory fixes.

svn path=/import/netsurf/; revision=128
2003-04-25 08:03:15 +00:00
James Bursa 09b1ede5a3 [project @ 2003-04-15 17:53:00 by bursa]
Inline images and related.

svn path=/import/netsurf/; revision=125
2003-04-15 17:53:00 +00:00
James Bursa 63b6455f73 [project @ 2003-04-13 12:50:10 by bursa]
style element, CSS fixes, id selectors.

svn path=/import/netsurf/; revision=124
2003-04-13 12:50:10 +00:00
James Bursa 0267469306 [project @ 2003-04-11 21:06:51 by bursa]
Memory usage and CSS fixes.

svn path=/import/netsurf/; revision=122
2003-04-11 21:06:51 +00:00
James Bursa 7c94cf8be9 [project @ 2003-04-10 21:44:45 by bursa]
Memory usage cleaning.

svn path=/import/netsurf/; revision=121
2003-04-10 21:44:45 +00:00
James Bursa 230cb5f01f [project @ 2003-04-09 21:57:09 by bursa]
Table layout fixes, allowed type list.

svn path=/import/netsurf/; revision=119
2003-04-09 21:57:09 +00:00
James Bursa c62f1a55e6 [project @ 2003-04-06 20:56:40 by bursa]
CSS bug fix.

svn path=/import/netsurf/; revision=118
2003-04-06 20:56:40 +00:00
James Bursa 46edb645e1 [project @ 2003-04-06 18:09:34 by bursa]
@import, more status messages.

svn path=/import/netsurf/; revision=116
2003-04-06 18:09:34 +00:00
James Bursa 2253e38be8 [project @ 2003-04-05 21:38:06 by bursa]
External stylesheets.

svn path=/import/netsurf/; revision=115
2003-04-05 21:38:06 +00:00
James Bursa 4421b2e633 [project @ 2003-04-04 15:19:31 by bursa]
New CSS parser.

svn path=/import/netsurf/; revision=112
2003-04-04 15:19:32 +00:00
James Bursa 5d371fb47e [project @ 2003-03-25 21:51:29 by bursa]
Show alt text for images.

svn path=/import/netsurf/; revision=109
2003-03-25 21:51:29 +00:00
James Bursa e2efda19df [project @ 2003-03-04 11:59:35 by bursa]
More compiler warning fixes.

svn path=/import/netsurf/; revision=104
2003-03-04 11:59:36 +00:00
James Bursa 64e1781eb4 [project @ 2003-03-03 22:40:39 by bursa]
Fix many browser warnings.

svn path=/import/netsurf/; revision=103
2003-03-03 22:40:39 +00:00
James Bursa 05318b210d [project @ 2003-02-26 18:22:24 by bursa]
Fix HTML parsing and JPEG bug.

svn path=/import/netsurf/; revision=101
2003-02-26 18:22:24 +00:00
James Bursa 8edb43af7d [project @ 2003-02-25 21:00:27 by bursa]
Bug fixes, experimental JPEG support.

svn path=/import/netsurf/; revision=100
2003-02-25 21:00:27 +00:00
James Bursa a4c5929a2f [project @ 2003-02-09 12:58:14 by bursa]
Reorganization and rewrite of fetch, cache, and content handling.

svn path=/import/netsurf/; revision=96
2003-02-09 12:58:15 +00:00