summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix font-weight, line-height, and orphans.John Mark Bell2009-01-181-3/+4
| | | | svn path=/trunk/libcss/; revision=6123
* Fix azimuthJohn Mark Bell2009-01-162-8/+11
| | | | svn path=/trunk/libcss/; revision=6107
* Fix cursor: parsingJohn Mark Bell2009-01-161-11/+23
| | | | svn path=/trunk/libcss/; revision=6104
* Fix counter-increment and counter-resetJohn Mark Bell2009-01-161-22/+22
| | | | svn path=/trunk/libcss/; revision=6098
* Fix content: parsingJohn Mark Bell2009-01-161-29/+73
| | | | svn path=/trunk/libcss/; revision=6097
* Fix parse_clip to actually stand a chance of working.John Mark Bell2009-01-161-10/+16
| | | | svn path=/trunk/libcss/; revision=6091
* Fix parsing of dimensions without a unit specifier.John Mark Bell2009-01-161-36/+67
| | | | svn path=/trunk/libcss/; revision=6088
* Fix handling of single keywords in background-position -- the "first item is ↵John Mark Bell2009-01-161-1/+3
| | | | | | horizontal" rule only applies if a length/percentage has been specified. svn path=/trunk/libcss/; revision=6084
* Fix opcode for background-positionJohn Mark Bell2009-01-161-1/+4
| | | | svn path=/trunk/libcss/; revision=6078
* Don't build the serialisation code in release modeJohn Mark Bell2009-01-144-0/+8
| | | | svn path=/trunk/libcss/; revision=6064
* Make @import actually create a rule and attempt some kind of fetch logic.John Mark Bell2009-01-143-1/+90
| | | | | | | There's still a bunch of outstanding functionality here (like URL resolution and media list parsing). Also, there's currently no way of telling the client to stop fetching data for a stylesheet (and, more importantly, not to attempt to access the stylesheet again as it's about to be destroyed) svn path=/trunk/libcss/; revision=6062
* Create charset rule objects.John Mark Bell2009-01-143-3/+58
| | | | svn path=/trunk/libcss/; revision=6059
* Complete bytecode dumping code.John Mark Bell2009-01-122-23/+1624
| | | | | | Change a few opcode values to be more consistent (namely, bit 7 set generally implies that there's data to follow). svn path=/trunk/libcss/; revision=6048
* Slightly more obvious logic. This code still sucks.John Mark Bell2009-01-121-15/+15
| | | | svn path=/trunk/libcss/; revision=6047
* Lose a todo. I don't think we want to have the lexer split up dimensions ↵John Mark Bell2009-01-121-1/+0
| | | | | | into value + unit pairs. svn path=/trunk/libcss/; revision=6046
* When parsing colours, it helps to remember that percentages aren't ↵John Mark Bell2009-01-121-17/+13
| | | | | | necessarily integers. svn path=/trunk/libcss/; revision=6045
* Parse units. This is the only place where we actually have to perform string ↵John Mark Bell2009-01-121-8/+86
| | | | | | comparisons rather than simply comparing pointers. Calling strncasecmp for such short strings may incur an excessive overhead. If so, we can perform the comparison ourselves, thus avoiding the function call. Making the lexer separate the units from the value probably isn't helpful, particularly thanks to the need to handle "color: 0f0000;" in quirks mode (this will be lexed as a dimension). svn path=/trunk/libcss/; revision=6044
* Make rgb() parsing work.John Mark Bell2009-01-121-1/+32
| | | | svn path=/trunk/libcss/; revision=6042
* Make integer parsing more robustJohn Mark Bell2009-01-122-45/+30
| | | | svn path=/trunk/libcss/; revision=6041
* Beginnings of a colour specifier parser.John Mark Bell2009-01-114-50/+111
| | | | svn path=/trunk/libcss/; revision=6037
* Document the grammar of colour specifiersJohn Mark Bell2009-01-101-0/+7
| | | | svn path=/trunk/libcss/; revision=6020
* text-decorationJohn Mark Bell2009-01-102-7/+65
| | | | svn path=/trunk/libcss/; revision=6018
* quotesJohn Mark Bell2009-01-101-5/+136
| | | | svn path=/trunk/libcss/; revision=6017
* play-duringJohn Mark Bell2009-01-102-6/+74
| | | | svn path=/trunk/libcss/; revision=6016
* voice-familyJohn Mark Bell2009-01-103-7/+312
| | | | svn path=/trunk/libcss/; revision=6015
* Squash memory leaksJohn Mark Bell2009-01-101-4/+19
| | | | svn path=/trunk/libcss/; revision=6014
* Yet more font-family. This should now be complete.John Mark Bell2009-01-101-7/+73
| | | | | | If you thought the code was ugly before, this is worse. svn path=/trunk/libcss/; revision=6013
* Fix buffer overflows. Remind me to refactor this code -- it's ugly.John Mark Bell2009-01-101-4/+6
| | | | svn path=/trunk/libcss/; revision=6012
* Port to modified parserutils API.John Mark Bell2009-01-061-222/+242
| | | | svn path=/trunk/libcss/; revision=5973
* A little more work on font-family.John Mark Bell2008-12-052-32/+85
| | | | svn path=/trunk/libcss/; revision=5883
* Beginnings of font-familyJohn Mark Bell2008-12-042-6/+193
| | | | svn path=/trunk/libcss/; revision=5882
* Clarify font-familyJohn Mark Bell2008-12-041-0/+5
| | | | svn path=/trunk/libcss/; revision=5881
* cursorJohn Mark Bell2008-12-042-6/+264
| | | | svn path=/trunk/libcss/; revision=5880
* counter-resetJohn Mark Bell2008-12-041-5/+163
| | | | svn path=/trunk/libcss/; revision=5879
* counter-incrementJohn Mark Bell2008-12-042-9/+165
| | | | svn path=/trunk/libcss/; revision=5878
* Factor out common part of content parser.John Mark Bell2008-12-031-435/+311
| | | | | | This simplifies and shortens the code. svn path=/trunk/libcss/; revision=5877
* Finish contentJohn Mark Bell2008-12-031-1/+238
| | | | svn path=/trunk/libcss/; revision=5876
* Factor out parsing of the value part of list-style-type.John Mark Bell2008-12-031-36/+68
| | | | | | Use this when parsing counter functions. svn path=/trunk/libcss/; revision=5875
* Changes to the encoding of content in bytecode to better match the spec.John Mark Bell2008-12-033-7/+268
| | | | | | Beginnings of a content property parser. svn path=/trunk/libcss/; revision=5874
* Something approximating clipJohn Mark Bell2008-12-023-7/+117
| | | | svn path=/trunk/libcss/; revision=5870
* Rather less memory corruption.John Mark Bell2008-12-021-8/+8
| | | | svn path=/trunk/libcss/; revision=5869
* border-spacingJohn Mark Bell2008-12-021-5/+90
| | | | svn path=/trunk/libcss/; revision=5867
* Fix up azimuth to cater for !important after property value.John Mark Bell2008-12-012-13/+157
| | | | | | Something approximating background-position. svn path=/trunk/libcss/; revision=5866
* Finish azimuthJohn Mark Bell2008-12-012-2/+72
| | | | svn path=/trunk/libcss/; revision=5865
* The advantage of interning strings is that you don't have to store their ↵John Mark Bell2008-12-012-27/+18
| | | | | | | | length everywhere. Purge the length part from the encoding of a string in the bytecode. Fix bytecode dump code to cope with this. svn path=/trunk/libcss/; revision=5864
* Given that we're going to be copying selector details, anyway, it seems ↵John Mark Bell2008-12-013-64/+26
| | | | | | pointless to create objects on the heap which can equally well be on the stack, given the shortness of their lifetime. svn path=/trunk/libcss/; revision=5863
* Retain pointer to dictionary entries so we don't have to rediscover it later.John Mark Bell2008-12-019-463/+437
| | | | svn path=/trunk/libcss/; revision=5862
* Simplify decision as to whether to intern token data by inserting markers ↵John Mark Bell2008-12-012-29/+23
| | | | | | into the css_token_type enum. svn path=/trunk/libcss/; revision=5860
* Divorce css_string from whatever gets stored in lpu hashes.John Mark Bell2008-12-013-9/+12
| | | | | | | | | | | | | | | | | | Use pointers to parserutils_hash_entry directly in stylesheet datastructures. The upshot of this for allzengarden.css is: 5506 slots used (of 8192 => 67.211914%) Data: 8 full blocks: 32768 bytes 9 partial blocks: 35124 bytes (of 36864 => 95.279945%) Total: 69936 (4112) (32) Hash structures: 65584 i.e. a total string dictionary size of 135,520 bytes, which is some 74,056 bytes less than before. svn path=/trunk/libcss/; revision=5859
* Make getToken reduce consecutive whitespace tokens to a single whitespace token.John Mark Bell2008-11-301-9/+19
| | | | | | Update eatWS appropriately. This reduces the number of calls to getToken by a million or so. svn path=/trunk/libcss/; revision=5855