version 1.197, 2003/04/10 15:00:45
|
version 1.198, 2003/04/22 11:31:53
|
Line 2825 static char *ParseCSSBackgroundColor (El
|
Line 2825 static char *ParseCSSBackgroundColor (El
|
|
|
best.typed_data.unit = UNIT_INVALID; |
best.typed_data.unit = UNIT_INVALID; |
best.typed_data.real = FALSE; |
best.typed_data.real = FALSE; |
if (!strncasecmp (cssRule, "transparent", strlen ("transparent"))) |
if (!strncasecmp (cssRule, "transparent", 11)) |
{ |
{ |
best.typed_data.value = PATTERN_NONE; |
best.typed_data.value = PATTERN_NONE; |
best.typed_data.unit = UNIT_REL; |
best.typed_data.unit = UNIT_REL; |
Line 3174 static char *ParseCSSBackgroundImage (El
|
Line 3174 static char *ParseCSSBackgroundImage (El
|
image.pointer = NULL; |
image.pointer = NULL; |
TtaSetStylePresentation (PRBackgroundPicture, element, tsch, context, |
TtaSetStylePresentation (PRBackgroundPicture, element, tsch, context, |
image); |
image); |
|
cssRule += 4; |
} |
} |
else if (!strncasecmp (cssRule, "url", 3)) |
else if (!strncasecmp (cssRule, "url", 3)) |
{ |
{ |
Line 3388 static char *ParseCSSBackground (Element
|
Line 3389 static char *ParseCSSBackground (Element
|
while (*cssRule != ';' && *cssRule != EOS && *cssRule != ',') |
while (*cssRule != ';' && *cssRule != EOS && *cssRule != ',') |
{ |
{ |
/* perhaps a Background Image */ |
/* perhaps a Background Image */ |
if (!strncasecmp (cssRule, "url", 3)) |
if (!strncasecmp (cssRule, "url", 3) || !strncasecmp (cssRule, "none", 4)) |
cssRule = ParseCSSBackgroundImage (element, tsch, context, cssRule, |
cssRule = ParseCSSBackgroundImage (element, tsch, context, cssRule, |
css, isHTML); |
css, isHTML); |
/* perhaps a Background Attachment */ |
/* perhaps a Background Attachment */ |