summaryrefslogtreecommitdiff
path: root/include/libcss/types.h
Commit message (Collapse)AuthorAgeFilesLines
* Media Queries: Client media specification structure.Michael Drake2019-03-101-0/+126
|
* Code style: Use spaces for alignment.Michael Drake2019-03-101-4/+4
|
* Add support for new length units.Lucas Neves2017-11-131-20/+33
|
* @font-face support. Credit: James MontgomerieJohn Mark Bell2011-12-041-0/+4
| | | | | | Things missing: parser tests; the following descriptors: font-feature-settings, font-stretch, font-variant, unicode-range. svn path=/trunk/libcss/; revision=13244
* CSS3 NamespacesJohn Mark Bell2011-03-121-0/+21
| | | | svn path=/trunk/libcss/; revision=11972
* Minor documentation fixes.John Mark Bell2011-02-021-2/+0
| | | | | | Move typedef -- types.h was probably a bad idea, in hindsight. svn path=/trunk/libcss/; revision=11600
* add system font hookVincent Sanders2011-02-021-0/+2
| | | | svn path=/trunk/libcss/; revision=11599
* Sync comment with realityJohn Mark Bell2010-12-051-1/+1
| | | | svn path=/trunk/libcss/; revision=10994
* Sprinkle some C++ scoping aroundJohn Mark Bell2010-10-231-0/+9
| | | | svn path=/trunk/libcss/; revision=10901
* Purge "colour" from the public API -- it's just confusingJohn Mark Bell2009-06-271-1/+1
| | | | svn path=/trunk/libcss/; revision=8035
* A bunch of c89.John Mark Bell2009-04-151-1/+1
| | | | | | | Lose trailing commas. GCC 2.95 compatibility. svn path=/trunk/libcss/; revision=7099
* Some changes. No idea what they are, mind you.John Mark Bell2009-02-151-1/+1
| | | | svn path=/trunk/libcss/; revision=6536
* Port libcss to libwapcaplet.Daniel Silverstone2009-02-141-8/+0
| | | | | | | | | 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-141-4/+2
| | | | | | Un-inline string->fixed conversion routine. svn path=/trunk/libcss/; revision=6513
* Trivial header cleanups.Daniel Silverstone2009-02-141-12/+14
| | | | svn path=/trunk/libcss/; revision=6481
* Enumerate all media types defined in CSS 2.1 (includes aural, which is ↵John Mark Bell2009-02-121-2/+15
| | | | | | deprecated) svn path=/trunk/libcss/; revision=6454
* Some property accessors.John Mark Bell2009-02-061-3/+27
| | | | | | Define css_unit type. svn path=/trunk/libcss/; revision=6372
* Fill in members of css_computed_{style,uncommon}John Mark Bell2009-02-051-2/+7
| | | | | | Add a couple of types to types.h -- the fixed point stuff needs thinking about. svn path=/trunk/libcss/; revision=6365
* Introduce ability to create/destroy selection contexts.John Mark Bell2009-01-261-0/+4
| | | | svn path=/trunk/libcss/; revision=6284
* Divorce css_string from whatever gets stored in lpu hashes.John Mark Bell2008-12-011-4/+4
| | | | | | | | | | | | | | | | | | Use pointers to parserutils_hash_entry directly in stylesheet datastructures. The upshot of this for allzengarden.css is: 5506 slots used (of 8192 => 67.211914%) Data: 8 full blocks: 32768 bytes 9 partial blocks: 35124 bytes (of 36864 => 95.279945%) Total: 69936 (4112) (32) Hash structures: 65584 i.e. a total string dictionary size of 135,520 bytes, which is some 74,056 bytes less than before. svn path=/trunk/libcss/; revision=5859
* Use parserutils_hash instead of parserutils_dict.John Mark Bell2008-11-301-3/+3
| | | | | | | | | | | | | | | | | | | | | | This approximately halves the size of the interned string table. We now have the following for allzengarden.css: 5507 slots used (of 8192 => 67.224121%) Data: 3 full blocks: 12288 bytes 10 partial blocks: 38946 bytes (of 40960 => 95.083008%) Total: 53488 (4112) (32) Entries: 21 full blocks: 86016 bytes 1 partial blocks: 2096 bytes (of 4096 => 51.171875%) Total: 90496 (4112) (32) Hash structures: 65592 Which gives a total dictionary size of 209,576 bytes. Note that 43% of this is parserutils_hash_entry structures (length-pointer pairs). It would be good, therefore, to be able to purge these. svn path=/trunk/libcss/; revision=5852
* css_string is now the same as a parserutils_dict_entry. This allows us to ↵John Mark Bell2008-11-271-4/+6
| | | | | | | | | | 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 number parsing and make test code automatically determine correctness.John Mark Bell2008-11-241-1/+2
| | | | | | | More test data, which covers everything. Fix includes in libcss/types.h svn path=/trunk/libcss/; revision=5764
* Modify CSS2.1 frontend test driver to use the public stylesheet API.John Mark Bell2008-09-251-0/+8
| | | | | | 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
* Mechanism for the client to select the language level.John Mark Bell2008-09-251-7/+18
| | | | svn path=/trunk/libcss/; revision=5436
* Public stylesheet API & stubbed out implementations.John Mark Bell2008-09-251-2/+11
| | | | | | Make public headers use libcss_ as their guard macro prefix. svn path=/trunk/libcss/; revision=5433
* Implement the first-stage parser.John Mark Bell2008-07-301-0/+2
| | | | | | | | | | | Things missing: 1) Recovery after parse errors 2) Event emission (the locations of DEBUG_EVENTS are about right for this) 3) A second-stage parser 4) Any kind of testsuite svn path=/trunk/libcss/; revision=4825
* Import beginnings of a CSS parsing library.John Mark Bell2008-05-011-0/+33
Currently comprises a lexer. svn path=/trunk/libcss/; revision=4112