summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Provide accessor for computed value of display assuming static position.John Mark Bell2009-07-151-0/+41
| | | | | | Modify css_computed_display to follow $9.7. svn path=/trunk/libcss/; revision=8568
* Provide some API to allow retrieval of an Initial styleJohn Mark Bell2009-07-121-0/+4
| | | | svn path=/trunk/libcss/; revision=8468
* Force use of 64bit arithmetic when multiplying/dividing.John Mark Bell2009-07-051-2/+2
| | | | svn path=/trunk/libcss/; revision=8318
* Compute absolute values for all length properties.John Mark Bell2009-07-041-1/+4
| | | | | | | Make initial border-*-color match the computed color. Compute correct value of display/float wrt position. svn path=/trunk/libcss/; revision=8317
* Add callback to make client compute the font size.John Mark Bell2009-07-042-2/+9
| | | | | | Some progress towards computing absolute values. svn path=/trunk/libcss/; revision=8311
* Move quotes property into common style block.John Mark Bell2009-07-041-44/+36
| | | | svn path=/trunk/libcss/; revision=8307
* Query client for initial values of color, font-family, quotes, and ↵John Mark Bell2009-07-043-12/+19
| | | | | | voice-family properties. svn path=/trunk/libcss/; revision=8306
* Make all URIs absoluteJohn Mark Bell2009-07-011-0/+14
| | | | svn path=/trunk/libcss/; revision=8228
* Introduce an initial value of border-*-color in the computed style.John Mark Bell2009-06-301-1/+2
| | | | | | When a style is composed, this will be resolved to whatever color: computed to. svn path=/trunk/libcss/; revision=8184
* Fix castJohn Mark Bell2009-06-281-1/+1
| | | | svn path=/trunk/libcss/; revision=8091
* Purge "colour" from the public API -- it's just confusingJohn Mark Bell2009-06-273-13/+13
| | | | svn path=/trunk/libcss/; revision=8035
* Support for parsing inline stylesJohn Mark Bell2009-06-262-1/+3
| | | | svn path=/trunk/libcss/; revision=8024
* A bunch of c89.John Mark Bell2009-04-151-1/+1
| | | | | | | Lose trailing commas. GCC 2.95 compatibility. svn path=/trunk/libcss/; revision=7099
* Implement set_*_from_hintJohn Mark Bell2009-03-231-8/+28
| | | | | | Plug memory leaks. svn path=/trunk/libcss/; revision=6823
* Completely change the approach used for presentational hints.John Mark Bell2009-03-234-87/+118
| | | | | | | | This one stands a chance of working sanely. While this compiles, please don't expect it to link. svn path=/trunk/libcss/; revision=6820
* Sketch out something for presentational hints.John Mark Bell2009-03-222-1/+120
| | | | | | | The client will have to maintain some state to be able to calculate this struct for every node selection, but that shouldn't be overly onerous. Also, the mess surrounding centering can only be sensibly solved through the addition of a new, prefixed, property. svn path=/trunk/libcss/; revision=6816
* z-index is a signed int, not a css_fixed value.John Mark Bell2009-03-051-1/+1
| | | | | | Compose width, word-spacing and z-index. svn path=/trunk/libcss/; revision=6709
* Constify.John Mark Bell2009-03-041-2/+2
| | | | | | | Compose counter-increment and counter-reset. Fix compose_content. svn path=/trunk/libcss/; revision=6692
* Some changes. No idea what they are, mind you.John Mark Bell2009-02-153-12/+14
| | | | svn path=/trunk/libcss/; revision=6536
* Quirks mode parsingJohn Mark Bell2009-02-151-2/+4
| | | | svn path=/trunk/libcss/; revision=6519
* Fix maths in commentaryJohn Mark Bell2009-02-151-8/+6
| | | | svn path=/trunk/libcss/; revision=6518
* Port libcss to libwapcaplet.Daniel Silverstone2009-02-145-57/+45
| | | | | | | | | 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
* Replace pointers to aural/page properties with pointers to void as placeholdersJohn Mark Bell2009-02-141-12/+2
| | | | svn path=/trunk/libcss/; revision=6516
* Finally, a representation of a computed content property.John Mark Bell2009-02-142-9/+70
| | | | svn path=/trunk/libcss/; revision=6515
* Fix clip: rect() with auto sidesJohn Mark Bell2009-02-141-21/+42
| | | | svn path=/trunk/libcss/; revision=6514
* Make fpmath stuff public.John Mark Bell2009-02-142-4/+63
| | | | | | Un-inline string->fixed conversion routine. svn path=/trunk/libcss/; revision=6513
* Rework handling of imported stylesheets.John Mark Bell2009-02-142-8/+10
| | | | | | 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
* Drop css_error_handler and rename css_alloc to css_allocator_fnDaniel Silverstone2009-02-145-13/+9
| | | | 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-141-2/+0
| | | | svn path=/trunk/libcss/; revision=6480
* 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 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-121-2/+2
| | | | svn path=/trunk/libcss/; revision=6453
* Modify encoding of quotes. Move clip to accommodate.John Mark Bell2009-02-112-17/+17
| | | | svn path=/trunk/libcss/; revision=6442
* Change encoding of font-familyJohn Mark Bell2009-02-112-39/+45
| | | | | | Move list-style-position to make room for it. svn path=/trunk/libcss/; revision=6440
* Handle counter-increment/counter-resetJohn Mark Bell2009-02-111-2/+2
| | | | svn path=/trunk/libcss/; revision=6435
* Change the representation of any data that includes a css_string. They're ↵John Mark Bell2009-02-111-26/+30
| | | | | | 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-1/+2
| | | | svn path=/trunk/libcss/; revision=6430
* Border colours. Factor out common code.John Mark Bell2009-02-111-3/+3
| | | | svn path=/trunk/libcss/; revision=6418
* Restore the magical properties of background-repeat values (the bottom two ↵John Mark Bell2009-02-111-4/+4
| | | | | | | | bits form a bitfield of dimensions to tile in). Implement a couple more property handlers svn path=/trunk/libcss/; revision=6416
* Map inherit to 0 for all properties, so we get a default style of everything ↵John Mark Bell2009-02-101-268/+268
| | | | | | inherited. svn path=/trunk/libcss/; revision=6408
* 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-072-2/+4
| | | | | | 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-072-4/+2
| | | | | | | Make css_computed_style_create() private. Implement css_computed_style_[create,destroy](). svn path=/trunk/libcss/; revision=6389
* It probably helps to ensure the allocation routine is accessible.John Mark Bell2009-02-071-1/+4
| | | | | | Minor fix for an accessor. svn path=/trunk/libcss/; revision=6387