fixed crash on charset_completion
renamed css_strtolower -> qe_strtolower use offsetof for SAVED_DATA_SIZE macro (this stuff must go) cosmetics in css_get_enum remarks fixed text-mode colorization bug: because of saved_data stuff, must reset colorization function after mode restore. This saved data stuff is bogus and should be rewritten smaller version of roman numeral converter fixed alpha converter smaller implementation of css_counter_str fixed list_mode name: no longer generates extra mode completion entry
This commit is contained in:
parent
26319c05a7
commit
ae163f897b
9 changed files with 161 additions and 93 deletions
|
|
@ -311,7 +311,7 @@ CSSProperty *css_parse_properties(CSSParseState *b, const char *props_str)
|
|||
goto next;
|
||||
p++;
|
||||
if (b->ignore_case)
|
||||
css_strtolower(buf, sizeof(buf));
|
||||
qe_strtolower(buf, sizeof(buf), buf);
|
||||
args[nb_args].u.attr_id = css_new_ident(buf);
|
||||
unit = CSS_VALUE_ATTR;
|
||||
goto got_val;
|
||||
|
|
@ -878,7 +878,7 @@ static void parse_simple_selector(CSSSimpleSelector *ss, CSSParseState *b,
|
|||
pclass = 0;
|
||||
read_ident(b, &ch, tag, sizeof(tag));
|
||||
if (b->ignore_case)
|
||||
css_strtolower(tag, sizeof(tag));
|
||||
qe_strtolower(tag, sizeof(tag), tag);
|
||||
|
||||
/* read '.class', '[xxx]', ':pseudo-class' */
|
||||
for (;;) {
|
||||
|
|
@ -898,7 +898,7 @@ static void parse_simple_selector(CSSSimpleSelector *ss, CSSParseState *b,
|
|||
ch = bgetc(b);
|
||||
read_ident(b, &ch, attribute, sizeof(attribute));
|
||||
if (b->ignore_case)
|
||||
css_strtolower(attribute, sizeof(attribute));
|
||||
qe_strtolower(attribute, sizeof(attribute), attribute);
|
||||
|
||||
switch (ch) {
|
||||
case '~':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue