Commit Graph

133 Commits

Author SHA1 Message Date
James Bursa
3b4baa8008 [project @ 2005-08-04 22:51:42 by bursa]
Fix strndup() compiler warnings.

svn path=/import/netsurf/; revision=1840
2005-08-04 22:51:42 +00:00
John Mark Bell
94433308d1 [project @ 2005-07-31 22:06:03 by jmb]
Ignore @import rules which occur after a valid rule.

svn path=/import/netsurf/; revision=1835
2005-07-31 22:06:03 +00:00
John Mark Bell
0686a76649 [project @ 2005-07-31 15:55:36 by jmb]
Make length -> pixel conversion more accurate.
Fix handling of CSS <numbers>
Fix border widths.

svn path=/import/netsurf/; revision=1832
2005-07-31 15:55:36 +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
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
Richard Wilson
a01210941b [project @ 2005-04-20 03:58:40 by rjw]
Fix parsing of 0 values without a unit for background-position and font-size.

svn path=/import/netsurf/; revision=1672
2005-04-20 03:58:40 +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
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
James Bursa
640c6833cf [project @ 2005-04-03 14:17:05 by bursa]
Use talloc_realloc() instead of realloc() for c->source_data, since that is now managed by talloc.

svn path=/import/netsurf/; revision=1593
2005-04-03 14:17:05 +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
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
James Bursa
d249f20d1e [project @ 2005-02-19 23:40:15 by bursa]
Add const qualifiers to css_len2px arguments.

svn path=/import/netsurf/; revision=1516
2005-02-19 23:40:15 +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
ee6d869916 [project @ 2005-01-17 23:06:33 by rjw]
Fix URI memory leakage

svn path=/import/netsurf/; revision=1458
2005-01-17 23:06:33 +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
9905ab9818 [project @ 2005-01-16 00:48:47 by jmb]
Fixup my inability to remember how things should work

svn path=/import/netsurf/; revision=1453
2005-01-16 00:48:47 +00:00
John Mark Bell
01564e642d [project @ 2005-01-16 00:08:47 by jmb]
Fixup missed css_style free

svn path=/import/netsurf/; revision=1451
2005-01-16 00:08:47 +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
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
John Mark Bell
0890fd790d [project @ 2005-01-08 01:42:08 by jmb]
Fix parsing of multiple occurrences of S
Fix parsing of blocks (missing ws after any)

svn path=/import/netsurf/; revision=1436
2005-01-08 01:42:08 +00:00
John Mark Bell
fbe6486e0b [project @ 2005-01-05 20:22:57 by jmb]
Fix syntax error reporting

svn path=/import/netsurf/; revision=1435
2005-01-05 20:22:57 +00:00
John Mark Bell
a016a10539 [project @ 2005-01-05 20:20:32 by jmb]
Tokeniser now passes whitespace to the parser (fixes ancestor combinators)

svn path=/import/netsurf/; revision=1434
2005-01-05 20:20:32 +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
270ae1d043 [project @ 2005-01-03 00:45:43 by jmb]
class and id attributes are case-sensitive (HTML4.01)

svn path=/import/netsurf/; revision=1427
2005-01-03 00:45:43 +00:00
James Bursa
64928d9a67 [project @ 2005-01-02 14:42:16 by bursa]
Fix some compiler warnings.

svn path=/import/netsurf/; revision=1426
2005-01-02 14:42:16 +00:00
Michael Drake
6dba177b3d [project @ 2004-12-07 09:25:00 by tlsa]
Fix navajowhite named colour.

svn path=/import/netsurf/; revision=1387
2004-12-07 09:25:00 +00:00
John Mark Bell
2b91efdc1e [project @ 2004-12-07 02:25:14 by jmb]
Support SVG 1.0 named colours (plus feldspar, lightslateblue and violetred).

svn path=/import/netsurf/; revision=1386
2004-12-07 02:25:14 +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
James Bursa
0685aeaa3f [project @ 2004-10-07 09:34:15 by bursa]
Fix #include path.

svn path=/import/netsurf/; revision=1307
2004-10-07 09:34:15 +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
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
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
e81a96fb53 [project @ 2004-08-06 21:16:03 by jmb]
Fix bug in merging of selector lists

svn path=/import/netsurf/; revision=1186
2004-08-06 21:16:03 +00:00
John Mark Bell
603196e720 [project @ 2004-08-05 01:57:14 by jmb]
:first-child pseudo class support
Merge global and element selector lists for more accurate selector matching

svn path=/import/netsurf/; revision=1180
2004-08-05 01:57:14 +00:00
John Mark Bell
d18b55984f [project @ 2004-08-01 23:59:16 by jmb]
Break out uri(...) parsing into separate function

svn path=/import/netsurf/; revision=1177
2004-08-01 23:59:16 +00:00
John Mark Bell
6103e3f0cd [project @ 2004-08-01 21:56:47 by jmb]
Rationalise top, bottom, right and left property handling

svn path=/import/netsurf/; revision=1174
2004-08-01 21:56:47 +00:00
John Mark Bell
3b660a7e33 [project @ 2004-08-01 14:13:47 by jmb]
Internal representation and parsing of most CSS2 properties.

svn path=/import/netsurf/; revision=1172
2004-08-01 14:13:47 +00:00
John Mark Bell
d601aa7188 [project @ 2004-07-30 21:53:52 by jmb]
Implement some CSS3 attribute selectors

svn path=/import/netsurf/; revision=1167
2004-07-30 21:53:52 +00:00
John Mark Bell
6560a2ae5f [project @ 2004-07-16 20:22:31 by jmb]
Add overflow support.
Re-tabulate property table in ruleset.c

svn path=/import/netsurf/; revision=1087
2004-07-16 20:22:31 +00:00
John Mark Bell
faef35e6e9 [project @ 2004-07-16 20:21:33 by jmb]
Add overflow. Hyphenate some identities correctly

svn path=/import/netsurf/; revision=1086
2004-07-16 20:21:33 +00:00
John Tytgat
4cca5c72ed [project @ 2004-07-01 20:27:49 by joty]
Log the CSS URL too when there is a syntax error detected.

svn path=/import/netsurf/; revision=1036
2004-07-01 20:27:49 +00:00
John Mark Bell
da1ad11a35 [project @ 2004-06-25 21:25:33 by jmb]
Increase limit of property name to 25 chars to accommodate background-attachment.
This was missed from the original background properties checkin

svn path=/import/netsurf/; revision=1011
2004-06-25 21:25:33 +00:00
James Bursa
0df8b0734d [project @ 2004-06-25 20:24:06 by bursa]
Fix parsing of invalid color declarations.

svn path=/import/netsurf/; revision=1010
2004-06-25 20:24:06 +00:00
James Bursa
aa6e904604 [project @ 2004-06-25 14:28:29 by bursa]
Parse CSS background shorthand property. Background rendering improvements.

svn path=/import/netsurf/; revision=1006
2004-06-25 14:28:29 +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
John Mark Bell
913498394c [project @ 2004-06-24 00:07:28 by jmb]
Support for background: meta-property. background-position isn't handled here. this needs fixing.

svn path=/import/netsurf/; revision=1001
2004-06-24 00:07:28 +00:00
John Mark Bell
b8896816c3 [project @ 2004-06-15 20:45:02 by jmb]
rgb() support

svn path=/import/netsurf/; revision=974
2004-06-15 20:45:02 +00:00