summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Much API cleanup.John Mark Bell2009-02-102-23/+1660
| | | | | | | | Dispatch property handling through a table. Implement cascade_style. All property handlers are stubs at present. svn path=/trunk/libcss/; revision=6409
* 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
* Distinguish between pseudo classes and pseudo elementsJohn Mark Bell2009-02-107-13/+57
| | | | svn path=/trunk/libcss/; revision=6406
* Musings about a potential optimisationJohn Mark Bell2009-02-091-0/+6
| | | | svn path=/trunk/libcss/; revision=6405
* Match detailsJohn Mark Bell2009-02-092-5/+64
| | | | svn path=/trunk/libcss/; revision=6404
* This is more likely to handle universal simple_selectors correctly.John Mark Bell2009-02-092-44/+149
| | | | | | | | 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-092-7/+116
| | | | svn path=/trunk/libcss/; revision=6402
* Beginnings of a handler function table.John Mark Bell2009-02-092-9/+20
| | | | svn path=/trunk/libcss/; revision=6401
* Iterate over the selectors in a stylesheet which match the current node's name.John Mark Bell2009-02-091-3/+76
| | | | svn path=/trunk/libcss/; revision=6400
* Traverse stylesheet tree iteratively.John Mark Bell2009-02-091-22/+60
| | | | svn path=/trunk/libcss/; revision=6399
* Further tweaks. We need to know the <sheet,rule> pair from which a property ↵John Mark Bell2009-02-071-2/+8
| | | | | | got set so that we can determine whether a subsequently defined rule overrides it. svn path=/trunk/libcss/; revision=6395
* Beginnings of a style selection algorithm.John Mark Bell2009-02-071-10/+76
| | | | svn path=/trunk/libcss/; revision=6392
* Fix build.John Mark Bell2009-02-071-1/+18
| | | | | | Sketch out a struct containing the state needed during selection. We need to know the specificity, origin, and importance of the source of the current property value. We also need to know whether the property has been set at all (as this is not available by simply inspecting the computed style struct). svn path=/trunk/libcss/; revision=6391
* Oh look, I've changed my mind again.John Mark Bell2009-02-075-23/+10
| | | | | | 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-076-7/+152
| | | | | | | Make css_computed_style_create() private. Implement css_computed_style_[create,destroy](). svn path=/trunk/libcss/; revision=6389
* Mutators for computed styleJohn Mark Bell2009-02-072-1/+1628
| | | | svn path=/trunk/libcss/; revision=6388
* 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-053-17/+105
| | | | | | 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
* Fiddle around with css_select_style()'s API. Add some documentation.John Mark Bell2009-01-271-2/+23
| | | | svn path=/trunk/libcss/; revision=6285
* Introduce ability to create/destroy selection contexts.John Mark Bell2009-01-264-1/+261
| | | | svn path=/trunk/libcss/; revision=6284
* Use a chaining hash for selectors -- permits easy sorting of hash entries by ↵John Mark Bell2009-01-262-125/+111
| | | | | | specificity/rule index. svn path=/trunk/libcss/; revision=6280
* More font and voice family tests.Michael Drake2009-01-261-0/+39
| | | | svn path=/trunk/libcss/; revision=6279
* Propagate specificity of simple selectors to the head of each combinator chain.John Mark Bell2009-01-261-0/+3
| | | | | | This saves us having to calculate the specificity every time we want it. svn path=/trunk/libcss/; revision=6278
* Assert preconditions, rather than returning runtime errors.John Mark Bell2009-01-251-19/+22
| | | | | | Squash leakage of selectors array in selector/page rules. svn path=/trunk/libcss/; revision=6274
* Implement css_stylesheet_{add,remove}_rule, thus (de)populating the selector ↵John Mark Bell2009-01-251-7/+191
| | | | | | hash. svn path=/trunk/libcss/; revision=6273
* Add ability to delete items from the selector hash (we use lazy deletion, as ↵John Mark Bell2009-01-252-3/+50
| | | | | | it's simpler) svn path=/trunk/libcss/; revision=6272
* Clean up rules when destroying sheetJohn Mark Bell2009-01-251-1/+12
| | | | svn path=/trunk/libcss/; revision=6271
* Remove redundant fieldsJohn Mark Bell2009-01-251-6/+0
| | | | svn path=/trunk/libcss/; revision=6270