summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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-2111-2/+199
| | | | svn path=/trunk/libcss/; revision=9378
* Remove pointless todosJohn Mark Bell2009-08-031-2/+0
| | | | svn path=/trunk/libcss/; revision=9028
* s/opcode/opcode_t/John Mark Bell2009-08-033-5/+5
| | | | svn path=/trunk/libcss/; revision=9020
* Avoid type collisions when used from C++John Mark Bell2009-08-021-1/+1
| | | | svn path=/trunk/libcss/; revision=8996
* More apparent warnings squashedJohn Mark Bell2009-08-021-3/+6
| | | | svn path=/trunk/libcss/; revision=8993
* Avoid potential warning.John Mark Bell2009-08-021-1/+8
| | | | svn path=/trunk/libcss/; revision=8991
* Use unsigned int for bitfields. Apparently, using uint32_t confuses some ↵John Mark Bell2009-08-025-17/+17
| | | | | | compilers. svn path=/trunk/libcss/; revision=8990
* More rigorous handling of EOF.John Mark Bell2009-07-311-7/+75
| | | | | | Expand test data for this. svn path=/trunk/libcss/; revision=8931
* Fix processing of quotes bytecode during cascade.John Mark Bell2009-07-301-7/+9
| | | | svn path=/trunk/libcss/; revision=8912
* Plug potential memory leaks in property settingJohn Mark Bell2009-07-301-0/+27
| | | | svn path=/trunk/libcss/; revision=8911
* Change selector hash to segregate:John Mark Bell2009-07-293-171/+783
| | | | | | | | | | | | | 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-274-0/+170
| | | | svn path=/trunk/libcss/; revision=8830
* If, after parsing the media list, we've ended up with no media whatsoever, ↵John Mark Bell2009-07-271-1/+6
| | | | | | then the list must have been blank, which implies CSS_MEDIA_ALL. svn path=/trunk/libcss/; revision=8822
* Don't intern lower-case versions of strings. Use ↵John Mark Bell2009-07-2721-592/+1916
| | | | | | lwc_context_string_caseless_isequal, instead. svn path=/trunk/libcss/; revision=8815
* Purge use of alloca()John Mark Bell2009-07-221-2/+10
| | | | svn path=/trunk/libcss/; revision=8715
* Clarify operationJohn Mark Bell2009-07-221-2/+3
| | | | svn path=/trunk/libcss/; revision=8706
* Fix rgb() colour parser not to swap g and b.Michael Drake2009-07-221-34/+34
| | | | svn path=/trunk/libcss/; revision=8696
* Match details before considering combinators.John Mark Bell2009-07-221-14/+13
| | | | svn path=/trunk/libcss/; revision=8667
* Remove pointless parameterJohn Mark Bell2009-07-212-6/+5
| | | | svn path=/trunk/libcss/; revision=8653
* Always set values in result style when composingJohn Mark Bell2009-07-211-335/+392
| | | | svn path=/trunk/libcss/; revision=8651
* Avoid division by zeroJohn Mark Bell2009-07-201-2/+5
| | | | svn path=/trunk/libcss/; revision=8624
* Error checking for string comparisons.John Mark Bell2009-07-171-3/+13
| | | | svn path=/trunk/libcss/; revision=8608
* Fix selector hash some more. It turns out that I'd forgotten how it was ↵John Mark Bell2009-07-173-5/+37
| | | | | | meant to work. svn path=/trunk/libcss/; revision=8607