summaryrefslogtreecommitdiff
path: root/css/ruleset.c
Commit message (Collapse)AuthorAgeFilesLines
* more obvious C89François Revel2008-07-291-1/+2
| | | | svn path=/trunk/netsurf/; revision=4792
* Include headers we need, rather than depending on (optional) features doing so.Rob Kendrick2008-07-281-0/+1
| | | | svn path=/trunk/netsurf/; revision=4774
* Remove if that was always true.Michael Drake2008-07-261-8/+6
| | | | svn path=/trunk/netsurf/; revision=4740
* The core code has always assumed a locale of "C".John Mark Bell2008-05-131-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not change the locale globally, else things will break in weird and wonderful ways. Introduce utils/locale.[ch], which provide locale-specific wrappers for various functions (currently just the <ctype.h> ones). Fix up the few places I can see that actually require that the underlying locale is paid attention to. Some notes: 1) The GTK frontend code has not been touched. It is possible that reading of numeric values (e.g. from the preferences dialogue) may break with this change, particularly in locales that use something other than '.' as their decimal separator. 2) The search code is left unchanged (i.e. assuming a locale of "C"). This may break case insensitive matching of non-ASCII characters. I doubt that ever actually worked, anyway. In future, it should use Unicode case conversion to achieve the same effect. 3) The text input handling in the core makes use of isspace() to detect word boundaries. This is fine for western languages (even in the C locale, which it's currently assuming). It will, however, break for CJK et. al. (this has always been the case, rather than being a new issue) 4) text-transform uses locale-specific variants of to{lower,upper}. In future this should probably be performing Unicode case conversion. This is the only part of the core code that makes use of locale information. In future, if you require locale-specific behaviour, do the following: setlocale(LC_<whatever>, ""); <your operation(s) here> setlocale(LC_<whatever>, "C"); The first setlocale will change the current locale to the native environment. The second setlocale will reset the current locale to "C". Any value other than "" or "C" is probably a bug, unless there's a really good reason for it. In the long term, it is expected that all locale-dependent code will reside in platform frontends -- the core being wholly locale agnostic (though assuming "C" for things like decimal separators). svn path=/trunk/netsurf/; revision=4153
* Bring definition of {escape} in line with CSS 2.1 spec.John Mark Bell2008-03-061-8/+32
| | | | | | | Require units when parsing css lengths. Correctly ignore background: meta-properties which have multiple instances of sub-properties (e.g. foo { background: red pink; }) svn path=/trunk/netsurf/; revision=3893
* Bug fixes in parse_length, parse_clip, css_dump_style, css_dump_length by ↵James Bursa2007-10-281-4/+3
| | | | | | Franz Korntner. svn path=/trunk/netsurf/; revision=3635
* No longer assert on invalid input to hex_colour.Richard Wilson2007-10-091-2/+1
| | | | svn path=/trunk/netsurf/; revision=3626
* Fix parsing of invalid colour values becoming CSS_COLOR_NONE. Make all ↵Richard Wilson2007-10-091-48/+69
| | | | | | colour parsing code common. svn path=/trunk/netsurf/; revision=3625
* Allow hex CSS colour values with omitted hash. Fix #rgb and #rrggbb handling ↵Michael Drake2007-10-031-2/+34
| | | | | | to only accept hex characters. svn path=/trunk/netsurf/; revision=3620
* Update all source code file headers to reflect GPL version 2 only and ↵Vincent Sanders2007-08-081-3/+14
| | | | | | contain appropriate licence text svn path=/trunk/netsurf/; revision=3486
* Remove the netsurf/ from the include paths and rationalise use of <> vs "" ↵Daniel Silverstone2007-05-301-6/+6
| | | | | | | | | | | | | | in includes NetSurf includes are now done with ""s and other system includes with <>s as C intended. The scandeps tool has been updated to only look for ""ed includes, and to verify that the files exist in the tree before adding them to the dependency lines. The depend rule has therefore been augmented to make sure the autogenerated files are built before it is run. This is untested under self-hosted RISC OS builds. All else tested and works. svn path=/trunk/netsurf/; revision=3307
* Make GTK build compile on FreeBSD.James Bursa2007-01-291-0/+1
| | | | svn path=/trunk/netsurf/; revision=3154
* Update project URL.Michael Drake2006-11-271-1/+1
| | | | svn path=/trunk/netsurf/; revision=3073
* Fix accidental press of delete :-sRichard Wilson2006-08-151-1/+1
| | | | svn path=/trunk/netsurf/; revision=2852
* Treat unitless CSS values as pixels (fix 1527056)Richard Wilson2006-08-151-4/+9
| | | | svn path=/trunk/netsurf/; revision=2851
* Fix background: parsing & lose potential memory leakJohn Mark Bell2006-06-281-3/+9
| | | | svn path=/trunk/netsurf/; revision=2660
* [project @ 2006-03-17 02:08:42 by jmb]John Mark Bell2006-03-171-44/+68
| | | | | | Fix behaviour of clip property parser when presented with invalid data svn path=/import/netsurf/; revision=2133
* [project @ 2006-02-11 21:58:56 by jmb]John Mark Bell2006-02-111-1/+1
| | | | | | Permit negative text indent svn path=/import/netsurf/; revision=2075
* [project @ 2005-08-04 22:51:42 by bursa]James Bursa2005-08-041-0/+1
| | | | | | Fix strndup() compiler warnings. svn path=/import/netsurf/; revision=1840
* [project @ 2005-04-20 03:58:40 by rjw]Richard Wilson2005-04-201-5/+10
| | | | | | Fix parsing of 0 values without a unit for background-position and font-size. svn path=/import/netsurf/; revision=1672
* [project @ 2005-04-09 09:47:36 by bursa]James Bursa2005-04-091-15/+12
| | | | | | 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
* [project @ 2005-03-23 18:14:38 by rjw]Richard Wilson2005-03-231-1/+17
| | | | | | Fix incorrect background position calculations. Modify CSS parser to pass all background-position testcases. svn path=/import/netsurf/; revision=1574
* [project @ 2005-03-22 00:10:42 by rjw]Richard Wilson2005-03-221-2/+5
| | | | | | Experimental cellpadding support svn path=/import/netsurf/; revision=1569
* [project @ 2005-01-17 23:06:33 by rjw]Richard Wilson2005-01-171-22/+28
| | | | | | Fix URI memory leakage svn path=/import/netsurf/; revision=1458
* [project @ 2005-01-16 21:39:21 by rjw]Richard Wilson2005-01-161-0/+251
| | | | | | Read content, counter-reset and counter-increment properties. svn path=/import/netsurf/; revision=1456
* [project @ 2005-01-16 00:03:45 by jmb]John Mark Bell2005-01-161-2/+1
| | | | | | Create interface for duplication and destruction of css_style structs. svn path=/import/netsurf/; revision=1450
* [project @ 2004-12-07 09:25:00 by tlsa]Michael Drake2004-12-071-1/+1
| | | | | | Fix navajowhite named colour. svn path=/import/netsurf/; revision=1387
* [project @ 2004-12-07 02:25:14 by jmb]John Mark Bell2004-12-071-21/+154
| | | | | | Support SVG 1.0 named colours (plus feldspar, lightslateblue and violetred). svn path=/import/netsurf/; revision=1386
* [project @ 2004-12-01 21:48:11 by bursa]James Bursa2004-12-011-10/+18
| | | | | | Implement table cell padding and separated borders model for tables. Min/max width calculations still need implementing. svn path=/import/netsurf/; revision=1378
* [project @ 2004-08-09 16:11:58 by jmb]John Mark Bell2004-08-091-6/+7
| | | | | | | 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
* [project @ 2004-08-01 23:59:16 by jmb]John Mark Bell2004-08-011-90/+71
| | | | | | Break out uri(...) parsing into separate function svn path=/import/netsurf/; revision=1177
* [project @ 2004-08-01 21:56:47 by jmb]John Mark Bell2004-08-011-99/+29
| | | | | | Rationalise top, bottom, right and left property handling svn path=/import/netsurf/; revision=1174
* [project @ 2004-08-01 14:13:47 by jmb]John Mark Bell2004-08-011-0/+926
| | | | | | Internal representation and parsing of most CSS2 properties. svn path=/import/netsurf/; revision=1172
* [project @ 2004-07-16 20:22:31 by jmb]John Mark Bell2004-07-161-56/+68
| | | | | | | Add overflow support. Re-tabulate property table in ruleset.c svn path=/import/netsurf/; revision=1087
* [project @ 2004-06-25 21:25:33 by jmb]John Mark Bell2004-06-251-2/+2
| | | | | | | 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
* [project @ 2004-06-25 20:24:06 by bursa]James Bursa2004-06-251-1/+4
| | | | | | Fix parsing of invalid color declarations. svn path=/import/netsurf/; revision=1010
* [project @ 2004-06-25 14:28:29 by bursa]James Bursa2004-06-251-114/+243
| | | | | | Parse CSS background shorthand property. Background rendering improvements. svn path=/import/netsurf/; revision=1006
* [project @ 2004-06-24 23:29:31 by bursa]James Bursa2004-06-241-338/+315
| | | | | | Simplify and improve parse_background_position(). Implement css_parse_rgb(). Fix truncation of paragraphs with background images. svn path=/import/netsurf/; revision=1003
* [project @ 2004-06-24 00:07:28 by jmb]John Mark Bell2004-06-241-1/+28
| | | | | | Support for background: meta-property. background-position isn't handled here. this needs fixing. svn path=/import/netsurf/; revision=1001
* [project @ 2004-06-15 20:45:02 by jmb]John Mark Bell2004-06-151-1/+54
| | | | | | rgb() support svn path=/import/netsurf/; revision=974
* [project @ 2004-06-11 12:51:40 by jmb]John Mark Bell2004-06-111-1/+7
| | | | | | Fix for crash caused by inline style attributes specifying background images. svn path=/import/netsurf/; revision=961
* [project @ 2004-06-09 19:55:06 by jmb]John Mark Bell2004-06-091-1/+276
| | | | | | | | | 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
* [project @ 2004-05-01 17:48:38 by bursa]James Bursa2004-05-011-138/+214
| | | | | | CSS parsing improvements: new tokeniser using re2c, improve memory-exhaustion behaviour, plug leaks, reduce memory usage, clean up code, add source documention. svn path=/import/netsurf/; revision=806
* [project @ 2004-04-18 21:10:02 by jmb]John Mark Bell2004-04-181-2/+14
| | | | | | Work around the lack of a '#' at the start of a colour specified in #rrggbb format svn path=/import/netsurf/; revision=793
* [project @ 2004-04-02 23:12:26 by jmb]John Mark Bell2004-04-021-0/+20
| | | | | | Implement CSS cursor property svn path=/import/netsurf/; revision=705
* [project @ 2004-03-29 21:27:52 by bursa]James Bursa2004-03-291-4/+0
| | | | | | Implement CSS universal selector. svn path=/import/netsurf/; revision=690
* [project @ 2004-03-22 00:36:53 by bursa]James Bursa2004-03-221-96/+358
| | | | | | Implement most of CSS borders. svn path=/import/netsurf/; revision=650
* [project @ 2004-03-13 20:45:41 by bursa]James Bursa2004-03-131-2/+4
| | | | | | Use option_font_size when calculating keyword font-size. svn path=/import/netsurf/; revision=618
* [project @ 2004-02-02 00:22:59 by bursa]James Bursa2004-02-021-3/+254
| | | | | | Start at margin / padding / border support. svn path=/import/netsurf/; revision=529
* [project @ 2004-02-01 22:42:40 by jmb]John Mark Bell2004-02-011-0/+14
| | | | | | Add text-indent support. svn path=/import/netsurf/; revision=527