summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Add support for opacity propertyJohn Mark Bell2011-01-2913-2/+202
| | | | svn path=/trunk/libcss/; revision=11527
* Centralise handling of transparent colours.John Mark Bell2011-01-2917-62/+129
| | | | | | Add support for currentColor svn path=/trunk/libcss/; revision=11525
* Provide hook for system colour name -> RGB conversionJohn Mark Bell2011-01-293-49/+50
| | | | svn path=/trunk/libcss/; revision=11522
* Rename all css_[^_] internal symbols to css__ so that they're nicely namespacedDaniel Silverstone2011-01-2645-407/+407
| | | | svn path=/trunk/libcss/; revision=11492
* Fix renaming of css_parser_parse_chunk from css_parser_css__parse_chunk to ↵Daniel Silverstone2011-01-263-3/+3
| | | | | | css__parser_parse_chunk svn path=/trunk/libcss/; revision=11491
* Fix cascade of counter-{increment,reset} on 64bit platformsJohn Mark Bell2011-01-241-3/+3
| | | | svn path=/trunk/libcss/; revision=11476
* Trivial optimisation of HSL->RGB conversionJohn Mark Bell2011-01-221-3/+4
| | | | svn path=/trunk/libcss/; revision=11456
* Use css_fixed for fixed-point arithmetic. Simplify HSL->RGB conversion a little.John Mark Bell2011-01-211-112/+86
| | | | | | Add test data for white and black svn path=/trunk/libcss/; revision=11437
* Add transparent keyword to colour value parsingVincent Sanders2011-01-211-0/+6
| | | | svn path=/trunk/libcss/; revision=11436
* improve accuracy of lightness and saturationVincent Sanders2011-01-211-27/+42
| | | | svn path=/trunk/libcss/; revision=11434
* Fix GCC3 build. LibCSS doesn't currently build natively on RO.Michael Drake2011-01-211-1/+1
| | | | svn path=/trunk/libcss/; revision=11433
* integer based HSL to RGBVincent Sanders2011-01-211-7/+15
| | | | svn path=/trunk/libcss/; revision=11432
* mostly working integer implementationVincent Sanders2011-01-211-7/+49
| | | | svn path=/trunk/libcss/; revision=11431
* improve hsl hue angle representationVincent Sanders2011-01-211-12/+14
| | | | svn path=/trunk/libcss/; revision=11430
* add hsl colour supportVincent Sanders2011-01-213-3/+179
| | | | svn path=/trunk/libcss/; revision=11429
* Fix shared library buildJohn Mark Bell2011-01-201-2/+2
| | | | svn path=/trunk/libcss/; revision=11427
* Ensure there are zero global symbols without css_ or css__ in front of them. ↵Daniel Silverstone2011-01-20149-1002/+1002
| | | | | | This helps prevent confusion if someone else wants a function called parse_background or similar svn path=/trunk/libcss/; revision=11416
* fix play_diring cascade string usageVincent Sanders2011-01-201-2/+2
| | | | svn path=/trunk/libcss/; revision=11412
* fix cursor cascadeVincent Sanders2011-01-201-2/+2
| | | | svn path=/trunk/libcss/; revision=11410
* Merge parser autogeneration and string handling refactor branch ↵Vincent Sanders2011-01-19228-11995/+3321
| | | | | | r=jmb,kinnison,vince svn path=/trunk/libcss/; revision=11408
* Turns out, we know the size of the styles block up-front.John Mark Bell2011-01-051-3/+1
| | | | svn path=/trunk/libcss/; revision=11214
* Simultaneously select styles for base + pseudo elements.John Mark Bell2011-01-0581-300/+379
| | | | svn path=/trunk/libcss/; revision=11211
* Ensure that string vector exists before freeing itJohn Mark Bell2011-01-051-1/+3
| | | | svn path=/trunk/libcss/; revision=11210
* simple properties split in parse similar to select in preparation for future ↵Vincent Sanders2011-01-02125-10456/+11968
| | | | | | generation svn path=/trunk/libcss/; revision=11188
* Complete the fix for pseudo element selection: inline styles and ↵John Mark Bell2011-01-021-6/+18
| | | | | | presentational hints must not be applied to pseudo elements. svn path=/trunk/libcss/; revision=11181
* When selecting for a node's pseudo elements, only match rules which apply to ↵Michael Drake2011-01-011-11/+24
| | | | | | the pseudo element, and not the raw node as well. svn path=/trunk/libcss/; revision=11177
* Hack around platform headers doing the likes of typedef float FLOAT;John Mark Bell2010-12-295-13/+14
| | | | svn path=/trunk/libcss/; revision=11138
* Fix obvious bugDaniel Silverstone2010-12-201-1/+1
| | | | svn path=/trunk/libcss/; revision=11111
* Split up properties selectorsVincent Sanders2010-12-05103-6646/+8253
| | | | svn path=/trunk/libcss/; revision=11011
* Add string vector capability to stylesheet (r=jmb)Vincent Sanders2010-12-056-3/+96
| | | | | | Move properties ready for split svn path=/trunk/libcss/; revision=11005
* Provide notification hook for imported stylesheets, to enable clients to ↵John Mark Bell2010-12-053-0/+21
| | | | | | parallelise their processing svn path=/trunk/libcss/; revision=10999
* Add support for rgba() colours. Thanks jmb.Michael Drake2010-12-053-11/+42
| | | | svn path=/trunk/libcss/; revision=10993
* alter external representation of colours to be AARRGGBB (r=jmb)Vincent Sanders2010-12-041-156/+156
| | | | svn path=/trunk/libcss/; revision=10985
* Remove libcss_initialise/finalise.John Mark Bell2010-12-042-51/+1
| | | | | | Fix testsuite to compile (it passes, too) svn path=/trunk/libcss/; revision=10955
* Fix destruction of bytecode for the clip property.John Mark Bell2010-09-281-1/+1
| | | | svn path=/trunk/libcss/; revision=10856
* Remove ownerNode and ownerRule fields from stylesheet objects.John Mark Bell2010-06-273-8/+11
| | | | | | | | | | | These prevent stylesheets being used in multiple contexts simultaneously. Their values can be inferred from the context in which the stylesheet is used. Replace use of ownerRule to backtrack in style selection with a (fixed-size) stack of rules to process. This prevents crashes when a sheet that was previously imported somewhere is reused as a top-level sheet. svn path=/trunk/libcss/; revision=10581
* Really fix hint leaks. Hint data ownership is passed to libcss.John Mark Bell2010-04-292-140/+34
| | | | | | Ensure that hint is initialised before asking client to populate it (so as to guard against broken clients) svn path=/trunk/libcss/; revision=10520
* Stop leaking references to interned strings obtained from presentational hintsJohn Mark Bell2010-04-281-62/+142
| | | | svn path=/trunk/libcss/; revision=10513
* Ensure than trailing tokens are cleaned on completion of inline style parsingJohn Mark Bell2010-04-271-1/+3
| | | | svn path=/trunk/libcss/; revision=10501
* Ownership of imported stylesheets is retained by the client.John Mark Bell2010-04-111-3/+2
| | | | svn path=/trunk/libcss/; revision=10367
* Fix RISC OS buildJohn Mark Bell2010-04-052-4/+5
| | | | svn path=/trunk/libcss/; revision=10247
* Correct management of string references in computed styles.John Mark Bell2010-04-043-30/+213
| | | | svn path=/trunk/libcss/; revision=10240
* Do not unref strings referenced by bytecode we've just copied when appending ↵John Mark Bell2010-03-281-2/+2
| | | | | | to a rule's style. svn path=/trunk/libcss/; revision=10174
* Make libcss suitable for the new libwapcaplet behaviour.Daniel Silverstone2010-03-2814-1865/+1676
| | | | svn path=/trunk/libcss/; revision=10168
* Fix libcss to use new libwapcaplet behaviour.Daniel Silverstone2010-03-2725-1006/+523
| | | | | | | 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-123-88/+75
| | | | | | | | | 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
* Lose redundant assignments.John Mark Bell2009-11-226-10/+7
| | | | | | | | Drop some dead code. Avoid a potential NULL dereference. Add missing "break" in initial substate of block context parser svn path=/trunk/libcss/; revision=9678
* 1) Allocate css_style bytecode in 16 byte chunksJohn Mark Bell2009-08-293-14/+72
| | | | | | | | | | | | | | | | | | 2) Cache unused css_style objects with chunks of size 16, 32, 48, and 64 bytes The above should reduce heap churn somewhat. Further improvements are possible: 1) Make the property parsers write the parsed values direct into the output bytecode, instead of into a temporary object which is then merged into the output. 2) Perform similar caching for css_rule and selector objects. 3) Shrink-wrap finalised output styles rather than leaving them oversized. 4) Perform measurement to determine the optimal chunk sizes (power-of-2 makes maths simple and 16 is plucked from thin air) and cache bucket count/sizes. svn path=/trunk/libcss/; revision=9502
* Somewhat nasty text-align magic for the benefit of HTML tables.John Mark Bell2009-08-231-0/+11
| | | | svn path=/trunk/libcss/; revision=9405
* It turns out that using magic values for text-align is simpler than having ↵John Mark Bell2009-08-2211-225/+59
| | | | | | an entirely new property for html alignment. svn path=/trunk/libcss/; revision=9387