version 1.261, 2004/04/01 13:56:32
|
version 1.262, 2004/04/06 14:15:17
|
Line 588 static char *ParseCSSColor (char *cssRul
|
Line 588 static char *ParseCSSColor (char *cssRul
|
cssRule = ptr; |
cssRule = ptr; |
} |
} |
val->typed_data.real = FALSE; |
val->typed_data.real = FALSE; |
|
cssRule = SkipBlanksAndComments (cssRule); |
return (cssRule); |
return (cssRule); |
} |
} |
|
|
Line 2918 static char *ParseCSSForeground (Element
|
Line 2919 static char *ParseCSSForeground (Element
|
CSSInfoPtr css, ThotBool isHTML) |
CSSInfoPtr css, ThotBool isHTML) |
{ |
{ |
PresentationValue best; |
PresentationValue best; |
|
char *p; |
|
|
|
p = cssRule; |
cssRule = ParseCSSColor (cssRule, &best); |
cssRule = ParseCSSColor (cssRule, &best); |
if (best.typed_data.unit != UNIT_INVALID && DoApply) |
if (best.typed_data.unit != UNIT_INVALID && DoApply) |
{ |
{ |
if (tsch) |
if (tsch) |
cssRule = CheckImportantRule (cssRule, context); |
cssRule = CheckImportantRule (cssRule, context); |
/* install the new presentation */ |
if (*cssRule != EOS && *cssRule !=';') |
TtaSetStylePresentation (PRForeground, element, tsch, context, best); |
{ |
|
cssRule = SkipProperty (cssRule, FALSE); |
|
CSSParseError ("Invalid value", p, cssRule); |
|
} |
|
else |
|
/* install the new presentation */ |
|
TtaSetStylePresentation (PRForeground, element, tsch, context, best); |
} |
} |
return (cssRule); |
return (cssRule); |
} |
} |