summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Make fpmath stuff public.John Mark Bell2009-02-1410-238/+232
| | | | | | Un-inline string->fixed conversion routine. svn path=/trunk/libcss/; revision=6513
* Test + selector.Michael Drake2009-02-141-0/+82
| | | | svn path=/trunk/libcss/; revision=6506
* I was on crack this morning, it would appear.John Mark Bell2009-02-141-2/+0
| | | | svn path=/trunk/libcss/; revision=6505
* Rework handling of imported stylesheets.John Mark Bell2009-02-1411-85/+233
| | | | | | 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
* Fix caption-side constantsJohn Mark Bell2009-02-141-4/+6
| | | | | | Surround clip with #if 0 as it doesn't compile and I'm too lazy to fix it. svn path=/trunk/libcss/; revision=6500
* Update expected data.Michael Drake2009-02-141-0/+48
| | | | svn path=/trunk/libcss/; revision=6499
* Dump bottom, caption-side, clear and clip.Michael Drake2009-02-141-0/+74
| | | | svn path=/trunk/libcss/; revision=6498
* Add missing colonsJohn Mark Bell2009-02-141-4/+4
| | | | svn path=/trunk/libcss/; revision=6496
* Dump border-style-* and border-width-* properties.Michael Drake2009-02-141-7/+276
| | | | svn path=/trunk/libcss/; revision=6494
* Parse media type list in @import ruleJohn Mark Bell2009-02-142-6/+66
| | | | svn path=/trunk/libcss/; revision=6490
* I guess it helps if you actually flag that you've had a valid statement, so ↵John Mark Bell2009-02-141-0/+6
| | | | | | @import/@charset cease to take effect. svn path=/trunk/libcss/; revision=6484
* Drop css_error_handler and rename css_alloc to css_allocator_fnDaniel Silverstone2009-02-1418-32/+28
| | | | 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-144-32/+35
| | | | svn path=/trunk/libcss/; revision=6480
* Assert that we've got a style once the property handler's returned CSS_OK.John Mark Bell2009-02-141-9/+7
| | | | svn path=/trunk/libcss/; revision=6479
* Pseudo classes are now matched by callbacks to the client. This is far ↵John Mark Bell2009-02-144-134/+150
| | | | | | | | | 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-144-20/+48
| | | | svn path=/trunk/libcss/; revision=6474
* Discard selectors that contain pseudo elements in non-terminal simple selectors.John Mark Bell2009-02-144-2/+84
| | | | | | More test data for selectors with pseudo elements svn path=/trunk/libcss/; revision=6473
* Flag todoJohn Mark Bell2009-02-141-0/+2
| | | | svn path=/trunk/libcss/; revision=6472
* Fix matching of universal sibling selectors -- siblings must be adjacent.John Mark Bell2009-02-141-3/+5
| | | | svn path=/trunk/libcss/; revision=6471
* A motley selection of changes. Vague summary:John Mark Bell2009-02-148-132/+688
| | | | | | | | | | | | | | | | | | + 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-133-8/+121
| | | | | | | 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
* Ensure pseudo classes/elements fail to match.John Mark Bell2009-02-131-0/+6
| | | | | | Ensure that plain element selectors match. svn path=/trunk/libcss/; revision=6467
* Test driver for selection engine testsJohn Mark Bell2009-02-123-1/+954
| | | | svn path=/trunk/libcss/; revision=6461
* Don't attempt to match details on a NULL pointerJohn Mark Bell2009-02-121-10/+13
| | | | svn path=/trunk/libcss/; revision=6460
* Verify parameters to css_select_style.John Mark Bell2009-02-121-1/+1
| | | | svn path=/trunk/libcss/; revision=6459
* Er yeah, it probably helps to initialise your allocation function pointer.John Mark Bell2009-02-121-0/+3
| | | | svn path=/trunk/libcss/; revision=6458
* 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-123-5/+5
| | | | svn path=/trunk/libcss/; revision=6453
* Sketch out some test data for the selection engineJohn Mark Bell2009-02-122-0/+45
| | | | svn path=/trunk/libcss/; revision=6452
* Handle as much voice-family as we can.John Mark Bell2009-02-111-4/+86
| | | | svn path=/trunk/libcss/; revision=6445
* And the initial value of quotes, too.John Mark Bell2009-02-111-3/+1
| | | | svn path=/trunk/libcss/; revision=6444
* Handle quotesJohn Mark Bell2009-02-111-4/+62
| | | | svn path=/trunk/libcss/; revision=6443
* Modify encoding of quotes. Move clip to accommodate.John Mark Bell2009-02-113-24/+24
| | | | svn path=/trunk/libcss/; revision=6442
* Rework font-family handler to a) compile and b) reflect the changes made to ↵John Mark Bell2009-02-111-89/+28
| | | | | | the font-family representation. svn path=/trunk/libcss/; revision=6441
* Change encoding of font-familyJohn Mark Bell2009-02-113-72/+78
| | | | | | Move list-style-position to make room for it. svn path=/trunk/libcss/; revision=6440
* Something approximating font-family. This is hideous.John Mark Bell2009-02-112-7/+158
| | | | svn path=/trunk/libcss/; revision=6439
* Squash memory leakJohn Mark Bell2009-02-111-0/+2
| | | | svn path=/trunk/libcss/; revision=6438
* Fix dumping of cursor values.John Mark Bell2009-02-112-5/+16
| | | | | | Testcase for this. svn path=/trunk/libcss/; revision=6437
* Handle cursorJohn Mark Bell2009-02-111-7/+113
| | | | svn path=/trunk/libcss/; revision=6436
* Handle counter-increment/counter-resetJohn Mark Bell2009-02-112-21/+98
| | | | svn path=/trunk/libcss/; revision=6435
* Handle content, not that we actually do anything with the data we read, however.John Mark Bell2009-02-111-4/+53
| | | | svn path=/trunk/libcss/; revision=6434
* Handle as much of clip as we canJohn Mark Bell2009-02-111-2/+28
| | | | svn path=/trunk/libcss/; revision=6433
* Change the representation of any data that includes a css_string. They're ↵John Mark Bell2009-02-114-64/+44
| | | | | | 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-51/+186
| | | | svn path=/trunk/libcss/; revision=6431
* More property handlersJohn Mark Bell2009-02-112-116/+387
| | | | svn path=/trunk/libcss/; revision=6430
* More property handlersJohn Mark Bell2009-02-111-40/+47
| | | | svn path=/trunk/libcss/; revision=6426
* Sync azimuth with current idiom.John Mark Bell2009-02-111-15/+24
| | | | | | A couple more property handlers svn path=/trunk/libcss/; revision=6425
* More property handlersJohn Mark Bell2009-02-111-93/+66
| | | | svn path=/trunk/libcss/; revision=6424
* More property handlersJohn Mark Bell2009-02-111-71/+198
| | | | svn path=/trunk/libcss/; revision=6423