summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Optimise css_stylesheet_add_rule by the cunning approach of not iterating ↵John Mark Bell2008-11-282-9/+7
| | | | | | through a singly linked list to find the end every time we want to insert a rule. This doubles parsing speed. svn path=/trunk/libcss/; revision=5811
* Change the way in which css_rules are defined. This is more compact than the ↵John Mark Bell2008-11-282-64/+117
| | | | | | previous approach. Space requirements for rule objects alone is now 447,120 bytes as opposed to 819,270 bytes previously. This reduces the space requirements for allzengarden.css to 2,041,712 bytes, which is 45% the size of what we had originally. svn path=/trunk/libcss/; revision=5810
* css_string is now the same as a parserutils_dict_entry. This allows us to ↵John Mark Bell2008-11-278-488/+639
| | | | | | | | | | use dict entries directly as strings. iChange the way in which selectors are represented. This significantly reduces memory requirements -- reducing the approximate usage count (excludes the string dictionary, which is about 360k) of allzengarden.css from 4,535,400 bytes to 2,414,312 bytes on a 64bit platform. The string dictionary is now created and owned by the stylesheet object. The parser is just given access to this so that it can store strings in it. svn path=/trunk/libcss/; revision=5809
* Calculate some kind of ballpark figure for the memory requirements of a ↵John Mark Bell2008-11-271-12/+31
| | | | | | stylesheet. Summary: lots. svn path=/trunk/libcss/; revision=5808
* Prevent reading from beyond the start of token data.John Mark Bell2008-11-271-5/+6
| | | | svn path=/trunk/libcss/; revision=5807
* Don't intern strings for CSS_TOKEN_S tokens. This is pointless, as all we ↵John Mark Bell2008-11-271-1/+5
| | | | | | care about is the token type in this case. svn path=/trunk/libcss/; revision=5806
* z-indexJohn Mark Bell2008-11-261-4/+53
| | | | svn path=/trunk/libcss/; revision=5805
* word-spacingJohn Mark Bell2008-11-261-4/+57
| | | | svn path=/trunk/libcss/; revision=5804
* widthJohn Mark Bell2008-11-261-4/+56
| | | | svn path=/trunk/libcss/; revision=5803
* widowsJohn Mark Bell2008-11-261-4/+49
| | | | svn path=/trunk/libcss/; revision=5802
* white-spaceJohn Mark Bell2008-11-262-4/+44
| | | | svn path=/trunk/libcss/; revision=5801
* volumeJohn Mark Bell2008-11-262-5/+96
| | | | svn path=/trunk/libcss/; revision=5800
* visibilityJohn Mark Bell2008-11-261-4/+35
| | | | svn path=/trunk/libcss/; revision=5799
* vertical-alignJohn Mark Bell2008-11-262-5/+94
| | | | svn path=/trunk/libcss/; revision=5798
* unicode-bidiJohn Mark Bell2008-11-252-5/+38
| | | | svn path=/trunk/libcss/; revision=5797
* text-transformJohn Mark Bell2008-11-252-5/+42
| | | | svn path=/trunk/libcss/; revision=5796
* text-indentJohn Mark Bell2008-11-251-4/+54
| | | | svn path=/trunk/libcss/; revision=5795
* text-alignJohn Mark Bell2008-11-252-5/+40
| | | | svn path=/trunk/libcss/; revision=5794
* table-layoutJohn Mark Bell2008-11-251-4/+33
| | | | svn path=/trunk/libcss/; revision=5793
* stressJohn Mark Bell2008-11-251-4/+48
| | | | svn path=/trunk/libcss/; revision=5792
* speech-rateJohn Mark Bell2008-11-252-5/+80
| | | | svn path=/trunk/libcss/; revision=5790
* speakJohn Mark Bell2008-11-252-5/+37
| | | | svn path=/trunk/libcss/; revision=5789
* speak-punctuationJohn Mark Bell2008-11-252-5/+35
| | | | svn path=/trunk/libcss/; revision=5788
* speak-numeralJohn Mark Bell2008-11-252-5/+36
| | | | svn path=/trunk/libcss/; revision=5787
* speak-headerJohn Mark Bell2008-11-252-5/+35
| | | | svn path=/trunk/libcss/; revision=5786
* richnessJohn Mark Bell2008-11-251-4/+50
| | | | svn path=/trunk/libcss/; revision=5785
* positionJohn Mark Bell2008-11-252-5/+44
| | | | svn path=/trunk/libcss/; revision=5784
* pitchJohn Mark Bell2008-11-252-5/+72
| | | | svn path=/trunk/libcss/; revision=5783
* pitch-rangeJohn Mark Bell2008-11-251-4/+48
| | | | svn path=/trunk/libcss/; revision=5782
* pause-beforeJohn Mark Bell2008-11-251-4/+52
| | | | svn path=/trunk/libcss/; revision=5781
* Fix previous commitJohn Mark Bell2008-11-251-1/+1
| | | | svn path=/trunk/libcss/; revision=5780
* pause-afterJohn Mark Bell2008-11-251-4/+52
| | | | svn path=/trunk/libcss/; revision=5779
* page-break-insideJohn Mark Bell2008-11-252-5/+34
| | | | svn path=/trunk/libcss/; revision=5778
* page-break-beforeJohn Mark Bell2008-11-251-4/+39
| | | | svn path=/trunk/libcss/; revision=5777
* page-break-afterJohn Mark Bell2008-11-252-5/+42
| | | | svn path=/trunk/libcss/; revision=5776
* padding-{top,right,bottom,left}John Mark Bell2008-11-251-24/+68
| | | | svn path=/trunk/libcss/; revision=5775
* Fix todo from r5771.John Mark Bell2008-11-251-50/+52
| | | | svn path=/trunk/libcss/; revision=5774
* overflowJohn Mark Bell2008-11-252-5/+39
| | | | svn path=/trunk/libcss/; revision=5773
* outline-widthJohn Mark Bell2008-11-251-4/+19
| | | | svn path=/trunk/libcss/; revision=5772
* max-heightJohn Mark Bell2008-11-253-43/+350
| | | | | | | | | | | | | max-width min-height min-width orphans outline-color outline-style TODO: fix all instances of the creation of bytecode with parameters. Currently, they only consult value to determine if there are additional parameters. This means that, in the case of inherit and the default value being one which takes parameters, spurious space is allocated in the bytecode. svn path=/trunk/libcss/; revision=5771
* margin-{bottom,left,right,top}John Mark Bell2008-11-251-33/+74
| | | | | | Fix parse_border_side_* to emit lengths correctly. svn path=/trunk/libcss/; revision=5770
* list-style-type.John Mark Bell2008-11-253-13/+87
| | | | | | Apparently, upper-greek doesn't exist, so remove it from the bytecode. svn path=/trunk/libcss/; revision=5769
* list-style-positionJohn Mark Bell2008-11-252-5/+36
| | | | svn path=/trunk/libcss/; revision=5768
* list-style-imageJohn Mark Bell2008-11-251-4/+48
| | | | svn path=/trunk/libcss/; revision=5767
* Fix rounding when fractional part is close to 1.John Mark Bell2008-11-241-3/+4
| | | | | | Add testcase to exercise this. svn path=/trunk/libcss/; revision=5766
* Fix number parsing and make test code automatically determine correctness.John Mark Bell2008-11-241-2/+3
| | | | | | | More test data, which covers everything. Fix includes in libcss/types.h svn path=/trunk/libcss/; revision=5764
* All numerical values are represented in 22:10 fixed point.John Mark Bell2008-11-233-24/+122
| | | | svn path=/trunk/libcss/; revision=5762
* Something approximating line-heightJohn Mark Bell2008-11-211-4/+66
| | | | | | | TODO: parse floats TODO: values with units may contain floats, not integers svn path=/trunk/libcss/; revision=5761
* letter-spacingJohn Mark Bell2008-11-201-4/+57
| | | | svn path=/trunk/libcss/; revision=5760
* heightJohn Mark Bell2008-11-201-4/+56
| | | | svn path=/trunk/libcss/; revision=5759