summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* -libcss-alignJohn Mark Bell2009-08-212-4/+33
| | | | svn path=/trunk/libcss/; revision=9378
* Avoid type collisions when used from C++John Mark Bell2009-08-021-62/+62
| | | | svn path=/trunk/libcss/; revision=8996
* Apparently, converting from int to enum requires a cast.John Mark Bell2009-08-021-45/+45
| | | | svn path=/trunk/libcss/; revision=8995
* Plug potential memory leaks in property settingJohn Mark Bell2009-07-301-0/+2
| | | | svn path=/trunk/libcss/; revision=8911
* Change selector hash to segregate:John Mark Bell2009-07-291-0/+5
| | | | | | | | | | | | | 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
* Calculate the in-memory size of stylesheets and provide some API to access this.John Mark Bell2009-07-271-0/+2
| | | | svn path=/trunk/libcss/; revision=8830
* Completely screw over any other client of libcss because NetSurf wants to ↵John Mark Bell2009-07-231-372/+0
| | | | | | | | | | | | | impose a minimum font size. Computed styles no longer contain fully computed units. The only computation that occurs is to convert EX units into EMs. This means that any EM units must be converted to PT by the client. Additionally, percentage line-height must be computed by the client. The client must also compute percentage vertical-align once they have fully resolved the line-height. svn path=/trunk/libcss/; revision=8741
* Remove pointless parameterJohn Mark Bell2009-07-212-2/+1
| | | | svn path=/trunk/libcss/; revision=8653
* Silence warnings in release modeJohn Mark Bell2009-07-171-64/+64
| | | | svn path=/trunk/libcss/; revision=8609
* Change mechanism for handling case sensitivity of element names. Now has ↵John Mark Bell2009-07-171-0/+2
| | | | | | | | another selection handler callback for this. Change selector hash to use an ASCII case-insensitive hash function. svn path=/trunk/libcss/; revision=8602
* Store em and percentage values for properties in the computed style.John Mark Bell2009-07-171-26/+515
| | | | | | | | Fully compute them on access. Introduce a swathe of internal accessors that don't perform the complete computation. Port property composition to these new APIs. Reduce absolute value computation to making font sizes absolute and converting any EX units to EM. svn path=/trunk/libcss/; revision=8601
* Add a flag to the font size computation callback to indicate that the ↵John Mark Bell2009-07-162-1/+2
| | | | | | 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
* 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