summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Drop css_error_handler and rename css_alloc to css_allocator_fnDaniel Silverstone2009-02-145-13/+9
| | | | svn path=/trunk/libcss/; revision=6482
* Trivial header cleanups.Daniel Silverstone2009-02-142-13/+15
| | | | svn path=/trunk/libcss/; revision=6481
* Move css_error_from_string into test utilitiesDaniel Silverstone2009-02-141-2/+0
| | | | svn path=/trunk/libcss/; revision=6480
* Pseudo classes are now matched by callbacks to the client. This is far ↵John Mark Bell2009-02-141-18/+15
| | | | | | | | | saner, as any node may match a pseudo class, not just the immediate target of the selection. Munge test data to no longer expect :active to match -- there's currently no way to specify which node(s) in the tree have which pseudo classes applying to them. The pseudo classes on @page are no longer supported (namely, :left, :right, :first). These, and @page itself, probably want a dedicated API, as they are nothing to do with normal selection. Probably something like css_error css_select_page_margins(ctx, CSS_PAGE_LEFT, &computed); svn path=/trunk/libcss/; revision=6476
* Handle :first-child within libcssJohn Mark Bell2009-02-141-10/+11
| | | | svn path=/trunk/libcss/; revision=6474
* 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