diff options
author | corvid <corvid@lavabit.com> | 2011-06-12 15:49:32 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-06-12 15:49:32 +0000 |
commit | aa1785ccf469b84eec7ab9961c04d9e0a54d2ad2 (patch) | |
tree | 161a6e56555026b731fec926d1e6844954f44f1e /src/cssparser.cc | |
parent | c5be2477a8078aa2c34c5b121320a062efe9a250 (diff) | |
parent | 988480437fbc89955ef4f08c283ce1f193972420 (diff) |
merge in recent changes from main repo
Diffstat (limited to 'src/cssparser.cc')
-rw-r--r-- | src/cssparser.cc | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/cssparser.cc b/src/cssparser.cc index 1075ef63..f173f403 100644 --- a/src/cssparser.cc +++ b/src/cssparser.cc @@ -1590,22 +1590,16 @@ void CssParser::parse(DilloHtml *html, DilloUrl *url, CssContext * context, } } -CssPropertyList *CssParser::parseDeclarationBlock(const char *buf, int buflen) +void CssParser::parseDeclarationBlock(const char *buf, int buflen, + CssPropertyList *props, + CssPropertyList *propsImortant) { - CssPropertyList *props = new CssPropertyList (true); CssParser parser (NULL, CSS_ORIGIN_AUTHOR, buf, buflen); parser.withinBlock = true; do - parser.parseDeclaration(props, NULL); + parser.parseDeclaration(props, propsImortant); while (!(parser.ttype == CSS_TK_END || (parser.ttype == CSS_TK_CHAR && parser.tval[0] == '}'))); - - if (props->size () == 0) { - delete props; - props = NULL; - } - - return props; } |