summaryrefslogtreecommitdiff
path: root/src/stylesheet.c
Commit message (Collapse)AuthorAgeFilesLines
* Make stylesheet component constructors/destructors report errorsJohn Mark Bell2008-11-091-50/+84
| | | | svn path=/trunk/libcss/; revision=5675
* Port libcss to new lpu API.John Mark Bell2008-11-091-6/+7
| | | | | | Make lexer, core parser, and css21 parser constructors&destructors return errors svn path=/trunk/libcss/; revision=5674
* Fix memory corruption. This took far too long to debug. Bah.John Mark Bell2008-10-251-1/+2
| | | | svn path=/trunk/libcss/; revision=5628
* A bunch of property parsers.John Mark Bell2008-10-251-0/+17
| | | | | | | | | | Split out !important parsing into a separate function. Support for dumping bytecode to a file handle in some kind of human-readable format. Strings can be represented in the bytecode as a pointer, length pair rather than embedding the string data into the bytecode -- all strings are interned by the core syntax parser. Add todo relating to early destruction of parser object (it shouldn't be needed once parsing is complete). Note documented issue surrounding interned string dictionary, however. In general, it seems wasteful to create a new dictionary containing string representations of keywords for every single parser instance. It would be better to have one central (statically allocated?) dictionary for this and then each parser instance can have a smaller dictionary containing any unknown strings contained within the stylesheet being parsed (e.g. string constants or URLs). svn path=/trunk/libcss/; revision=5627
* Something approximating a parser for clear.John Mark Bell2008-10-231-0/+92
| | | | | | Provide API to create/destroy css_styles and append them to css_rules. svn path=/trunk/libcss/; revision=5625
* Fix stupid.John Mark Bell2008-10-201-4/+8
| | | | svn path=/trunk/libcss/; revision=5606
* Squash warningJohn Mark Bell2008-10-201-1/+1
| | | | svn path=/trunk/libcss/; revision=5605
* Provide an internal mechanism for dumping stylesheets to a file handle.John Mark Bell2008-10-191-0/+172
| | | | | | Make the css21 test driver call this so we can see if it's working. svn path=/trunk/libcss/; revision=5602
* Finish selector list parsingJohn Mark Bell2008-10-191-1/+2
| | | | svn path=/trunk/libcss/; revision=5599
* Modify CSS2.1 frontend test driver to use the public stylesheet API.John Mark Bell2008-09-251-1/+1
| | | | | | Media type handling may need to change -- 32bits may not be large enough in the long term, and there's no sensible way of extending this without causing ABI breakage in the future. svn path=/trunk/libcss/; revision=5439
* Implement css_stylesheet_append_data and css_stylesheet_data_doneJohn Mark Bell2008-09-251-10/+6
| | | | svn path=/trunk/libcss/; revision=5438
* Create a parser instance for a stylesheet. Also create a level-specific ↵John Mark Bell2008-09-251-2/+34
| | | | | | frontend. This probably wants reworking as we don't really want to be switching on the language level every time we want to interact with the parser frontend. svn path=/trunk/libcss/; revision=5437
* Mechanism for the client to select the language level.John Mark Bell2008-09-251-2/+3
| | | | svn path=/trunk/libcss/; revision=5436
* Add API to get/set a stylesheet's disabled stateJohn Mark Bell2008-09-251-0/+36
| | | | svn path=/trunk/libcss/; revision=5435
* Implement most of stylesheet's public APIJohn Mark Bell2008-09-251-19/+77
| | | | svn path=/trunk/libcss/; revision=5434
* Public stylesheet API & stubbed out implementations.John Mark Bell2008-09-251-0/+135
| | | | | | Make public headers use libcss_ as their guard macro prefix. svn path=/trunk/libcss/; revision=5433
* Implement a bunch of css_stylesheet_*John Mark Bell2008-09-201-24/+103
| | | | svn path=/trunk/libcss/; revision=5376
* More API munging. Also stub out implementations of new APIs.John Mark Bell2008-09-131-0/+186
svn path=/trunk/libcss/; revision=5306