Commit Graph

282 Commits

Author SHA1 Message Date
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
2a23749fc6 [project @ 2004-06-22 17:52:40 by bursa]
Fix some strdup()s on non-terminated strings.

svn path=/import/netsurf/; revision=992
2004-06-22 17:52:40 +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
James Bursa
6ce6e99659 [project @ 2004-06-18 22:55:28 by bursa]
Output some more data in box_dump().

svn path=/import/netsurf/; revision=980
2004-06-18 22:55:28 +00:00
James Bursa
02898d7b26 [project @ 2004-06-18 22:54:07 by bursa]
Fix inline boxes with 0 width not having their width set when available width is 0 (eg. in tables) (fixes www.hic.gov.au crash reported by Peter Prewett). Table layout fix related to cells spanning columns with fixed-width cells.

svn path=/import/netsurf/; revision=979
2004-06-18 22:54:07 +00:00
John Tytgat
e773536c97 [project @ 2004-06-17 21:41:11 by joty]
Added comment on struct form_option::text.

svn path=/import/netsurf/; revision=977
2004-06-17 21:41:11 +00:00
John Tytgat
e6b68bc3a7 [project @ 2004-06-14 07:28:27 by joty]
layout_table() : avoid division by zero (e.g. table at <URL:http://www.pcguide.com/ref/fdd/confCable-c.html>)

svn path=/import/netsurf/; revision=970
2004-06-14 07:28:27 +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
John Mark Bell
e932715010 [project @ 2004-06-11 12:51:40 by jmb]
Fix for crash caused by inline style attributes specifying background images.

svn path=/import/netsurf/; revision=961
2004-06-11 12:51:40 +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
6d76fb8e75 [project @ 2004-06-02 21:21:13 by bursa]
Memory exhaustion handling. Form control related bug fix.

svn path=/import/netsurf/; revision=917
2004-06-02 21:21:13 +00:00
James Bursa
4565574eaa [project @ 2004-06-02 21:14:40 by bursa]
Revert accidental checkin.

svn path=/import/netsurf/; revision=916
2004-06-02 21:16:48 +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
ef8e27a458 [project @ 2004-06-02 21:06:18 by bursa]
Remove some #ifdef riscos.

svn path=/import/netsurf/; revision=914
2004-06-02 21:06:18 +00:00
James Bursa
745d4b1d67 [project @ 2004-05-27 23:45:26 by bursa]
Table and float bug fixes.

svn path=/import/netsurf/; revision=899
2004-05-27 23:45:26 +00:00
James Bursa
4f31db54f7 [project @ 2004-05-27 22:13:20 by bursa]
Fix some table layout bugs related to the recent changes to calculate_table_widths().

svn path=/import/netsurf/; revision=898
2004-05-27 22:13:20 +00:00
James Bursa
4a500f5614 [project @ 2004-05-21 23:42:26 by bursa]
Fix and clean code for radio and checkbox inputs.

svn path=/import/netsurf/; revision=884
2004-05-21 23:42:26 +00:00
James Bursa
3c707fbeea [project @ 2004-05-21 22:51:02 by bursa]
Fix <select>, which got broken earlier.

svn path=/import/netsurf/; revision=882
2004-05-21 22:51:02 +00:00
James Bursa
fe2a9961df [project @ 2004-05-21 17:08:48 by bursa]
Improve multilength parsing.

svn path=/import/netsurf/; revision=881
2004-05-21 17:08:48 +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
James Bursa
9412dfeaed [project @ 2004-05-21 10:25:42 by bursa]
Add form_new_control() and form_free_control().

svn path=/import/netsurf/; revision=878
2004-05-21 10:25:42 +00:00
James Bursa
52700ad3cb [project @ 2004-05-11 16:40:12 by bursa]
Ignore negative colspan.

svn path=/import/netsurf/; revision=851
2004-05-11 16:40:12 +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
bb41604045 [project @ 2004-05-05 16:33:15 by bursa]
Fix some compiler warnings. Ignore size attribute for file inputs.

svn path=/import/netsurf/; revision=828
2004-05-05 16:33:15 +00:00
James Bursa
8da6079f6f [project @ 2004-05-03 22:05:40 by bursa]
Implement dragging files into <input type="file" ...>.

svn path=/import/netsurf/; revision=821
2004-05-03 22:05:40 +00:00
John Mark Bell
afb5e4209b [project @ 2004-05-02 17:01:37 by jmb]
Remove #ifdef nastiness. Now uses alloca.

svn path=/import/netsurf/; revision=816
2004-05-02 17:01:37 +00:00
John Mark Bell
51bea40b9a [project @ 2004-05-02 01:04:38 by jmb]
A couple more Norcroft-related patches.
The use of #ifdef __GNU_C__ in both of these can be avoided. I'm not entirely sure whether it would be sensible to do so, so I've left them as-is.

svn path=/import/netsurf/; revision=814
2004-05-02 01:04:38 +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
330a3bb64c [project @ 2004-04-26 13:45:52 by bursa]
Fix box_coords().

svn path=/import/netsurf/; revision=804
2004-04-26 13:45:52 +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
3662d2aec7 [project @ 2004-04-21 22:27:49 by bursa]
Position floats correctly horizontally when padding or margins are present.

svn path=/import/netsurf/; revision=799
2004-04-21 22:27:49 +00:00
James Bursa
0422445008 [project @ 2004-04-18 22:53:22 by bursa]
Remove obsolete assert() to fix frames crash.

svn path=/import/netsurf/; revision=794
2004-04-18 22:53:22 +00:00
James Bursa
dc937fe9ba [project @ 2004-04-18 15:19:53 by bursa]
Implement <br> properly by adding BOX_BR; fix box tree normalisation bugs.

svn path=/import/netsurf/; revision=791
2004-04-18 15:19:53 +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
James Bursa
27816b80df [project @ 2004-04-16 22:29:10 by bursa]
Fix height of block contexts with no children (fixes FP exception crashes); factor out code for increasing height for floats.

svn path=/import/netsurf/; revision=787
2004-04-16 22:29:10 +00:00
John Mark Bell
e4952d83eb [project @ 2004-04-15 16:18:19 by jmb]
Take account of configured minimun font size when calculating line height.

svn path=/import/netsurf/; revision=786
2004-04-15 16:18:19 +00:00
James Bursa
eaf5d43082 [project @ 2004-04-14 12:55:16 by bursa]
Remove incorrect use of WITH_PLUGIN.

svn path=/import/netsurf/; revision=784
2004-04-14 12:55:16 +00:00
James Bursa
5e41f0465c [project @ 2004-04-13 23:20:23 by bursa]
Table layout fix and table-float interaction changes.

svn path=/import/netsurf/; revision=778
2004-04-13 23:20:23 +00:00
James Bursa
ccba68eb36 [project @ 2004-04-12 17:32:45 by bursa]
Fix layout bugs related to height and inline blocks.

svn path=/import/netsurf/; revision=756
2004-04-12 17:32:45 +00:00
James Bursa
9628b9102c [project @ 2004-04-12 00:00:47 by bursa]
Rewrite block context layout, implementing collapsing and negative margins and margins for tables.

svn path=/import/netsurf/; revision=754
2004-04-12 00:00:47 +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
John Mark Bell
9de746e0a0 [project @ 2004-04-08 23:46:41 by jmb]
Improve keypress handling in form text boxes.
Note: Not yet implemented for textareas as these need more work anyway.

svn path=/import/netsurf/; revision=740
2004-04-08 23:46:41 +00:00
James Bursa
095d17b8ad [project @ 2004-04-02 19:30:13 by bursa]
Fix double-free of frame url.

svn path=/import/netsurf/; revision=704
2004-04-02 19:30:13 +00:00
James Bursa
18cfe064be [project @ 2004-04-02 18:13:23 by bursa]
Experimental work on frames.

svn path=/import/netsurf/; revision=703
2004-04-02 18:13:23 +00:00