summaryrefslogtreecommitdiff
path: root/src/utils
Commit message (Collapse)AuthorAgeFilesLines
* Strip trailing whitespace.Michael Drake2017-09-042-3/+3
|
* make unused variable macro more portableVincent Sanders2016-02-061-1/+1
|
* Update for new lpu API.Michael Drake2013-12-142-21/+0
|
* Various changes which modify API and ABI:Michael Drake2013-12-132-2/+22
| | | | | | | | | - Remove client allocation function. - Change node_classes callback not to yield array ownership to libcss. - Node bloom filters now built by, during selection libcss. - Added selection callbacks to get and set data on document nodes. Test suite, example, and documentation updated to match.
* Update to new NSBUILD infrastructureDaniel Silverstone2012-06-291-1/+1
| | | | svn path=/trunk/libcss/; revision=14004
* CSS3 SelectorsJohn Mark Bell2011-01-312-8/+19
| | | | svn path=/trunk/libcss/; revision=11557
* Ensure there are zero global symbols without css_ or css__ in front of them. ↵Daniel Silverstone2011-01-202-2/+2
| | | | | | This helps prevent confusion if someone else wants a function called parse_background or similar svn path=/trunk/libcss/; revision=11416
* Fix libcss to use new libwapcaplet behaviour.Daniel Silverstone2010-03-271-0/+2
| | | | | | | TODO: update the tests to include a refcounting proof svn path=/trunk/libcss/; revision=10162
* 1) Allocate css_style bytecode in 16 byte chunksJohn Mark Bell2009-08-291-0/+4
| | | | | | | | | | | | | | | | | | 2) Cache unused css_style objects with chunks of size 16, 32, 48, and 64 bytes The above should reduce heap churn somewhat. Further improvements are possible: 1) Make the property parsers write the parsed values direct into the output bytecode, instead of into a temporary object which is then merged into the output. 2) Perform similar caching for css_rule and selector objects. 3) Shrink-wrap finalised output styles rather than leaving them oversized. 4) Perform measurement to determine the optimal chunk sizes (power-of-2 makes maths simple and 16 is plucked from thin air) and cache bucket count/sizes. svn path=/trunk/libcss/; revision=9502
* Simplify charToHex()John Mark Bell2009-07-071-36/+9
| | | | svn path=/trunk/libcss/; revision=8384
* Pedantic wrappingJohn Mark Bell2009-06-181-1/+2
| | | | svn path=/trunk/libcss/; revision=7852
* Port to new buildsystemJohn Mark Bell2009-03-241-44/+2
| | | | svn path=/trunk/libcss/; revision=6856
* Completely change the approach used for presentational hints.John Mark Bell2009-03-231-0/+3
| | | | | | | | This one stands a chance of working sanely. While this compiles, please don't expect it to link. svn path=/trunk/libcss/; revision=6820
* Port libcss to libwapcaplet.Daniel Silverstone2009-02-142-6/+23
| | | | | | | | | It passes the tests, perhaps we need more of them. Lifetimes of lwc_string objects really need attention before we can consider this finished. svn path=/trunk/libcss/; revision=6517
* Make fpmath stuff public.John Mark Bell2009-02-145-190/+125
| | | | | | Un-inline string->fixed conversion routine. svn path=/trunk/libcss/; revision=6513
* Rework handling of imported stylesheets.John Mark Bell2009-02-141-0/+3
| | | | | | No longer is the client called back mid-parse. Instead, they must acquire details of and process imported stylesheets after css_stylesheet_data_done() has been called on the parent sheet. The return code of css_stylesheet_data_done() informs the client of the need to process imported sheets. svn path=/trunk/libcss/; revision=6504
* Move css_error_from_string into test utilitiesDaniel Silverstone2009-02-141-30/+0
| | | | svn path=/trunk/libcss/; revision=6480
* Fix handling of max -ve numbersAdrian Lees2009-01-241-9/+26
| | | | svn path=/trunk/libcss/; revision=6214
* Range check elevation angle.John Mark Bell2009-01-231-2/+10
| | | | | | Add some more constants. svn path=/trunk/libcss/; revision=6206
* There's 400 gradians in 360 degrees.John Mark Bell2009-01-231-1/+1
| | | | svn path=/trunk/libcss/; revision=6194
* Introduce fixed point constants.John Mark Bell2009-01-232-0/+22
| | | | | | Range check azimuth angles. svn path=/trunk/libcss/; revision=6183
* Move isDigit() and isHex() to utils.h.John Mark Bell2009-01-221-0/+10
| | | | | | Fix #rgb/#rrggbb parsing to ensure that the characters are valid hex digits. svn path=/trunk/libcss/; revision=6167
* Make integer parsing more robustJohn Mark Bell2009-01-121-2/+3
| | | | svn path=/trunk/libcss/; revision=6041
* Beginnings of a colour specifier parser.John Mark Bell2009-01-111-0/+40
| | | | svn path=/trunk/libcss/; revision=6037
* css_string is now the same as a parserutils_dict_entry. This allows us to ↵John Mark Bell2008-11-271-2/+2
| | | | | | | | | | use dict entries directly as strings. iChange the way in which selectors are represented. This significantly reduces memory requirements -- reducing the approximate usage count (excludes the string dictionary, which is about 360k) of allzengarden.css from 4,535,400 bytes to 2,414,312 bytes on a 64bit platform. The string dictionary is now created and owned by the stylesheet object. The parser is just given access to this so that it can store strings in it. svn path=/trunk/libcss/; revision=5809
* Fix rounding when fractional part is close to 1.John Mark Bell2008-11-241-3/+4
| | | | | | Add testcase to exercise this. svn path=/trunk/libcss/; revision=5766
* Fix number parsing and make test code automatically determine correctness.John Mark Bell2008-11-241-2/+3
| | | | | | | More test data, which covers everything. Fix includes in libcss/types.h svn path=/trunk/libcss/; revision=5764
* All numerical values are represented in 22:10 fixed point.John Mark Bell2008-11-232-7/+104
| | | | svn path=/trunk/libcss/; revision=5762
* Make integer_from_css_string return the number of input bytes processed.John Mark Bell2008-11-201-2/+5
| | | | svn path=/trunk/libcss/; revision=5758
* Really stop on first non-digitJohn Mark Bell2008-10-271-1/+1
| | | | svn path=/trunk/libcss/; revision=5647
* Function to extract an integer from a css_string.John Mark Bell2008-10-261-1/+43
| | | | | | | | | | Use this in font-weight parsing. TODO: NUMBER tokens may contain [-+]? ([0-9]+ | [0-9]* '.' [0-9]+). The lexer currently doesn't cater for the [-+]? part. This is a bug (inherited from the grammar in the spec), and must be fixed. TODO: integer_from_css_string probably wants to pass out the number of characters processed so that the client can determine if the input was valid for their context. svn path=/trunk/libcss/; revision=5645
* Import beginnings of a CSS parsing library.John Mark Bell2008-05-014-0/+183
Currently comprises a lexer. svn path=/trunk/libcss/; revision=4112