summaryrefslogtreecommitdiff
path: root/src/select
Commit message (Collapse)AuthorAgeFilesLines
* Cascade and compose column-count property into computed style.Michael Drake2014-10-045-18/+84
|
* Put the column properties in the computed style's uncommon section.Michael Drake2014-10-041-8/+8
|
* No need for extern "C" stuff now that bloom.h is internal.Michael Drake2014-09-261-9/+0
|
* Length of computed bits array has increased by one byte.Michael Drake2014-06-011-2/+2
| | | | Reduce unused bytes from 2 to 1.
* Add support for CSS3 overflow-x and overflow-y properties.Michael Drake2014-06-019-36/+156
| | | | | | | | Now, overflow is a shorthand property setting both overflow-x and overflow-y. The getter for the computed overflow has been removed, and replaced with two for overflow-x and overflow-y.
* Remove implementation duplication in top/right/bottom/left property getters.Michael Drake2014-01-102-115/+85
|
* Remove duplicate implementation in css_computed_float.Michael Drake2014-01-101-15/+6
|
* Remove 9.7 handling from get_display. Delete get_display_static. Remove ↵Michael Drake2014-01-103-72/+22
| | | | duplication in css_computed_display.
* Fix filename.Michael Drake2014-01-102-1/+1
|
* Various changes for orphans and widows properties:Michael Drake2014-01-106-64/+22
| | | | | | + Keep as int internally, rather than css_fixed. + Fix get_widows to return widows instead of orphans. + Remove duplicate implementations in css_computed_ getters.
* Avoid duplicate implementations of computed style property getters.Michael Drake2014-01-102-1392/+160
|
* C89.Michael Drake2014-01-041-1/+2
|
* Attempt to make Coverity understand what's happening. I think this is a ↵Michael Drake2013-12-151-1/+1
| | | | little less readable though. #1137923.
* Fix leak. Coverity #1137921.Michael Drake2013-12-151-1/+1
|
* Improve explanation of TODO.Michael Drake2013-12-131-1/+5
|
* Hideous casing to avoid warning (treated as error) with RO toolchain.Michael Drake2013-12-131-1/+3
|
* Various changes which modify API and ABI:Michael Drake2013-12-1318-255/+542
| | | | | | | | | - Remove client allocation function. - Change node_classes callback not to yield array ownership to libcss. - Node bloom filters now built by, during selection libcss. - Added selection callbacks to get and set data on document nodes. Test suite, example, and documentation updated to match.
* Just match against universal string intern instead of checking strings ↵Michael Drake2013-12-073-8/+13
| | | | length/data.
* Slight simplification to selector detail itterator.Michael Drake2013-12-071-3/+2
|
* Fixup for insensitive hash utilisation.Michael Drake2013-12-021-7/+27
|
* Since element/class/id names are known to have insensitive string set, just ↵Michael Drake2013-12-021-23/+8
| | | | use that hash value for hash table, instead of calculating own hash.
* We know element/id/class names are available through the insensitive ptr now.Michael Drake2013-12-021-22/+9
|
* Significantly optimise CSS selection performance.Michael Drake2013-12-014-123/+444
| | | | | | | | | | | | | | | | Now we pass a node bloom filter to css_get_style. That node bloom filter is filled with the node's ancestor element, class, and id names. Internally, libcss also generates a bloom filter for each selector chain. If the selector chain's bloom filter is not a subset of the node bloom filter, we know that the selector chain's rule does not apply to the node. This avoids the slow selector chain matching process. Other smaller optimisations to move the ruling out of selector chains for inapplicable media types and other reasons to before we start comparing rules from different sources to find the next rule. All this is now done in hash.c so select.c never sees the trivially ruled out rules.
* Fix NULL check of array. Coverity #1127067.Michael Drake2013-11-081-5/+3
|
* Remove redundant masks. Coverity #1127061, #1127062, #1127063, #1127064, ↵Michael Drake2013-11-081-24/+6
| | | | and #1127065.
* Add computed style accessor for writing-mode and and writing-mode to the ↵Michael Drake2013-09-102-0/+22
| | | | property handler table.
* Add support for parsing the writing-mode property. Thanks to Caitlin Potter.Caitlin Potter2013-09-106-2/+119
|
* Prioritise id and class hashes over element hash when inserting rules.Michael Drake2012-08-262-47/+108
|
* Skip empty/broken rules early, before we match their selector chains.Michael Drake2012-08-261-11/+13
|
* Fix not([node_name]) selection.Michael Drake2012-08-071-1/+7
|
* Clear up CLANG warnings in various property settersDaniel Silverstone2012-07-011-11/+14
|
* Update to new NSBUILD infrastructureDaniel Silverstone2012-06-292-2/+2
| | | | svn path=/trunk/libcss/; revision=14004
* correctly apply enum casts to avoid warnings about casting between Vincent Sanders2012-04-141-6/+6
| | | | | | disimmilar enumerations. svn path=/trunk/libcss/; revision=13868
* Complete widows and orphans support. Thanks to James Montgomerie.Michael Drake2012-04-136-38/+219
| | | | svn path=/trunk/libcss/; revision=13864
* Fix debug build (warnings about comparing different enums).François Revel2012-04-061-4/+6
| | | | svn path=/trunk/libcss/; revision=13810
* Use correct unit enum values for computed clip rectangleRob Kendrick2012-03-251-1/+1
| | | | svn path=/trunk/libcss/; revision=13651
* Add support for parsing CSS3 Multi-column layout properties:Michael Drake2012-01-2814-0/+843
| | | | | | | | | | | | | | | | | | + break-after + break-before + break-inside + column-count + column-fill + column-gap + column-rule-color + column-rule-style + column_rule-width + column_span + column_width TODO: Shorthand properties (columns, column-rule) TODO: Selection svn path=/trunk/libcss/; revision=13412
* Fix font-face defaults (credit: James Montgomerie)John Mark Bell2012-01-241-1/+10
| | | | svn path=/trunk/libcss/; revision=13406
* @font-face support. Credit: James MontgomerieJohn Mark Bell2011-12-044-20/+615
| | | | | | Things missing: parser tests; the following descriptors: font-feature-settings, font-stretch, font-variant, unicode-range. svn path=/trunk/libcss/; revision=13244
* Fall back to UA's default font family if no generic family is specified in ↵John Mark Bell2011-12-041-10/+48
| | | | | | | | the input CSS. Based on a patch from James Montgomerie. svn path=/trunk/libcss/; revision=13227
* Simplify cache loop criterion.Michael Drake2011-11-071-2/+3
| | | | svn path=/trunk/libcss/; revision=13134
* Fill reject cache backwards from end.Michael Drake2011-11-072-7/+8
| | | | svn path=/trunk/libcss/; revision=13133
* Code style tweak.Michael Drake2011-11-061-1/+1
| | | | svn path=/trunk/libcss/; revision=13132
* Avoid trying to add already-cached selectors to reject cache. Remove ↵Michael Drake2011-11-061-24/+15
| | | | | | pre-insertion search. svn path=/trunk/libcss/; revision=13131
* Fix regression introduced by reject cache: do not cache failure to match ↵John Mark Bell2011-11-051-0/+1
| | | | | | multi-detailed selectors svn path=/trunk/libcss/; revision=13126
* Selection micro optimisation.Michael Drake2011-11-041-15/+17
| | | | svn path=/trunk/libcss/; revision=13120
* Don't need to match CSS_SELECTOR_ELEMENT detail since it will always match.Michael Drake2011-11-041-8/+13
| | | | svn path=/trunk/libcss/; revision=13119
* Cache rejected ancestor class/ID selectors to improve selection efficiencyJohn Mark Bell2011-11-042-8/+102
| | | | svn path=/trunk/libcss/; revision=13118
* 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