aboutsummaryrefslogtreecommitdiff
path: root/src/cssparser.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-22 09:54:58 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-22 09:54:58 +0100
commitce65f174e3569b35f09ea475f9ddad2aa8ebd360 (patch)
treee9b8ae0808e1b8708b109a2db4bcfc3fcded518d /src/cssparser.cc
parent0c3938b28993773ac87759a07d2129cc2b1d5971 (diff)
fix support for quoted font-family names
Diffstat (limited to 'src/cssparser.cc')
-rw-r--r--src/cssparser.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cssparser.cc b/src/cssparser.cc
index a50ef9da..4eb6049b 100644
--- a/src/cssparser.cc
+++ b/src/cssparser.cc
@@ -579,7 +579,7 @@ static bool Css_token_matches_property(CssParser * parser,
return parser->ttype == CSS_TK_STRING;
case CSS_TYPE_SYMBOL:
- return parser->ttype == CSS_TK_SYMBOL;
+ return parser->ttype == CSS_TK_SYMBOL || parser->ttype == CSS_TK_STRING;
case CSS_TYPE_FONT_WEIGHT:
if (parser->ttype == CSS_TK_DECINT) {
@@ -728,7 +728,7 @@ static bool Css_parse_value(CssParser * parser,
break;
case CSS_TYPE_SYMBOL:
- if (parser->ttype == CSS_TK_SYMBOL) {
+ if (parser->ttype == CSS_TK_SYMBOL || parser->ttype == CSS_TK_STRING) {
val->strVal = dStrdup(parser->tval);
ret = true;
Css_next_token(parser);