summaryrefslogtreecommitdiff
path: root/src/select
Commit message (Collapse)AuthorAgeFilesLines
* Appease ancient compilersJohn Mark Bell2011-09-061-3/+9
| | | | svn path=/trunk/libcss/; revision=12765
* A bunch more microoptimisationsJohn Mark Bell2011-09-063-101/+74
| | | | svn path=/trunk/libcss/; revision=12746
* Iterate over pseudo elements, then properties, and reject unused pseudo ↵John Mark Bell2011-09-051-16/+15
| | | | | | | | elements at the earliest opportunity. Avoids pointlessly iterating over count(unused-pseudo-element) * count(properties) properties. svn path=/trunk/libcss/; revision=12744
* Compute node name, id, and classes once, instead of once per stylesheetJohn Mark Bell2011-09-052-48/+51
| | | | svn path=/trunk/libcss/; revision=12743
* Hoist string internment into selection context constructor.John Mark Bell2011-09-052-305/+302
| | | | | | Destroy interned strings from selection context destructor. svn path=/trunk/libcss/; revision=12742
* Add support for selecting page-break-{before, after, inside}John Mark Bell2011-08-239-64/+267
| | | | | | Credit: James Montgomerie svn path=/trunk/libcss/; revision=12645
* Fix build with GCC 4.6John Mark Bell2011-07-2612-36/+1
| | | | svn path=/trunk/libcss/; revision=12627
* Add structure versioning for client inputJohn Mark Bell2011-03-131-1/+3
| | | | svn path=/trunk/libcss/; revision=12007
* Ensure that the uncommon extension block is initialised correctlyJohn Mark Bell2011-03-121-1/+24
| | | | svn path=/trunk/libcss/; revision=11990
* Fix set_clipJohn Mark Bell2011-03-121-2/+2
| | | | svn path=/trunk/libcss/; revision=11989
* Fix cascade of clip rectangle valueJohn Mark Bell2011-03-121-0/+1
| | | | svn path=/trunk/libcss/; revision=11988
* CSS3 NamespacesJohn Mark Bell2011-03-123-67/+70
| | | | svn path=/trunk/libcss/; revision=11972
* Hide the CSS computed style itself. Only expose a few simple structures ↵Daniel Silverstone2011-03-124-0/+2114
| | | | | | which we can keep sane. All property accessors are thus hidden behind a link symbol for ABI safety svn path=/trunk/libcss/; revision=11969
* The document root element cannot be the child of anythingJohn Mark Bell2011-01-311-12/+25
| | | | svn path=/trunk/libcss/; revision=11572
* Fix specificity calculation for prefix, suffix, and substring attribute ↵John Mark Bell2011-01-311-0/+21
| | | | | | | | selectors. Fix dumping of these selectors when debugging selector chains svn path=/trunk/libcss/; revision=11569
* Place negated class and id selectors in the universal hash chainJohn Mark Bell2011-01-311-2/+4
| | | | svn path=/trunk/libcss/; revision=11568
* CSS3 SelectorsJohn Mark Bell2011-01-312-4/+309
| | | | svn path=/trunk/libcss/; revision=11557
* Add support for opacity propertyJohn Mark Bell2011-01-296-0/+112
| | | | svn path=/trunk/libcss/; revision=11527
* Centralise handling of transparent colours.John Mark Bell2011-01-299-19/+89
| | | | | | Add support for currentColor svn path=/trunk/libcss/; revision=11525
* Rename all css_[^_] internal symbols to css__ so that they're nicely namespacedDaniel Silverstone2011-01-2610-32/+32
| | | | svn path=/trunk/libcss/; revision=11492
* Fix cascade of counter-{increment,reset} on 64bit platformsJohn Mark Bell2011-01-241-3/+3
| | | | svn path=/trunk/libcss/; revision=11476
* Ensure there are zero global symbols without css_ or css__ in front of them. ↵Daniel Silverstone2011-01-20107-568/+568
| | | | | | 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-19104-701/+26
| | | | | | 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
* 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
* 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-054-3/+3
| | | | | | Move properties ready for split svn path=/trunk/libcss/; revision=11005
* 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-271-3/+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
* Fix RISC OS buildJohn Mark Bell2010-04-051-1/+2
| | | | 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
* Make libcss suitable for the new libwapcaplet behaviour.Daniel Silverstone2010-03-284-1202/+996
| | | | svn path=/trunk/libcss/; revision=10168
* Fix libcss to use new libwapcaplet behaviour.Daniel Silverstone2010-03-273-70/+40
| | | | | | | 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-121-44/+74
| | | | | | | | | 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-221-3/+0
| | | | | | | | 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
* 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-225-129/+31
| | | | | | 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-215-0/+107
| | | | svn path=/trunk/libcss/; revision=9378
* s/opcode/opcode_t/John Mark Bell2009-08-031-1/+1
| | | | svn path=/trunk/libcss/; revision=9020
* Use unsigned int for bitfields. Apparently, using uint32_t confuses some ↵John Mark Bell2009-08-022-6/+6
| | | | | | compilers. svn path=/trunk/libcss/; revision=8990
* 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