summaryrefslogtreecommitdiff
path: root/include/libcss
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Synchronise media type bitfield with reality -- it's 64bits wide.John Mark Bell2009-02-121-2/+2
| | | | svn path=/trunk/libcss/; revision=6453
* Modify encoding of quotes. Move clip to accommodate.John Mark Bell2009-02-112-17/+17
| | | | svn path=/trunk/libcss/; revision=6442
* Change encoding of font-familyJohn Mark Bell2009-02-112-39/+45
| | | | | | Move list-style-position to make room for it. svn path=/trunk/libcss/; revision=6440
* Handle counter-increment/counter-resetJohn Mark Bell2009-02-111-2/+2
| | | | svn path=/trunk/libcss/; revision=6435
* Change the representation of any data that includes a css_string. They're ↵John Mark Bell2009-02-111-26/+30
| | | | | | now either embedded directly in the computed style object, or are comprised of an array of objects (rather than pointers to objects) svn path=/trunk/libcss/; revision=6432
* More property handlersJohn Mark Bell2009-02-111-1/+2
| | | | svn path=/trunk/libcss/; revision=6430
* Border colours. Factor out common code.John Mark Bell2009-02-111-3/+3
| | | | svn path=/trunk/libcss/; revision=6418
* Restore the magical properties of background-repeat values (the bottom two ↵John Mark Bell2009-02-111-4/+4
| | | | | | | | bits form a bitfield of dimensions to tile in). Implement a couple more property handlers svn path=/trunk/libcss/; revision=6416
* Map inherit to 0 for all properties, so we get a default style of everything ↵John Mark Bell2009-02-101-268/+268
| | | | | | inherited. svn path=/trunk/libcss/; revision=6408
* Enumerate pseudo classes and elementsJohn Mark Bell2009-02-101-0/+20
| | | | svn path=/trunk/libcss/; revision=6407
* Match detailsJohn Mark Bell2009-02-091-0/+22
| | | | svn path=/trunk/libcss/; revision=6404
* This is more likely to handle universal simple_selectors correctly.John Mark Bell2009-02-091-3/+6
| | | | | | | | Refactor stuff while we're at it. Selector chains containing universal simple components are expensive to match/reject, as they require matching details on every previous sibling/ancestor (depending on the combinator type). Thus, we aim to handle the universal case last, to have the best chance of avoiding it. svn path=/trunk/libcss/; revision=6403
* Match selector chains. Universal selectors will probably break this.John Mark Bell2009-02-091-1/+9
| | | | svn path=/trunk/libcss/; revision=6402
* Beginnings of a handler function table.John Mark Bell2009-02-091-1/+9
| | | | svn path=/trunk/libcss/; revision=6401
* Oh look, I've changed my mind again.John Mark Bell2009-02-072-2/+4
| | | | | | It's far better that the client creates computed style objects which we then populate. This will allow more efficient composition of styles as, in the most common case, it won't require any memory allocation. svn path=/trunk/libcss/; revision=6390
* More API changes.John Mark Bell2009-02-072-4/+2
| | | | | | | Make css_computed_style_create() private. Implement css_computed_style_[create,destroy](). svn path=/trunk/libcss/; revision=6389
* It probably helps to ensure the allocation routine is accessible.John Mark Bell2009-02-071-1/+4
| | | | | | Minor fix for an accessor. svn path=/trunk/libcss/; revision=6387
* More accessorsJohn Mark Bell2009-02-061-0/+102
| | | | svn path=/trunk/libcss/; revision=6386
* More accessorsJohn Mark Bell2009-02-061-0/+68
| | | | svn path=/trunk/libcss/; revision=6385
* More accessorsJohn Mark Bell2009-02-061-0/+67
| | | | svn path=/trunk/libcss/; revision=6384
* More accessorsJohn Mark Bell2009-02-061-0/+39
| | | | svn path=/trunk/libcss/; revision=6383
* More accessorsJohn Mark Bell2009-02-061-0/+40
| | | | svn path=/trunk/libcss/; revision=6382
* More accessorsJohn Mark Bell2009-02-061-2/+161
| | | | svn path=/trunk/libcss/; revision=6381
* More accessorsJohn Mark Bell2009-02-061-0/+81
| | | | svn path=/trunk/libcss/; revision=6380
* More accessorsJohn Mark Bell2009-02-061-0/+120
| | | | svn path=/trunk/libcss/; revision=6379
* More accessorsJohn Mark Bell2009-02-061-0/+160
| | | | svn path=/trunk/libcss/; revision=6378
* More accessorsJohn Mark Bell2009-02-061-0/+90
| | | | svn path=/trunk/libcss/; revision=6377
* More accessorsJohn Mark Bell2009-02-061-0/+172
| | | | svn path=/trunk/libcss/; revision=6376
* More accessorsJohn Mark Bell2009-02-061-0/+218
| | | | svn path=/trunk/libcss/; revision=6375
* More accessorsJohn Mark Bell2009-02-061-1/+168
| | | | svn path=/trunk/libcss/; revision=6374
* I've changed my mind. Don't assume that _INHERIT doesn't exist here.John Mark Bell2009-02-061-15/+56
| | | | svn path=/trunk/libcss/; revision=6373
* Some property accessors.John Mark Bell2009-02-062-5/+149
| | | | | | Define css_unit type. svn path=/trunk/libcss/; revision=6372
* Bit allocations.John Mark Bell2009-02-061-0/+49
| | | | svn path=/trunk/libcss/; revision=6369
* Enumerated values for properties.John Mark Bell2009-02-052-16/+501
| | | | | | Fixes to bit allocations. svn path=/trunk/libcss/; revision=6367
* Fill in members of css_computed_{style,uncommon}John Mark Bell2009-02-052-17/+104
| | | | | | Add a couple of types to types.h -- the fixed point stuff needs thinking about. svn path=/trunk/libcss/; revision=6365
* cursor:, which I omitted from the previous commit.John Mark Bell2009-01-291-4/+11
| | | | svn path=/trunk/libcss/; revision=6292
* More maths. I have no idea if this approach is sane, btw. More importantly, ↵John Mark Bell2009-01-291-11/+24
| | | | | | I've no useful ideas as to how to represent content: svn path=/trunk/libcss/; revision=6291
* Create header containing computed style representation. This isn't remotely ↵John Mark Bell2009-01-272-6/+138
| | | | | | complete. svn path=/trunk/libcss/; revision=6289
* I guess it helps if you commit the header, too.John Mark Bell2009-01-271-2/+6
| | | | svn path=/trunk/libcss/; revision=6286
* Introduce ability to create/destroy selection contexts.John Mark Bell2009-01-262-0/+40
| | | | 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
* Make stylesheet component constructors/destructors report errorsJohn Mark Bell2008-11-091-3/+3
| | | | svn path=/trunk/libcss/; revision=5675
* 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
* Create a parser instance for a stylesheet. Also create a level-specific ↵John Mark Bell2008-09-251-1/+1
| | | | | | 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-252-8/+20
| | | | svn path=/trunk/libcss/; revision=5436
* Add API to get/set a stylesheet's disabled stateJohn Mark Bell2008-09-251-2/+3
| | | | svn path=/trunk/libcss/; revision=5435