aboutsummaryrefslogtreecommitdiff
path: root/src/cssparser.cc
AgeCommit message (Collapse)Author
2009-03-15make CSS_MAX_STR_LEN a static const integerJohannes Hofmann
2009-03-15replace a_Css_parse(), a_Css_parse_declaration() with static methodsJohannes Hofmann
2009-03-15add CssParser constructorJohannes Hofmann
2009-03-15make CssParser a classJohannes Hofmann
2009-03-15move macro definition to .cc fileJohannes Hofmann
2009-03-12replace CSS_LENGTH_* macros with inline functionsJohannes Hofmann
2009-03-10add support for negative numbers in CSS parserJohannes Hofmann
2009-03-06fix CSS string parsing bugJohannes Hofmann
2009-02-27add CSS parser todosJohannes Hofmann
2009-02-26don't accept classes or id's starting with integerJohannes Hofmann
2009-02-26css parsing numberscorvid
Recognize floats starting with '.' (e.g. ".5") as required by CSS 2.1.
2009-02-09whitespace cleanup: 's/ +$//g'Jorge Arellano Cid
2009-02-06support font-size enum valuesJohannes Hofmann
2009-02-06set type in CssPropertyList::set()Johannes Hofmann
2009-02-06remove checkJohannes Hofmann
2009-02-06switch font-weight handling to new multi type systemJohannes Hofmann
2009-02-06fix check for 'none' in Css_token_matches_property()Johannes Hofmann
2009-02-06add type to CSS propertiesJohannes Hofmann
2009-02-06allow multiple types for CSS propertiesJohannes Hofmann
2009-02-05move CssProperty::Name and CssProperty::Value out of CssProperty classJohannes Hofmann
2009-02-02remove unused order_count parameterJohannes Hofmann
It seems that in dillo-0.8.0-css-3 it was used to make sure that later definitions of the same CSS property have more weight than previous ones. If for example a first stylesheet sets background-color to black, and a second stylesheet sets it to green, green should win. But as we currently parese everything in order (throughing away all parsed CSS data when a new CSS stylesheet has arrived), we don't need to remember the original ordering of stylesheets.
2009-02-01s/atoi/strtol/gJorge Arellano Cid
2009-01-31add copyright notice to cssparser.ccJohannes Hofmann
2009-01-31Switched strcasecmp() to dStrcasecmp() calls.Jorge Arellano Cid
2009-01-31make CssParser case insensitiveJohannes Hofmann
2009-01-30remove unused CSS parser functionsJohannes Hofmann
2009-01-30fix parsing CSS values of type CSS_TYPE_STRINGJohannes Hofmann
2009-01-30CssContext::addRule(): only add rules with nonempty property listJohannes Hofmann
2009-01-29free font names from style="" attributes (found by Jeremy)Johannes Hofmann
2009-01-29remove redundant array sizes in cssparser.ccJohannes Hofmann
2009-01-29add (incomplete) support for the "font" shorthandJohannes Hofmann
This commit makes simple stuff work, but does not implement all the hairy details (see http://www.w3.org/TR/CSS21/fonts.html#font-shorthand).
2009-01-28make sure strings from CSS parser are freedJohannes Hofmann
2009-01-28descendent -> descendant (noticed by corvid)Johannes Hofmann
2009-01-25allocate/deallocate CssSimpleSelector properlyJohannes Hofmann
2009-01-22fix support for quoted font-family namesJohannes Hofmann
2009-01-21start supporting "auto" value in CSSJohannes Hofmann
2009-01-21add missing Css_next_token() call in Css_parse_value()Johannes Hofmann
This fixes a loop on "border:auto" (reported by Jeremy).
2009-01-20drop CssRules that have more than one pseudo class setJohannes Hofmann
Currently dillo only supports :link and :visited. Simple selectors with more than one pseudo class will never match. Therefore we drop the whole rule in this case. This fixes link color on http://www.fltk.org
2009-01-19avoid looping on style="{}"Johannes Hofmann
2009-01-17implement parsing of CSS data from style attributeJohannes Hofmann
E.g. <body style="background-color: red; font-family: arial; font-size: 30mm"> Hello World </body>
2009-01-17some constsJohannes Hofmann
2009-01-12refactor Css_parse_selector() to avoid loopingJohannes Hofmann
Make sure that even if parsing of a CSS selector fails, the parser advances until the end of the selector (EOF, ',', or '{').
2009-01-11commentJohannes Hofmann
2009-01-11refactor Css_parse_simple_selector() a bitJohannes Hofmann
2009-01-09remove unused codeJohannes Hofmann
2009-01-03fix parsing of CSS selectors with '>' combinatorJohannes Hofmann
2008-12-19Interim patch for CSS stylesheet loading. Not finished yet.Jorge Arellano Cid
2008-12-11sort propertiesJohannes Hofmann
2008-12-02check for EOF in Css_next_token()Johannes Hofmann
2008-12-02implement CSS_SHORTHAND_BORDERJohannes Hofmann