summaryrefslogtreecommitdiff
path: root/src/select
Commit message (Collapse)AuthorAgeFilesLines
* Port libcss to libwapcaplet.Daniel Silverstone2009-02-145-198/+200
| | | | | | | | | 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
* Finally, a representation of a computed content property.John Mark Bell2009-02-142-35/+141
| | | | svn path=/trunk/libcss/; revision=6515
* Fix clip: rect() with auto sidesJohn Mark Bell2009-02-142-7/+17
| | | | svn path=/trunk/libcss/; revision=6514
* I was on crack this morning, it would appear.John Mark Bell2009-02-141-2/+0
| | | | svn path=/trunk/libcss/; revision=6505
* Drop css_error_handler and rename css_alloc to css_allocator_fnDaniel Silverstone2009-02-144-6/+6
| | | | svn path=/trunk/libcss/; revision=6482
* Pseudo classes are now matched by callbacks to the client. This is far ↵John Mark Bell2009-02-141-68/+27
| | | | | | | | | 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/+4
| | | | svn path=/trunk/libcss/; revision=6474
* 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-142-126/+347
| | | | | | | | | | | | | | | | | | + 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
* 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
* 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
* 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-111-7/+7
| | | | 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-111-33/+33
| | | | | | 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
* Handle cursorJohn Mark Bell2009-02-111-7/+113
| | | | svn path=/trunk/libcss/; revision=6436
* Handle counter-increment/counter-resetJohn Mark Bell2009-02-111-19/+96
| | | | 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-113-38/+14
| | | | | | 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-111-115/+385
| | | | 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
* More property handlersJohn Mark Bell2009-02-111-60/+226
| | | | svn path=/trunk/libcss/; revision=6422
* More property handlersJohn Mark Bell2009-02-111-30/+100
| | | | svn path=/trunk/libcss/; revision=6421
* More property handlersJohn Mark Bell2009-02-111-37/+91
| | | | svn path=/trunk/libcss/; revision=6420
* More property handlersJohn Mark Bell2009-02-111-255/+252
| | | | svn path=/trunk/libcss/; revision=6419
* Border colours. Factor out common code.John Mark Bell2009-02-111-63/+58
| | | | svn path=/trunk/libcss/; revision=6418
* More property handlersJohn Mark Bell2009-02-111-17/+47
| | | | svn path=/trunk/libcss/; revision=6417
* Restore the magical properties of background-repeat values (the bottom two ↵John Mark Bell2009-02-111-17/+86
| | | | | | | | bits form a bitfield of dimensions to tile in). Implement a couple more property handlers svn path=/trunk/libcss/; revision=6416
* So, it transpires that we don't need the selection context in the property ↵John Mark Bell2009-02-112-231/+283
| | | | | | | | handlers after all. Remove that, then. Implement handlers for a few properties. svn path=/trunk/libcss/; revision=6414
* Implement sort ordering. Inevitably, this is more comment than code.John Mark Bell2009-02-101-17/+110
| | | | svn path=/trunk/libcss/; revision=6413
* Purge side bits. These cause more trouble than they're worth, and it's not ↵John Mark Bell2009-02-102-26/+307
| | | | | | as if there's a dearth of opcode space. svn path=/trunk/libcss/; revision=6410
* 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
* Distinguish between pseudo classes and pseudo elementsJohn Mark Bell2009-02-101-2/+5
| | | | 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-091-5/+42
| | | | svn path=/trunk/libcss/; revision=6404
* This is more likely to handle universal simple_selectors correctly.John Mark Bell2009-02-091-41/+143
| | | | | | | | 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-6/+107
| | | | svn path=/trunk/libcss/; revision=6402
* Beginnings of a handler function table.John Mark Bell2009-02-091-8/+11
| | | | svn path=/trunk/libcss/; revision=6401