summaryrefslogtreecommitdiff
path: root/include/libcss/libcss.h
Commit message (Collapse)AuthorAgeFilesLines
* Add support for logging via libnslog.Michael Drake2018-01-201-0/+4
| | | | | Release builds minumum compiled level is warning. Debug builds minimum compiled level is debug.
* Various changes which modify API and ABI:Michael Drake2013-12-131-1/+0
| | | | | | | | | - Remove client allocation function. - Change node_classes callback not to yield array ownership to libcss. - Node bloom filters now built by, during selection libcss. - Added selection callbacks to get and set data on document nodes. Test suite, example, and documentation updated to match.
* Significantly optimise CSS selection performance.Michael Drake2013-12-011-0/+1
| | | | | | | | | | | | | | | | Now we pass a node bloom filter to css_get_style. That node bloom filter is filled with the node's ancestor element, class, and id names. Internally, libcss also generates a bloom filter for each selector chain. If the selector chain's bloom filter is not a subset of the node bloom filter, we know that the selector chain's rule does not apply to the node. This avoids the slow selector chain matching process. Other smaller optimisations to move the ruling out of selector chains for inapplicable media types and other reasons to before we start comparing rules from different sources to find the next rule. All this is now done in hash.c so select.c never sees the trivially ruled out rules.
* @font-face support. Credit: James MontgomerieJohn Mark Bell2011-12-041-0/+1
| | | | | | Things missing: parser tests; the following descriptors: font-feature-settings, font-stretch, font-variant, unicode-range. svn path=/trunk/libcss/; revision=13244
* Remove libcss_initialise/finalise.John Mark Bell2010-12-041-7/+0
| | | | | | Fix testsuite to compile (it passes, too) svn path=/trunk/libcss/; revision=10955
* Sprinkle some C++ scoping aroundJohn Mark Bell2010-10-231-0/+9
| | | | svn path=/trunk/libcss/; revision=10901
* Some changes. No idea what they are, mind you.John Mark Bell2009-02-151-0/+2
| | | | svn path=/trunk/libcss/; revision=6536
* Port libcss to libwapcaplet.Daniel Silverstone2009-02-141-0/+2
| | | | | | | | | 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
* Drop css_error_handler and rename css_alloc to css_allocator_fnDaniel Silverstone2009-02-141-2/+4
| | | | svn path=/trunk/libcss/; revision=6482
* Trivial header cleanups.Daniel Silverstone2009-02-141-1/+1
| | | | svn path=/trunk/libcss/; revision=6481
* Public stylesheet API & stubbed out implementations.John Mark Bell2008-09-251-2/+2
| | | | | | Make public headers use libcss_ as their guard macro prefix. svn path=/trunk/libcss/; revision=5433
* Import beginnings of a CSS parsing library.John Mark Bell2008-05-011-0/+23
Currently comprises a lexer. svn path=/trunk/libcss/; revision=4112