Commit Graph

634 Commits

Author SHA1 Message Date
John Mark Bell
aa0b803063 [project @ 2005-07-30 23:32:48 by jmb]
Position: relative; support.

svn path=/import/netsurf/; revision=1830
2005-07-30 23:32:48 +00:00
John Mark Bell
e37acd498f [project @ 2005-07-27 22:49:53 by jmb]
Mark invalid CSS contents with an error so they get flushed from the cache.

svn path=/import/netsurf/; revision=1828
2005-07-27 22:49:53 +00:00
James Bursa
e05db0c28c [project @ 2005-07-24 14:29:32 by bursa]
Fix position of certain floats.

svn path=/import/netsurf/; revision=1822
2005-07-24 14:29:32 +00:00
James Bursa
4e9457bee1 [project @ 2005-07-21 21:48:41 by bursa]
Fix layout min max bug with blocks with negative margins. Add assert()s to check that 0 <= min_width <= max_width at the end of each layout_minmax_X() function.

svn path=/import/netsurf/; revision=1813
2005-07-21 21:48:41 +00:00
James Bursa
5e14874115 [project @ 2005-07-20 22:25:56 by bursa]
Fix fixed width table min / max width calculations.

svn path=/import/netsurf/; revision=1811
2005-07-20 22:25:56 +00:00
James Bursa
e24bed7715 [project @ 2005-07-20 22:08:56 by bursa]
Fix min / max bug with negative margins (treat as 0 for now).

svn path=/import/netsurf/; revision=1810
2005-07-20 22:08:56 +00:00
Adrian Lees
17bbed4523 [project @ 2005-07-18 16:38:59 by adrianl]
Fix text selection jitter

svn path=/import/netsurf/; revision=1804
2005-07-18 16:38:59 +00:00
John Mark Bell
b37420136c [project @ 2005-07-18 14:22:26 by jmb]
Fix erroneous attempt to uppercase address of character instead of the character itself

svn path=/import/netsurf/; revision=1802
2005-07-18 14:22:26 +00:00
James Bursa
fba1dfcf68 [project @ 2005-07-06 19:56:34 by bursa]
Fix broken code in table_find_cell().

svn path=/import/netsurf/; revision=1788
2005-07-06 19:56:34 +00:00
John Mark Bell
3805c219fb [project @ 2005-07-03 15:57:10 by jmb]
Handle forms with no action attribute

svn path=/import/netsurf/; revision=1783
2005-07-03 15:57:10 +00:00
James Bursa
78102aa4e1 [project @ 2005-07-02 23:37:41 by bursa]
Improvements to layout_minmax_line(). Fix width of floats / inline blocks without an explicit width (space for margins, borders, padding was added twice).

svn path=/import/netsurf/; revision=1781
2005-07-02 23:37:41 +00:00
James Bursa
8a7ebeb2cc [project @ 2005-07-02 20:08:24 by bursa]
Fix hidden form inputs being rendered.

svn path=/import/netsurf/; revision=1780
2005-07-02 20:08:24 +00:00
James Bursa
5abb753c85 [project @ 2005-07-02 18:19:41 by bursa]
Fix copyright comments.

svn path=/import/netsurf/; revision=1779
2005-07-02 18:19:41 +00:00
James Bursa
9b78daf135 [project @ 2005-07-02 18:17:51 by bursa]
Rewrite calculation of box minimum and maximum widths to improve layout of many pages. Move calculation of column types and border collapsing to box tree normalising stage, since they are layout independent. Add window height parameter to layout and make <html> and <body> at least window height.

svn path=/import/netsurf/; revision=1777
2005-07-02 18:17:51 +00:00
James Bursa
894ba8b623 [project @ 2005-07-02 18:06:10 by bursa]
New files for some table layout functions.

svn path=/import/netsurf/; revision=1776
2005-07-02 18:06:10 +00:00
James Bursa
39c981a4d8 [project @ 2005-07-02 17:58:32 by bursa]
Bring comment showing permitted child nodes up to date.

svn path=/import/netsurf/; revision=1775
2005-07-02 17:58:32 +00:00
James Bursa
844f4af2de [project @ 2005-07-02 17:49:40 by bursa]
Display contents of table->col[] in box_dump().

svn path=/import/netsurf/; revision=1774
2005-07-02 17:49:40 +00:00
John Mark Bell
5817f82ba8 [project @ 2005-06-26 22:18:37 by jmb]
Improve clarity of use of utf8_to_enc.
Remove use of curl_escape - url_escape does similar things, just better.

svn path=/import/netsurf/; revision=1766
2005-06-26 22:18:37 +00:00
John Mark Bell
3286c99dd5 [project @ 2005-06-26 01:55:20 by jmb]
Move acceptable character set determination to form submission time, rather thanat box tree creation time.
Use UTF-8 encoding, if specified, else use first specified encoding.
Improve use of utf8_to_enc - falling back to document encoding then 8859-1 where appropriate.

svn path=/import/netsurf/; revision=1765
2005-06-26 01:55:20 +00:00
Richard Wilson
b88a81b9d9 [project @ 2005-06-23 17:22:28 by rjw]
Allow images to be unloaded to disk or compressed in memory. Provide thumbnails in all tree windows (hotlist, history). Optimise the application initialisation times. Part 1 of 2.

svn path=/import/netsurf/; revision=1761
2005-06-23 17:22:28 +00:00
James Bursa
84f274f215 [project @ 2005-06-07 22:52:56 by bursa]
Fix bug causing an extra line to be inserted for <br> at the end of a paragraph.

svn path=/import/netsurf/; revision=1746
2005-06-07 22:52:56 +00:00
John Mark Bell
0bcfdbeb50 [project @ 2005-06-07 21:29:26 by jmb]
Lose cnv_str_local_enc and friends.
UTF-8 conversion functions now return an enumerated type allowing for fallbacks, if appropriate.

svn path=/import/netsurf/; revision=1744
2005-06-07 21:29:26 +00:00
James Bursa
57b68bd933 [project @ 2005-06-05 20:54:37 by bursa]
More work on borders / padding / margins on inline elements. Add BOX_INLINE_END to hold the right border / padding / margin (left is in the BOX_INLINE).

svn path=/import/netsurf/; revision=1742
2005-06-05 20:54:37 +00:00
James Bursa
99a483dd7b [project @ 2005-06-04 12:12:38 by bursa]
Fix text-decoration and borders on inline elements by replacing inline_parent in box structure with end_inline_children.

svn path=/import/netsurf/; revision=1741
2005-06-04 12:12:38 +00:00
John Mark Bell
b2918fc57b [project @ 2005-05-25 23:06:26 by jmb]
Fix textarea submission

svn path=/import/netsurf/; revision=1740
2005-05-25 23:06:26 +00:00
James Bursa
69d6e0685f [project @ 2005-05-24 20:21:47 by bursa]
Convert remaining BOX_INLINEs in forms to BOX_TEXT.

svn path=/import/netsurf/; revision=1736
2005-05-24 20:21:47 +00:00
James Bursa
e2fb0a94cd [project @ 2005-05-23 22:14:09 by bursa]
Start to implement borders on inline elements. Note: borders of form controls are rendered incorrectly (text boxes in form controls need changing from INLINE to TEXT).

svn path=/import/netsurf/; revision=1734
2005-05-23 22:14:09 +00:00
John Mark Bell
2714ddd459 [project @ 2005-05-22 22:16:00 by jmb]
Fix inversion of overline and line-through plot offsets

svn path=/import/netsurf/; revision=1733
2005-05-22 22:16:00 +00:00
James Bursa
22640f85e0 [project @ 2005-05-22 21:50:14 by bursa]
Add BOX_TEXT type to distinguish boxes which came from an inline element to boxes which came from a text node. Add inline_parent pointer to box structure. Rewrite text-decoration support to take advantage of the new data (line colours are now correct). Note: there is a clipping issue in redraw.

svn path=/import/netsurf/; revision=1732
2005-05-22 21:50:14 +00:00
James Bursa
48d1759374 [project @ 2005-05-22 19:09:43 by bursa]
Fix crash due to uninitialised variable.

svn path=/import/netsurf/; revision=1731
2005-05-22 19:09:43 +00:00
James Bursa
6bf7e4a318 [project @ 2005-05-22 12:44:44 by bursa]
Fix crash when stylesheets fail to load.

svn path=/import/netsurf/; revision=1730
2005-05-22 12:44:44 +00:00
James Bursa
ff74a126f7 [project @ 2005-05-21 23:30:19 by bursa]
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
2005-05-21 23:30:19 +00:00
John Mark Bell
642a3d62f2 [project @ 2005-05-16 00:55:43 by jmb]
Fix issue with erroneously appending a space to the end of every line of textarea input - should we actually be examining box->space here, instead?

svn path=/import/netsurf/; revision=1724
2005-05-16 00:55:43 +00:00
John Mark Bell
4a80b3cccf [project @ 2005-05-15 17:37:00 by jmb]
Fix read from NULL pointer

svn path=/import/netsurf/; revision=1723
2005-05-15 17:37:00 +00:00
John Mark Bell
6257ee1fec [project @ 2005-05-11 02:03:15 by jmb]
Correctly handle submitting forms via pressing return in a text input (the first declared submit button should be used)

svn path=/import/netsurf/; revision=1719
2005-05-11 02:03:15 +00:00
Richard Wilson
303f214df7 [project @ 2005-05-11 01:34:41 by rjw]
Fix for default checkbox submit value.

svn path=/import/netsurf/; revision=1718
2005-05-11 01:34:41 +00:00
James Bursa
03810e4b6c [project @ 2005-04-30 17:11:24 by bursa]
Check box->background before using box->background->bitmap.

svn path=/import/netsurf/; revision=1706
2005-04-30 17:11:24 +00:00
Richard Wilson
683892f9db [project @ 2005-04-29 01:34:19 by rjw]
Improve table rendering.

svn path=/import/netsurf/; revision=1698
2005-04-29 01:34:19 +00:00
Richard Wilson
0d54ba24d4 [project @ 2005-04-29 01:33:50 by rjw]
Correctly respect tr heights

svn path=/import/netsurf/; revision=1697
2005-04-29 01:33:50 +00:00
Richard Wilson
f0dc9a3294 [project @ 2005-04-28 15:57:07 by rjw]
Unbreak HTML table border specification.

svn path=/import/netsurf/; revision=1695
2005-04-28 15:57:07 +00:00
Richard Wilson
240f15b692 [project @ 2005-04-28 02:35:03 by rjw]
HTML border attributes have lower priority that CSS values (fix osnews). Disable tr height minimum value usage for now.

svn path=/import/netsurf/; revision=1694
2005-04-28 02:35:03 +00:00
Richard Wilson
7525f1dc31 [project @ 2005-04-28 01:50:55 by rjw]
Respect minimum height for tr.

svn path=/import/netsurf/; revision=1693
2005-04-28 01:50:55 +00:00
Richard Wilson
991b660eea [project @ 2005-04-28 01:17:52 by rjw]
Translate hspace/vspace to CSS margin values.

svn path=/import/netsurf/; revision=1692
2005-04-28 01:17:52 +00:00
James Bursa
ee8b6f0628 [project @ 2005-04-27 19:13:30 by bursa]
Fix cellpadding="0".

svn path=/import/netsurf/; revision=1688
2005-04-27 19:13:30 +00:00
John Mark Bell
8c21386b00 [project @ 2005-04-24 21:49:28 by jmb]
Fix invalid reads from freed data.

svn path=/import/netsurf/; revision=1683
2005-04-24 21:49:28 +00:00
Adrian Lees
31c659a2ea [project @ 2005-04-20 12:24:41 by adrianl]
text import from global clipboard, other apps & files and additional keys for editing text in textareas

svn path=/import/netsurf/; revision=1673
2005-04-20 12:24:41 +00:00
James Bursa
2f389b3032 [project @ 2005-04-17 16:56:41 by bursa]
Fix frameset code.

svn path=/import/netsurf/; revision=1663
2005-04-17 16:56:41 +00:00
James Bursa
b1848eb109 [project @ 2005-04-17 16:42:37 by bursa]
Fix null pointer read in box_dump().

svn path=/import/netsurf/; revision=1662
2005-04-17 16:42:37 +00:00
Adrian Lees
452a27e74c [project @ 2005-04-17 03:30:35 by adrianl]
Search text highlighting in browser windows

svn path=/import/netsurf/; revision=1657
2005-04-17 03:30:35 +00:00
John Mark Bell
352e18ac37 [project @ 2005-04-16 19:34:30 by jmb]
Don't append a space to the end of textarea input

svn path=/import/netsurf/; revision=1654
2005-04-16 19:34:30 +00:00
Adrian Lees
2f3895f088 [project @ 2005-04-16 08:22:57 by adrianl]
first cut at selecting inter-block spaces

svn path=/import/netsurf/; revision=1652
2005-04-16 08:22:57 +00:00
John Mark Bell
c17dc661ea [project @ 2005-04-16 05:09:32 by jmb]
Split out UTF-8 handling functions.
Submit URL-encoded forms in sensible encoding:
  * First entry in accept-charset list, if present
  * Document encoding, otherwise
  We may want to explicitly look for UTF-8, to save converting.
Convert cnv_str_local_enc/cnv_local_enc_str to use iconv (they're now veneers for utf8_[to/from]_enc).
Provide mechanism for looking up local system charset (derived from system alphabet, under RISC OS)

svn path=/import/netsurf/; revision=1647
2005-04-16 05:09:33 +00:00
Adrian Lees
043db9ece0 [project @ 2005-04-15 05:52:11 by adrianl]
Text selection

svn path=/import/netsurf/; revision=1636
2005-04-15 05:52:11 +00:00
John Mark Bell
ef7fe5d3e5 [project @ 2005-04-14 23:17:37 by jmb]
Fix form selection abort

svn path=/import/netsurf/; revision=1633
2005-04-14 23:17:37 +00:00
Richard Wilson
487cad486d [project @ 2005-04-14 19:54:24 by rjw]
Implement HTML table border setting. Improve support for the collapsing border model.

svn path=/import/netsurf/; revision=1632
2005-04-14 19:54:24 +00:00
James Bursa
11bc5345c5 [project @ 2005-04-13 21:58:28 by bursa]
Add fallback field to struct box for object fallback content. Add some checks for tree consistency to box_dump(). Rename struct plugin_params to object_param. Clean up box_object(), box_embed(), box_iframe(), and box_image(). Implement object fallback to contents if the fetch or conversion fails.

svn path=/import/netsurf/; revision=1627
2005-04-13 21:58:28 +00:00
James Bursa
72e3ad4fcd [project @ 2005-04-10 17:08:49 by bursa]
Implement box_get_attribute() to simplify code. Add code to attempt to extract URLs from "javascript:" links.

svn path=/import/netsurf/; revision=1620
2005-04-10 17:08:49 +00:00
John Mark Bell
63c33349f0 [project @ 2005-04-09 22:56:34 by jmb]
Fix inappropriate free()s of talloced content

svn path=/import/netsurf/; revision=1619
2005-04-09 22:56:34 +00:00
James Bursa
49fdeafbbf [project @ 2005-04-09 13:25:54 by bursa]
Add an assert() to layout_line() to help detect bugs.

svn path=/import/netsurf/; revision=1614
2005-04-09 13:25:54 +00:00
James Bursa
f9d5c0f7c8 [project @ 2005-04-09 13:25:05 by bursa]
Fix iframe related crash.

svn path=/import/netsurf/; revision=1613
2005-04-09 13:25:05 +00:00
James Bursa
10fa42cd12 [project @ 2005-04-09 09:52:52 by bursa]
Remove obsolete style_clone field from struct box.

svn path=/import/netsurf/; revision=1609
2005-04-09 09:52:52 +00:00
James Bursa
2920bca14a [project @ 2005-04-09 09:47:36 by bursa]
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
2005-04-09 09:47:37 +00:00
John Mark Bell
f228f3c8da [project @ 2005-04-02 18:24:47 by jmb]
Fix more FP exceptions

svn path=/import/netsurf/; revision=1589
2005-04-02 18:24:47 +00:00
James Bursa
bed3897f66 [project @ 2005-04-02 11:13:27 by bursa]
Assert when a box has UNKNOWN_WIDTH after layout.

svn path=/import/netsurf/; revision=1588
2005-04-02 11:13:27 +00:00
James Bursa
29d44c739e [project @ 2005-03-28 19:17:06 by bursa]
Split convert_xml_to_box() into box_construct_element() and box_construct_text(). Add box_solve_display().

svn path=/import/netsurf/; revision=1585
2005-03-28 19:17:06 +00:00
James Bursa
64d8f9d5ed [project @ 2005-03-26 01:12:27 by bursa]
Split box.c into box_construct.c, box_normalise.c, and box.c.

svn path=/import/netsurf/; revision=1583
2005-03-26 01:12:27 +00:00
Richard Wilson
770a3f7494 [project @ 2005-03-24 13:44:24 by rjw]
Don't add fetches that failed to initialise to the object list.

svn path=/import/netsurf/; revision=1580
2005-03-24 13:44:24 +00:00
Richard Wilson
c0b5985867 [project @ 2005-03-23 19:17:03 by rjw]
Fix scaling of very small background images when viewing at less than 100%

svn path=/import/netsurf/; revision=1575
2005-03-23 19:17:03 +00:00
Richard Wilson
511891d27c [project @ 2005-03-23 18:14:38 by rjw]
Fix incorrect background position calculations. Modify CSS parser to pass all background-position testcases.

svn path=/import/netsurf/; revision=1574
2005-03-23 18:14:38 +00:00
Richard Wilson
c16c3ffa2f [project @ 2005-03-23 16:42:37 by rjw]
Don't pass scaled values to children to minimise rounding errors.

svn path=/import/netsurf/; revision=1573
2005-03-23 16:42:37 +00:00
Richard Wilson
39c6af5d64 [project @ 2005-03-22 16:29:16 by rjw]
Fix some rounding issues for table cell calculations.

svn path=/import/netsurf/; revision=1571
2005-03-22 16:29:16 +00:00
Richard Wilson
b832e05f03 [project @ 2005-03-22 00:10:42 by rjw]
Experimental cellpadding support

svn path=/import/netsurf/; revision=1569
2005-03-22 00:10:42 +00:00
Richard Wilson
7f37d2f559 [project @ 2005-03-19 18:05:45 by rjw]
Further updates to the colour highlighting algorithm.

svn path=/import/netsurf/; revision=1547
2005-03-19 18:05:45 +00:00
Richard Wilson
5703b71610 [project @ 2005-03-19 16:39:47 by rjw]
Stop certain colours being incorrectly highlighted

svn path=/import/netsurf/; revision=1546
2005-03-19 16:39:47 +00:00
Richard Wilson
f61f097e9a [project @ 2005-03-19 15:33:06 by rjw]
Improved colour light/dark algorith. Button borders are now dual-level 3d to improve appearance.

svn path=/import/netsurf/; revision=1545
2005-03-19 15:33:06 +00:00
Richard Wilson
fb0903a089 [project @ 2005-03-19 14:23:47 by rjw]
Solve clickable area test case.

svn path=/import/netsurf/; revision=1544
2005-03-19 14:23:47 +00:00
Richard Wilson
793bb9119a [project @ 2005-03-18 23:50:36 by rjw]
Take borders into account when checking whether a box contains a point.

svn path=/import/netsurf/; revision=1540
2005-03-18 23:50:36 +00:00
James Bursa
527bbec028 [project @ 2005-03-07 21:30:28 by bursa]
Fix some more FP exceptions related to layout.

svn path=/import/netsurf/; revision=1528
2005-03-07 21:30:28 +00:00
James Bursa
10b27f45f8 [project @ 2005-02-26 18:30:48 by bursa]
Fix some FP exceptions due to widths left as UNKNOWN_WIDTH.

svn path=/import/netsurf/; revision=1526
2005-02-26 18:30:48 +00:00
James Bursa
1a52a32e5d [project @ 2005-02-20 13:18:21 by bursa]
Font rewrite, part 2.

svn path=/import/netsurf/; revision=1518
2005-02-20 13:18:21 +00:00
John Mark Bell
f93e387801 [project @ 2005-02-15 22:34:22 by jmb]
Fix loads of object/embed/applet/iframe memory leaks.
Disable handling of applet tag as the implementation's broken and we don't have a sensible JVM anyway.

svn path=/import/netsurf/; revision=1514
2005-02-15 22:34:22 +00:00
John Mark Bell
430d7bc1ae [project @ 2005-02-04 19:41:59 by jmb]
Prevent assertion failure on pages with white-space: pre-wrap / pre-line

svn path=/import/netsurf/; revision=1492
2005-02-04 19:41:59 +00:00
James Bursa
04f0525fbf [project @ 2005-01-24 23:02:37 by bursa]
Reformat pages loaded from memory cache to window width.

svn path=/import/netsurf/; revision=1467
2005-01-24 23:02:37 +00:00
Richard Wilson
71ad0bdf69 [project @ 2005-01-16 21:39:21 by rjw]
Read content, counter-reset and counter-increment properties.

svn path=/import/netsurf/; revision=1456
2005-01-16 21:39:21 +00:00
John Mark Bell
7ab8b2c1ba [project @ 2005-01-16 21:32:10 by jmb]
Ensure style exists before freeing it

svn path=/import/netsurf/; revision=1455
2005-01-16 21:32:10 +00:00
John Mark Bell
b75313f591 [project @ 2005-01-16 00:14:31 by jmb]
Ensure style struct exists before attempting to free

svn path=/import/netsurf/; revision=1452
2005-01-16 00:14:31 +00:00
John Mark Bell
1e592489b1 [project @ 2005-01-16 00:03:45 by jmb]
Create interface for duplication and destruction of css_style structs.

svn path=/import/netsurf/; revision=1450
2005-01-16 00:03:45 +00:00
Richard Wilson
1487697cb3 [project @ 2005-01-15 22:11:53 by rjw]
Background work for CSS counters (CSS 2.1/12.4)

svn path=/import/netsurf/; revision=1449
2005-01-15 22:11:53 +00:00
James Bursa
a76404dfd0 [project @ 2005-01-13 20:28:50 by bursa]
Fix some compilation warnings in the debug build. Update nsgtk_plot_rectangle() with the new parameters.

svn path=/import/netsurf/; revision=1447
2005-01-13 20:29:24 +00:00
John Mark Bell
15e08b5252 [project @ 2005-01-11 19:39:49 by jmb]
Handle property: inherit; properly

svn path=/import/netsurf/; revision=1441
2005-01-11 19:39:49 +00:00
Richard Wilson
652fe9ac95 [project @ 2005-01-11 14:16:40 by rjw]
Perform vertical alignment for cells with specified heights.

svn path=/import/netsurf/; revision=1439
2005-01-11 14:16:40 +00:00
Richard Wilson
7b1c6c0ea8 [project @ 2005-01-10 21:35:33 by rjw]
Vertical alignment for table cells

svn path=/import/netsurf/; revision=1437
2005-01-10 21:35:34 +00:00
John Mark Bell
77de9c1336 [project @ 2005-01-03 02:09:20 by jmb]
Shift + Click == download

svn path=/import/netsurf/; revision=1429
2005-01-03 02:09:20 +00:00
John Mark Bell
8334683068 [project @ 2005-01-02 03:58:20 by jmb]
xcalloc/xrealloc/xstrdup-purge - Lose remaining calls (and purge the relevant functions from utils.c)

svn path=/import/netsurf/; revision=1419
2005-01-02 03:58:21 +00:00
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
ff8dc1f9d6 [project @ 2005-01-01 14:51:35 by bursa]
xcalloc/xrealloc/xstrdup-purge week, part 4.

svn path=/import/netsurf/; revision=1415
2005-01-01 14:51:35 +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
James Bursa
9d56448775 [project @ 2004-12-12 22:00:30 by bursa]
xcalloc/xrealloc/xstrdup-purge week, part 2.

svn path=/import/netsurf/; revision=1401
2004-12-12 22:00:30 +00:00
James Bursa
9995dbad57 [project @ 2004-12-12 21:49:23 by bursa]
Add form_new() and form_add_option().

svn path=/import/netsurf/; revision=1400
2004-12-12 21:51:01 +00:00
James Bursa
f3ce5e1e48 [project @ 2004-12-09 22:22:13 by bursa]
xcalloc/xrealloc/xstrdup-purge week, part 1.

svn path=/import/netsurf/; revision=1398
2004-12-09 22:22:13 +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
James Bursa
dfc28d0ccb [project @ 2004-12-06 22:31:22 by bursa]
Fix horizontal cellspacing.

svn path=/import/netsurf/; revision=1385
2004-12-06 22:31:22 +00:00
John Mark Bell
8a0965110f [project @ 2004-12-05 23:51:10 by jmb]
Explicitly check for boxes with 0 area, as there's no point redrawing them

svn path=/import/netsurf/; revision=1384
2004-12-05 23:51:10 +00:00
James Bursa
3e6a2b9d9a [project @ 2004-12-05 21:42:08 by bursa]
Make frames scroll. Implement table cellspacing attribute.

svn path=/import/netsurf/; revision=1383
2004-12-05 21:42:08 +00:00
James Bursa
37d7353f43 [project @ 2004-12-01 21:48:11 by bursa]
Implement table cell padding and separated borders model for tables. Min/max width calculations still need implementing.

svn path=/import/netsurf/; revision=1378
2004-12-01 21:48:11 +00:00
John Mark Bell
1105d9c397 [project @ 2004-11-22 00:33:04 by jmb]
Improve plain text rendering (converts occurrences of '<' with '&lt;')

svn path=/import/netsurf/; revision=1369
2004-11-22 00:33:04 +00:00
James Bursa
48ee62b660 [project @ 2004-11-21 19:45:51 by bursa]
Take objects into account when calculating descendant boxes.

svn path=/import/netsurf/; revision=1367
2004-11-21 19:45:51 +00:00
James Bursa
58401792bd [project @ 2004-11-21 19:45:17 by bursa]
Fix possible divide by 0. Scroll objects correctly.

svn path=/import/netsurf/; revision=1366
2004-11-21 19:45:17 +00:00
James Bursa
a31f6306f9 [project @ 2004-11-20 00:02:56 by bursa]
Improvements to overflow and scrolling: scrollbars now have most of the usual RISC OS behaviour. Better rendering of dotted and dashed borders.

svn path=/import/netsurf/; revision=1363
2004-11-20 00:02:56 +00:00
Richard Wilson
4bcef8408a [project @ 2004-11-11 00:52:17 by rjw]
Fix for HTML redraw artifacts

svn path=/import/netsurf/; revision=1359
2004-11-11 00:52:17 +00:00
Richard Wilson
015b27ad4a [project @ 2004-11-10 23:02:11 by rjw]
Get bitmap opacity rather than test it

svn path=/import/netsurf/; revision=1358
2004-11-10 23:02:11 +00:00
Richard Wilson
3276fe3ed8 [project @ 2004-11-03 02:29:01 by rjw]
Changing screenmodes causes font handles to be refound.

svn path=/import/netsurf/; revision=1338
2004-11-03 02:29:01 +00:00
James Bursa
da5d07f0be [project @ 2004-10-22 20:58:11 by bursa]
Fix form textarea scrolling. The scrollbar now works properly.

svn path=/import/netsurf/; revision=1334
2004-10-22 20:58:11 +00:00
John Mark Bell
963c3766d5 [project @ 2004-10-20 23:31:31 by jmb]
Reimplement draw groups

svn path=/import/netsurf/; revision=1332
2004-10-20 23:31:32 +00:00
John Mark Bell
e215fc6136 [project @ 2004-10-18 02:27:19 by jmb]
Fix segv in GTK build.
/me also slaps the RISC OS build for not dying appropriately too.

svn path=/import/netsurf/; revision=1324
2004-10-18 02:27:19 +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
James Bursa
6db5ad1b73 [project @ 2004-10-17 21:05:12 by bursa]
New target-independent implementation of html_redraw(), using plotters.

svn path=/import/netsurf/; revision=1313
2004-10-17 21:05:12 +00:00
John Mark Bell
bd17f8b9d1 [project @ 2004-10-09 19:14:26 by jmb]
Work around issue with selected radio buttons/checkboxes having no current value

svn path=/import/netsurf/; revision=1308
2004-10-09 19:14:26 +00:00
John Mark Bell
4a37e17037 [project @ 2004-09-29 20:13:42 by jmb]
Write heuristically-generated font names to choices file - should speed up program load a bit.
Heuristic is re-run each time the choices file is saved.

svn path=/import/netsurf/; revision=1294
2004-09-29 20:13:42 +00:00
John Mark Bell
c358b80cc5 [project @ 2004-09-13 23:56:18 by jmb]
Make fonts user-configurable.
This loses font-style support, though it shouldn't be hard to put it back again.

svn path=/import/netsurf/; revision=1274
2004-09-13 23:56:18 +00:00
Kevin Bagust
13a19ab22b [project @ 2004-09-03 20:32:57 by kevinb]
Added support for table colspan=0 and rowspan=0.

svn path=/import/netsurf/; revision=1262
2004-09-03 20:32:57 +00:00
James Bursa
e44249f6ed [project @ 2004-08-25 23:56:48 by bursa]
Experimental overflow: scroll code.

svn path=/import/netsurf/; revision=1250
2004-08-25 23:56:49 +00:00
James Bursa
26d107c444 [project @ 2004-08-25 22:11:38 by bursa]
Fix a NULL pointer read.

svn path=/import/netsurf/; revision=1249
2004-08-25 22:11:38 +00:00
John Mark Bell
d1eb18f62e [project @ 2004-08-18 01:45:29 by jmb]
Restrict last change to hidden inputs only - breaks sf.net bug tracker otherwise

svn path=/import/netsurf/; revision=1243
2004-08-18 01:45:29 +00:00
John Mark Bell
4ff7d738bc [project @ 2004-08-18 01:36:39 by jmb]
Fix issue with hidden inputs having no value property
Log on memory error to aid debugging

svn path=/import/netsurf/; revision=1242
2004-08-18 01:36:39 +00:00
John Mark Bell
006344401c [project @ 2004-08-15 19:06:23 by jmb]
Rationalise image redraw.
Supply background colour when redrawing contents
Reenable printing of background images
Require Tinct 0.07

svn path=/import/netsurf/; revision=1234
2004-08-15 19:06:24 +00:00
John Tytgat
7264ae50e5 [project @ 2004-08-14 15:07:19 by joty]
- Rename len() to css_len2px().
- Less compiler warnings concerning float/int implicit casts.
- More stddef.h type usuage.

svn path=/import/netsurf/; revision=1232
2004-08-14 15:07:21 +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
John Mark Bell
d7627ceceb [project @ 2004-08-13 00:55:59 by jmb]
Rewrite of plugin handling. This is now much nicer than before although it has about the same amount of functionality.
Note: This is now configurable via an option (defaults to OFF)
This has only really been tested with the Flash plugin and seems to work reasonably.

svn path=/import/netsurf/; revision=1216
2004-08-13 00:55:59 +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
912d09b1cb [project @ 2004-08-11 16:26:13 by jmb]
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
2004-08-11 16:26:13 +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
James Bursa
8337acfc78 [project @ 2004-08-08 19:13:40 by bursa]
Fix form submitting with an empty file upload. Update form_textarea_value(). Purge xcalloc() etc from form.c and handle memory exhaustion.

svn path=/import/netsurf/; revision=1195
2004-08-08 19:13:40 +00:00
John Mark Bell
09afabf63c [project @ 2004-08-06 22:19:12 by jmb]
Anchor support

svn path=/import/netsurf/; revision=1187
2004-08-06 22:19:13 +00:00
John Mark Bell
c8e7fd93e6 [project @ 2004-08-01 23:09:17 by jmb]
Ignore height="", width=""

svn path=/import/netsurf/; revision=1175
2004-08-01 23:09:17 +00:00
James Bursa
dcb72507b2 [project @ 2004-08-01 20:28:02 by bursa]
Modify box_at_point() to use descendant bounding boxes and to search siblings (fixes links in cells with colspan not 1, as reported by Stuart Halliday and others).

svn path=/import/netsurf/; revision=1173
2004-08-01 20:28:02 +00:00
James Bursa
9e1dbe3a36 [project @ 2004-08-01 13:08:18 by bursa]
More work on overflow. Modify block centering to left-align when insufficient space. Fix caret positioning for form controls with padding.

svn path=/import/netsurf/; revision=1171
2004-08-01 13:08:19 +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 Tytgat
2fedec98f9 [project @ 2004-07-19 20:59:10 by joty]
Warning squashing.

svn path=/import/netsurf/; revision=1120
2004-07-19 20:59:10 +00:00
John Tytgat
c93b54b07c [project @ 2004-07-19 20:40:11 by joty]
form.h (struct form_control): renamed caret_char_offset to caret_box_offset; Added caret_form_offset & length.
form.c: initialise new entries in struct form_control; form_successful_controls() : code reshuffling to improve readibility.
box.h: TABing.
box.c (box_input): init struct form_control::length.
browser.c (browser_window_input_callback): UTF-8 support. Text area code needs similar changes.

svn path=/import/netsurf/; revision=1117
2004-07-19 20:40:11 +00:00
James Bursa
9bd3eadbe6 [project @ 2004-07-19 14:31:31 by bursa]
Update and simplify textarea code. Now uses BOX_BR instead of more than one inline container. Prepare for use of UTF-8 in textareas and inputs.

svn path=/import/netsurf/; revision=1104
2004-07-19 14:31:31 +00:00
James Bursa
946566b0b6 [project @ 2004-07-19 14:29:16 by bursa]
Make layout_inline_container() public for use of textareas.

svn path=/import/netsurf/; revision=1103
2004-07-19 14:29:16 +00:00
James Bursa
58e2d033ec [project @ 2004-07-18 17:38:01 by bursa]
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
2004-07-18 17:38:01 +00:00
James Bursa
f23fd2a094 [project @ 2004-07-17 23:32:08 by bursa]
Rewrite and simplify mouse click handling.

svn path=/import/netsurf/; revision=1094
2004-07-17 23:32:09 +00:00
John Mark Bell
b6782d6095 [project @ 2004-07-17 01:36:21 by jmb]
Invalidate descendant_* values

svn path=/import/netsurf/; revision=1091
2004-07-17 01:36:21 +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
Richard Wilson
b7bb766e95 [project @ 2004-07-16 19:47:02 by rjw]
Fix for hotlist menu selection. Interface for MNG/JNG display.

svn path=/import/netsurf/; revision=1083
2004-07-16 19:47:03 +00:00
John Mark Bell
c04047f586 [project @ 2004-07-13 14:03:02 by jmb]
Prevent pages including themselves.

svn path=/import/netsurf/; revision=1074
2004-07-13 14:03:02 +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
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
James Bursa
e4269c8903 [project @ 2004-04-01 18:29:42 by bursa]
Fix bug with submission of forms with no successful controls.

svn path=/import/netsurf/; revision=696
2004-04-01 18:29:42 +00:00
James Bursa
804cd42a34 [project @ 2004-03-30 11:45:48 by bursa]
Reduce frequency of gui_multitask() to improve performance.

svn path=/import/netsurf/; revision=691
2004-03-30 11:45:48 +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
James Bursa
3c4148943a [project @ 2004-03-26 01:35:35 by bursa]
Fix infinite loop in layout_line(), improve layout of inline blocks, break out layout_float().

svn path=/import/netsurf/; revision=669
2004-03-26 01:35:35 +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
85e6f03a92 [project @ 2004-03-22 00:37:38 by bursa]
Minor change in layout_line() to fix some failures.

svn path=/import/netsurf/; revision=651
2004-03-22 00:37:38 +00:00
John Mark Bell
7e922c290f [project @ 2004-03-21 21:32:15 by jmb]
Fix for SparkFS causing problems with uploading zip files.
Map filetypes to mimetype properly.

svn path=/import/netsurf/; revision=646
2004-03-21 21:32:15 +00:00
John Mark Bell
3aeafecd7b [project @ 2004-03-21 20:07:14 by jmb]
<input type="file" support>
Broken in places.

svn path=/import/netsurf/; revision=645
2004-03-21 20:07:14 +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
John Mark Bell
19bb86e2ad [project @ 2004-03-20 22:15:40 by jmb]
Fix potential crash caused by <input type="button">

svn path=/import/netsurf/; revision=639
2004-03-20 22:15:40 +00:00
John Mark Bell
cd6ce1339f [project @ 2004-03-20 21:56:43 by jmb]
Render <input type="button" ...>

svn path=/import/netsurf/; revision=638
2004-03-20 21:56:43 +00:00
James Bursa
f606bc6219 [project @ 2004-03-14 22:49:40 by bursa]
Break out box_text_transform().

svn path=/import/netsurf/; revision=621
2004-03-14 22:49:40 +00:00
James Bursa
b5322e10b0 [project @ 2004-03-14 22:49:14 by bursa]
Fix serious inline container layout bug.

svn path=/import/netsurf/; revision=620
2004-03-14 22:49:14 +00:00
James Bursa
5ddcc2b440 [project @ 2004-03-13 20:48:00 by bursa]
Remove +1 from size of inline containers.

svn path=/import/netsurf/; revision=619
2004-03-13 20:48:00 +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
2d816dda23 [project @ 2004-02-28 17:23:07 by bursa]
Fix float-related crashes.

svn path=/import/netsurf/; revision=577
2004-02-28 17:23:07 +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
7897a98a4c [project @ 2004-02-25 15:12:57 by bursa]
Implement scaling; rewrite desktop/browser; add riscos/thumbnail; rewrite history.

svn path=/import/netsurf/; revision=566
2004-02-25 15:12:58 +00:00
James Bursa
22cb2fe809 [project @ 2004-02-22 22:27:31 by bursa]
Fix calculate_widths() for floats.

svn path=/import/netsurf/; revision=564
2004-02-22 22:27:31 +00:00
James Bursa
3a93e23b60 [project @ 2004-02-22 22:22:50 by bursa]
Take margins, broder, padding into account in calculate_widths().

svn path=/import/netsurf/; revision=563
2004-02-22 22:22:50 +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
James Bursa
919805da51 [project @ 2004-02-20 00:42:36 by bursa]
Partial implementation of collapsing margins.

svn path=/import/netsurf/; revision=561
2004-02-20 00:42:36 +00:00
James Bursa
13925ef8d5 [project @ 2004-02-18 00:24:41 by bursa]
Correct documentation of struct box.

svn path=/import/netsurf/; revision=560
2004-02-18 00:24:41 +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
John Mark Bell
88beb484c5 [project @ 2004-02-15 22:19:43 by jmb]
Font support in draw export.

svn path=/import/netsurf/; revision=549
2004-02-15 22:19:43 +00:00
James Bursa
86f7dfbc96 [project @ 2004-02-15 20:39:53 by bursa]
Document box.h, remove struct page_elements.

svn path=/import/netsurf/; revision=547
2004-02-15 20:39:53 +00:00
James Bursa
765c02622b [project @ 2004-02-13 23:07:42 by bursa]
Add font size configuration and fix proxy options bug.

svn path=/import/netsurf/; revision=538
2004-02-13 23:07:42 +00:00
James Bursa
b5fd9fb297 [project @ 2004-02-13 16:10:28 by bursa]
Simplify and break out layout_clear().

svn path=/import/netsurf/; revision=537
2004-02-13 16:10:28 +00:00
James Bursa
add94ad038 [project @ 2004-02-11 20:51:34 by bursa]
Fix crash related to floats.

svn path=/import/netsurf/; revision=535
2004-02-11 20:51:34 +00:00
James Bursa
9aabe954c0 [project @ 2004-02-11 17:15:36 by bursa]
Work on margins etc., clean up many parts of layout code.

svn path=/import/netsurf/; revision=534
2004-02-11 17:15:36 +00:00
James Bursa
d642474df1 [project @ 2004-02-10 18:13:18 by bursa]
Remove ancient test files.

svn path=/import/netsurf/; revision=533
2004-02-10 18:13:18 +00:00
James Bursa
b0c5b74987 [project @ 2004-02-02 00:22:59 by bursa]
Start at margin / padding / border support.

svn path=/import/netsurf/; revision=529
2004-02-02 00:22:59 +00:00
John Mark Bell
edf9d941f1 [project @ 2004-02-01 22:42:40 by jmb]
Add text-indent support.

svn path=/import/netsurf/; revision=527
2004-02-01 22:42:40 +00:00
John Mark Bell
9d342dad80 [project @ 2004-02-01 04:45:55 by jmb]
Fix text-transform capitalization on inline elements.

svn path=/import/netsurf/; revision=526
2004-02-01 04:45:55 +00:00
John Mark Bell
00ef17153c [project @ 2004-01-31 21:18:44 by jmb]
text-transform support.

svn path=/import/netsurf/; revision=521
2004-01-31 21:18:44 +00:00
James Bursa
2b0fc5d2e8 [project @ 2004-01-26 15:07:20 by bursa]
Fix box_create() width init.

svn path=/import/netsurf/; revision=510
2004-01-26 15:07:20 +00:00
James Bursa
92941a762d [project @ 2004-01-26 14:09:39 by bursa]
Initialise box dimensions to 0 (fixes window resizing bug).

svn path=/import/netsurf/; revision=507
2004-01-26 14:09:39 +00:00
James Bursa
92c32b005d [project @ 2004-01-24 17:12:32 by bursa]
Fix removing URL leading and trailing whitespace.

svn path=/import/netsurf/; revision=501
2004-01-24 17:12:32 +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
b116f20cd4 [project @ 2004-01-24 16:41:52 by jmb]
Strip leading and trailing whitespace from image src attributes.

svn path=/import/netsurf/; revision=499
2004-01-24 16:41:52 +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