summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Colour names are case insensitiveJohn Mark Bell2009-07-171-1/+1
| | | | svn path=/trunk/libcss/; revision=8605
* Fix utterly broken selector chain search code.John Mark Bell2009-07-171-12/+0
| | | | svn path=/trunk/libcss/; revision=8604
* Change mechanism for handling case sensitivity of element names. Now has ↵John Mark Bell2009-07-173-19/+18
| | | | | | | | another selection handler callback for this. Change selector hash to use an ASCII case-insensitive hash function. svn path=/trunk/libcss/; revision=8602
* Store em and percentage values for properties in the computed style.John Mark Bell2009-07-173-536/+1983
| | | | | | | | Fully compute them on access. Introduce a swathe of internal accessors that don't perform the complete computation. Port property composition to these new APIs. Reduce absolute value computation to making font sizes absolute and converting any EX units to EM. svn path=/trunk/libcss/; revision=8601
* It is necessary to consider the element name when matching selectors. John Mark Bell2009-07-171-6/+27
| | | | | | | Firstly, the chains being processed are from a hashtable, so aren't guaranteed to apply to the element being selected. Secondly, when processing combinators, we have a completely different node object to compare. svn path=/trunk/libcss/; revision=8593
* Ensure that we merge-sort the element and universal selector chains during ↵John Mark Bell2009-07-171-44/+51
| | | | | | selection. svn path=/trunk/libcss/; revision=8592
* Fix matching of named ancestor combinators.John Mark Bell2009-07-171-34/+166
| | | | | | Add some helpful debug -- disabled by default. svn path=/trunk/libcss/; revision=8591
* Add a flag to the font size computation callback to indicate that the ↵John Mark Bell2009-07-162-5/+6
| | | | | | resultant absolute font size should not be clamped to a fixed minimum (e.g. if the client has a minimum permissible font size) svn path=/trunk/libcss/; revision=8586
* Hacky avoidance of element name case insensitivity. The correct solution is ↵John Mark Bell2009-07-161-1/+4
| | | | | | for the client to tell us the sensitivity when creating the stylesheet. svn path=/trunk/libcss/; revision=8573
* Use a proper hash function.John Mark Bell2009-07-161-1/+1
| | | | svn path=/trunk/libcss/; revision=8572
* Provide accessor for computed value of display assuming static position.John Mark Bell2009-07-152-58/+2
| | | | | | Modify css_computed_display to follow $9.7. svn path=/trunk/libcss/; revision=8568
* Fix selection from selectors within @media blocks.John Mark Bell2009-07-151-8/+14
| | | | svn path=/trunk/libcss/; revision=8549
* Provide some API to allow retrieval of an Initial styleJohn Mark Bell2009-07-121-0/+40
| | | | svn path=/trunk/libcss/; revision=8468
* It helps if you add filesJohn Mark Bell2009-07-091-0/+20
| | | | svn path=/trunk/libcss/; revision=8411
* Fix processing of rules after @import -- previously, they were completely ↵John Mark Bell2009-07-082-1/+3
| | | | | | ignored. svn path=/trunk/libcss/; revision=8386
* Make list-style shorthand parser attempt to parse a list-style-type value ↵John Mark Bell2009-07-071-5/+5
| | | | | | before anything else. This way, list-style: none will do the right thing as list-style-image defaults to none, anyway. svn path=/trunk/libcss/; revision=8385
* Simplify charToHex()John Mark Bell2009-07-071-36/+9
| | | | svn path=/trunk/libcss/; revision=8384
* Compute absolute values for all length properties.John Mark Bell2009-07-042-6/+1018
| | | | | | | Make initial border-*-color match the computed color. Compute correct value of display/float wrt position. svn path=/trunk/libcss/; revision=8317
* Add callback to make client compute the font size.John Mark Bell2009-07-042-11/+48
| | | | | | Some progress towards computing absolute values. svn path=/trunk/libcss/; revision=8311
* Ensure that any properties explicitly set to inherit on the root element are ↵John Mark Bell2009-07-043-114/+189
| | | | | | set to their initial values. svn path=/trunk/libcss/; revision=8309
* Move quotes property into common style block.John Mark Bell2009-07-044-33/+27
| | | | svn path=/trunk/libcss/; revision=8307
* Query client for initial values of color, font-family, quotes, and ↵John Mark Bell2009-07-045-306/+348
| | | | | | voice-family properties. svn path=/trunk/libcss/; revision=8306
* Factor out setting of property values from hints or initial values.John Mark Bell2009-07-041-65/+73
| | | | | | Invert logic, so that "continue" does not occur. svn path=/trunk/libcss/; revision=8295
* Merge iterations across computed styleJohn Mark Bell2009-07-041-60/+59
| | | | svn path=/trunk/libcss/; revision=8294
* Similar fix for empty rules in normal stylesheets.John Mark Bell2009-07-011-0/+5
| | | | svn path=/trunk/libcss/; revision=8244
* Blank inline styles, or inline styles that only contain invalid data will ↵John Mark Bell2009-07-011-5/+6
| | | | | | have no bytecode. This is perfectly legitimate, so should not result in an error. svn path=/trunk/libcss/; revision=8243
* Fixup parsing of empty inline styles -- previously, it would emit the ↵John Mark Bell2009-07-011-5/+9
| | | | | | START_STYLESHEET and START_RULESET events twice. svn path=/trunk/libcss/; revision=8242
* Ensure that charset detection always returns CSS_OK unless there's a fatal ↵John Mark Bell2009-07-011-4/+2
| | | | | | error. Otherwise, it's possible to fail to process any of a short stylesheet (sheet.length < "@charset "). svn path=/trunk/libcss/; revision=8241
* Len already includes the NUL, so stop trying to manually terminate url/title.John Mark Bell2009-07-011-2/+0
| | | | svn path=/trunk/libcss/; revision=8231
* It probably helps to remember that @import also contains URL data.John Mark Bell2009-07-011-1/+19
| | | | svn path=/trunk/libcss/; revision=8229
* Make all URIs absoluteJohn Mark Bell2009-07-016-19/+80
| | | | svn path=/trunk/libcss/; revision=8228
* It somewhat helps to ensure that you convert units to their external ↵John Mark Bell2009-06-301-23/+83
| | | | | | representation. Oddly enough, not doing so causes comedy breakage. svn path=/trunk/libcss/; revision=8204
* Introduce an initial value of border-*-color in the computed style.John Mark Bell2009-06-301-4/+4
| | | | | | When a style is composed, this will be resolved to whatever color: computed to. svn path=/trunk/libcss/; revision=8184
* Fix setting of computed display: noneJohn Mark Bell2009-06-291-1/+1
| | | | svn path=/trunk/libcss/; revision=8159
* Ensure that the root element has its styling set to the initial values.John Mark Bell2009-06-291-3/+10
| | | | svn path=/trunk/libcss/; revision=8158
* Fix list-style shorthand parserJohn Mark Bell2009-06-271-0/+8
| | | | svn path=/trunk/libcss/; revision=8073
* Fix font shorthand parser to reject spurious instances of inheritJohn Mark Bell2009-06-271-0/+32
| | | | svn path=/trunk/libcss/; revision=8069
* Fix comma separated list parsingJohn Mark Bell2009-06-271-1/+2
| | | | svn path=/trunk/libcss/; revision=8067
* Fix border + outline shorthand property parsersJohn Mark Bell2009-06-271-0/+40
| | | | svn path=/trunk/libcss/; revision=8066
* Fix azimuth parserJohn Mark Bell2009-06-271-2/+2
| | | | svn path=/trunk/libcss/; revision=8055
* Fix cue and pause shorthand parsersJohn Mark Bell2009-06-271-0/+16
| | | | svn path=/trunk/libcss/; revision=8051
* Fix padding shorthand parser in the face of inherit.John Mark Bell2009-06-272-0/+9
| | | | | | Document same fix to margin shorthand parser. svn path=/trunk/libcss/; revision=8049
* Purge "colour" from the public API -- it's just confusingJohn Mark Bell2009-06-272-22/+22
| | | | svn path=/trunk/libcss/; revision=8035
* Reduce inlining in lexerJohn Mark Bell2009-06-271-26/+26
| | | | svn path=/trunk/libcss/; revision=8034
* Less pointless inliningJohn Mark Bell2009-06-272-58/+58
| | | | svn path=/trunk/libcss/; revision=8033
* Fix margin shorthand parserJohn Mark Bell2009-06-261-0/+7
| | | | svn path=/trunk/libcss/; revision=8029