summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Simultaneously select styles for base + pseudo elements.John Mark Bell2011-01-0583-315/+414
| | | | 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
* Change target name in line with core buildsystemChris Young2011-01-011-1/+1
| | | | svn path=/trunk/libcss/; revision=11179
* 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
* Slightly more selection test coverage.Michael Drake2010-12-301-0/+76
| | | | svn path=/trunk/libcss/; revision=11173
* Hack around platform headers doing the likes of typedef float FLOAT;John Mark Bell2010-12-295-13/+14
| | | | svn path=/trunk/libcss/; revision=11138
* Make example compile againJohn Mark Bell2010-12-281-20/+3
| | | | svn path=/trunk/libcss/; revision=11126
* 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-058-8/+49
| | | | | | parallelise their processing svn path=/trunk/libcss/; revision=10999
* Sync comment with realityJohn Mark Bell2010-12-051-1/+1
| | | | svn path=/trunk/libcss/; revision=10994
* Add support for rgba() colours. Thanks jmb.Michael Drake2010-12-054-11/+58
| | | | svn path=/trunk/libcss/; revision=10993
* Sync bytecode description with colour representationJohn Mark Bell2010-12-041-4/+4
| | | | svn path=/trunk/libcss/; revision=10988
* Fix testsuite in light of change to colour representationJohn Mark Bell2010-12-0412-210/+210
| | | | svn path=/trunk/libcss/; revision=10987
* Remove Aliases file.Michael Drake2010-12-041-302/+0
| | | | svn path=/trunk/libcss/; revision=10986
* alter external representation of colours to be AARRGGBB (r=jmb)Vincent Sanders2010-12-042-156/+166
| | | | svn path=/trunk/libcss/; revision=10985
* Remove Aliases file nonsenseJohn Mark Bell2010-12-049-36/+36
| | | | svn path=/trunk/libcss/; revision=10983
* Remove use of lwc_initialise and also parserutils.h includes. r=vinceDaniel Silverstone2010-12-049-77/+0
| | | | svn path=/trunk/libcss/; revision=10964
* Remove initialisation of libparserutils from testsDaniel Silverstone2010-12-048-39/+0
| | | | svn path=/trunk/libcss/; revision=10962
* Remove libcss_initialise/finalise.John Mark Bell2010-12-0414-105/+26
| | | | | | Fix testsuite to compile (it passes, too) svn path=/trunk/libcss/; revision=10955
* Sprinkle some C++ scoping aroundJohn Mark Bell2010-10-2310-0/+90
| | | | svn path=/trunk/libcss/; revision=10901
* Fix destruction of bytecode for the clip property.John Mark Bell2010-09-282-1/+9
| | | | svn path=/trunk/libcss/; revision=10856
* Bump versionJohn Mark Bell2010-09-211-1/+1
| | | | svn path=/trunk/libcss/; revision=10814
* LibCSS API documentation, part 1, along with a simple example.James Bursa2010-09-162-0/+860
| | | | svn path=/trunk/libcss/; revision=10783
* 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-282-74/+143
| | | | 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-113-3/+6
| | | | 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-2818-1967/+1868
| | | | svn path=/trunk/libcss/; revision=10168
* Fix libcss to use new libwapcaplet behaviour.Daniel Silverstone2010-03-2733-1092/+590
| | | | | | | 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-129-123/+116
| | | | | | | | | 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
* AmigaOS4 standard library headers also create warningsChris Young2009-11-221-2/+4
| | | | svn path=/trunk/libcss/; revision=9702
* 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
* -Wextra is only understood by GCC 3.4.6 or later. John Mark Bell2009-11-061-4/+5
| | | | | | | | | | | | | | | | It is a more descriptive synonym for -W. Use -W instead which is understood by all common versions of GCC (i.e. GCC 2.95 supports it, which is the oldest GCC version we have to support) Additionally, conditionalise our -Werror usage on whether we're building for BeOS/Haiku. On these platforms, the standard library headers result in warnings. GCC 2 is quite happy to build this code on other platforms, so shouldn't be the trigger for dropping -Werror (even if BeOS is the only target where GCC2 is likely to be used). svn path=/trunk/libcss/; revision=9665
* 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
* Namespace preprocessor macros. I'm not entirely sure why I didn't do this in ↵John Mark Bell2009-08-241-739/+740
| | | | | | the first place. svn path=/trunk/libcss/; revision=9437
* Somewhat nasty text-align magic for the benefit of HTML tables.John Mark Bell2009-08-232-8/+20
| | | | svn path=/trunk/libcss/; revision=9405
* It turns out that using magic values for text-align is simpler than having ↵John Mark Bell2009-08-2219-422/+126
| | | | | | an entirely new property for html alignment. svn path=/trunk/libcss/; revision=9387
* Wrong -- it inheritsJohn Mark Bell2009-08-211-1/+1
| | | | svn path=/trunk/libcss/; revision=9380
* -libcss-align is not inheritedJohn Mark Bell2009-08-211-1/+1
| | | | svn path=/trunk/libcss/; revision=9379
* -libcss-alignJohn Mark Bell2009-08-2119-7/+384
| | | | svn path=/trunk/libcss/; revision=9378
* Mention Wapcaplet requirement.Michael Drake2009-08-091-0/+1
| | | | svn path=/trunk/libcss/; revision=9134
* Remove pointless todosJohn Mark Bell2009-08-031-2/+0
| | | | svn path=/trunk/libcss/; revision=9028