summaryrefslogtreecommitdiff
path: root/include/libcss/select.h
Commit message (Collapse)AuthorAgeFilesLines
* Drop css_error_handler and rename css_alloc to css_allocator_fnDaniel Silverstone2009-02-141-1/+1
| | | | svn path=/trunk/libcss/; revision=6482
* 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 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-071-1/+1
| | | | | | 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-071-1/+1
| | | | | | | Make css_computed_style_create() private. Implement css_computed_style_[create,destroy](). svn path=/trunk/libcss/; revision=6389
* Create header containing computed style representation. This isn't remotely ↵John Mark Bell2009-01-271-6/+0
| | | | | | 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-261-0/+36
svn path=/trunk/libcss/; revision=6284