summaryrefslogtreecommitdiff
path: root/src/parse/important.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-07-27 12:17:51 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-07-27 12:17:51 +0000
commitc1a3d0bb1b2fd93dd6b6d6b94e7897da01bd9083 (patch)
treef9e177429a1112f1672c74f07ebfc3e0e9cb60b8 /src/parse/important.c
parente20927d57c447c7b74af4f00f1ecbd19b554ab65 (diff)
downloadlibcss-c1a3d0bb1b2fd93dd6b6d6b94e7897da01bd9083.tar.gz
libcss-c1a3d0bb1b2fd93dd6b6d6b94e7897da01bd9083.tar.bz2
Don't intern lower-case versions of strings. Use lwc_context_string_caseless_isequal, instead.
svn path=/trunk/libcss/; revision=8815
Diffstat (limited to 'src/parse/important.c')
-rw-r--r--src/parse/important.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/parse/important.c b/src/parse/important.c
index a32da0a..88ec640 100644
--- a/src/parse/important.c
+++ b/src/parse/important.c
@@ -29,6 +29,7 @@ css_error parse_important(css_language *c,
uint8_t *result)
{
int orig_ctx = *ctx;
+ bool match = false;
const css_token *token;
consumeWhitespace(vector, ctx);
@@ -43,7 +44,9 @@ css_error parse_important(css_language *c,
return CSS_INVALID;
}
- if (token->ilower == c->strings[IMPORTANT]) {
+ if (lwc_context_string_caseless_isequal(c->sheet->dictionary,
+ token->idata, c->strings[IMPORTANT],
+ &match) == lwc_error_ok && match) {
*result |= FLAG_IMPORTANT;
} else {
*ctx = orig_ctx;