summaryrefslogtreecommitdiff
path: root/test/select-auto.c
Commit message (Collapse)AuthorAgeFilesLines
* Add structure versioning for client inputJohn Mark Bell2011-03-131-0/+3
| | | | svn path=/trunk/libcss/; revision=12007
* Fix universal selector matchingJohn Mark Bell2011-03-121-1/+5
| | | | svn path=/trunk/libcss/; revision=11980
* CSS3 NamespacesJohn Mark Bell2011-03-121-39/+41
| | | | svn path=/trunk/libcss/; revision=11972
* Hide the CSS computed style itself. Only expose a few simple structures ↵Daniel Silverstone2011-03-121-3/+0
| | | | | | which we can keep sane. All property accessors are thus hidden behind a link symbol for ABI safety svn path=/trunk/libcss/; revision=11969
* Initialise font callback pointersJohn Mark Bell2011-02-031-0/+2
| | | | svn path=/trunk/libcss/; revision=11607
* Fix node_count_siblings() to compare the correct node names when necessaryJohn Mark Bell2011-01-311-2/+3
| | | | svn path=/trunk/libcss/; revision=11562
* CSS3 SelectorsJohn Mark Bell2011-01-311-4/+280
| | | | svn path=/trunk/libcss/; revision=11557
* Provide hook for system colour name -> RGB conversionJohn Mark Bell2011-01-291-3/+16
| | | | svn path=/trunk/libcss/; revision=11522
* Ensure there are zero global symbols without css_ or css__ in front of them. ↵Daniel Silverstone2011-01-201-21/+21
| | | | | | This helps prevent confusion if someone else wants a function called parse_background or similar svn path=/trunk/libcss/; revision=11416
* Merge parser autogeneration and string handling refactor branch ↵Vincent Sanders2011-01-191-0/+5
| | | | | | r=jmb,kinnison,vince svn path=/trunk/libcss/; revision=11408
* Simultaneously select styles for base + pseudo elements.John Mark Bell2011-01-051-8/+7
| | | | svn path=/trunk/libcss/; revision=11211
* Provide notification hook for imported stylesheets, to enable clients to ↵John Mark Bell2010-12-051-1/+1
| | | | | | parallelise their processing svn path=/trunk/libcss/; revision=10999
* Fix testsuite in light of change to colour representationJohn Mark Bell2010-12-041-1/+1
| | | | svn path=/trunk/libcss/; revision=10987
* Remove Aliases file nonsenseJohn Mark Bell2010-12-041-3/+3
| | | | svn path=/trunk/libcss/; revision=10983
* Remove use of lwc_initialise and also parserutils.h includes. r=vinceDaniel Silverstone2010-12-041-19/+0
| | | | svn path=/trunk/libcss/; revision=10964
* Remove initialisation of libparserutils from testsDaniel Silverstone2010-12-041-4/+0
| | | | svn path=/trunk/libcss/; revision=10962
* Remove libcss_initialise/finalise.John Mark Bell2010-12-041-2/+3
| | | | | | Fix testsuite to compile (it passes, too) svn path=/trunk/libcss/; revision=10955
* Make libcss suitable for the new libwapcaplet behaviour.Daniel Silverstone2010-03-281-87/+124
| | | | svn path=/trunk/libcss/; revision=10168
* Fix libcss to use new libwapcaplet behaviour.Daniel Silverstone2010-03-271-43/+40
| | | | | | | TODO: update the tests to include a refcounting proof svn path=/trunk/libcss/; revision=10162
* Origin and media are not properties of the stylesheet. John Mark Bell2010-01-121-17/+26
| | | | | | | | | They are properties of the context in which the stylesheet is used. Therefore, for top-level sheets, this information must be provided at selection time. For child sheets, the origin is inherited from their parent and the applicable media types are specified on the linking mechanism. svn path=/trunk/libcss/; revision=9802
* Change selector hash to segregate:John Mark Bell2009-07-291-0/+63
| | | | | | | | | | | | | 1) element selectors 2) universal selectors with class names 3) universal selectors with ids 4) universal selectors Only bother looking for matching selectors in 2 & 3 if the node being selected for has class names or an id, respectively. In theory, this should speed up style selection somewhat. svn path=/trunk/libcss/; revision=8882
* Remove pointless parameterJohn Mark Bell2009-07-211-4/+2
| | | | svn path=/trunk/libcss/; revision=8653
* Missed this from previous commitJohn Mark Bell2009-07-171-0/+17
| | | | svn path=/trunk/libcss/; revision=8603
* Add a flag to the font size computation callback to indicate that the ↵John Mark Bell2009-07-161-2/+4
| | | | | | resultant absolute font size should not be clamped to a fixed minimum (e.g. if the client has a minimum permissible font size) svn path=/trunk/libcss/; revision=8586
* Add callback to make client compute the font size.John Mark Bell2009-07-041-1/+66
| | | | | | Some progress towards computing absolute values. svn path=/trunk/libcss/; revision=8311
* Query client for initial values of color, font-family, quotes, and ↵John Mark Bell2009-07-041-1/+29
| | | | | | voice-family properties. svn path=/trunk/libcss/; revision=8306
* Make all URIs absoluteJohn Mark Bell2009-07-011-1/+13
| | | | svn path=/trunk/libcss/; revision=8228
* Support for parsing inline stylesJohn Mark Bell2009-06-261-3/+4
| | | | svn path=/trunk/libcss/; revision=8024
* More c89ismsJohn Mark Bell2009-04-151-4/+5
| | | | svn path=/trunk/libcss/; revision=7100
* Implement set_*_from_hintJohn Mark Bell2009-03-231-1/+1
| | | | | | Plug memory leaks. svn path=/trunk/libcss/; revision=6823
* Completely change the approach used for presentational hints.John Mark Bell2009-03-231-3/+19
| | | | | | | | This one stands a chance of working sanely. While this compiles, please don't expect it to link. svn path=/trunk/libcss/; revision=6820
* Fix test harness to actually stand a chance of working.John Mark Bell2009-03-221-3/+7
| | | | svn path=/trunk/libcss/; revision=6818
* Initialise variables.John Mark Bell2009-03-021-1/+1
| | | | | | Actually make disabling of CSS dumping work. svn path=/trunk/libcss/; revision=6670
* Quirks mode parsingJohn Mark Bell2009-02-151-26/+36
| | | | svn path=/trunk/libcss/; revision=6519
* Port libcss to libwapcaplet.Daniel Silverstone2009-02-141-138/+149
| | | | | | | | | 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
* Rework handling of imported stylesheets.John Mark Bell2009-02-141-2/+1
| | | | | | No longer is the client called back mid-parse. Instead, they must acquire details of and process imported stylesheets after css_stylesheet_data_done() has been called on the parent sheet. The return code of css_stylesheet_data_done() informs the client of the need to process imported sheets. svn path=/trunk/libcss/; revision=6504
* Pseudo classes are now matched by callbacks to the client. This is far ↵John Mark Bell2009-02-141-46/+106
| | | | | | | | | 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-5/+15
| | | | svn path=/trunk/libcss/; revision=6474
* A motley selection of changes. Vague summary:John Mark Bell2009-02-141-5/+5
| | | | | | | | | | | | | | | | | | + Add config makefile (not that there's anything to configure at present :) + Fix dumping of UNIT_MS to actually use sprintf and not printf + Extend computed style dumping (still loads of properties missing) + Make result buffer larger in select-auto.c -- avoids buffer overflows when there's way more output than expected + Expand expected test output to contain defaulted properties (more of this will be needed once the computed style dumping is complete) + Store interned string pointers in css_select_state. + Intern pseudo class/element names at start of selecting styles for a sheet + Group properties so we know which ones appear in the extension blocks + Fixup unset properties once the cascade has completed + Implement matching of pseudo class/element selectors + Fix setting of background-image and list-style-image when there's no URL. svn path=/trunk/libcss/; revision=6470
* Beginnings of a computed style dump routine.John Mark Bell2009-02-131-3/+11
| | | | | | | It probably helps to process the stylesheets individually, rather than parsing them all into one sheet. Fix test data somewhat. svn path=/trunk/libcss/; revision=6468
* Test driver for selection engine testsJohn Mark Bell2009-02-121-0/+952
svn path=/trunk/libcss/; revision=6461