version 1.340, 2006/01/17 11:47:16
|
version 1.341, 2006/01/17 14:11:23
|
Line 2031 static char *SetCSSImage (Element elemen
|
Line 2031 static char *SetCSSImage (Element elemen
|
image.pointer = NULL; |
image.pointer = NULL; |
TtaSetStylePresentation (ruleType, element, tsch, ctxt,image); |
TtaSetStylePresentation (ruleType, element, tsch, ctxt,image); |
} |
} |
else if (url) |
else if (url && DoApply) |
{ |
{ |
bg_image = TtaGetEnvString ("ENABLE_BG_IMAGES"); |
bg_image = TtaGetEnvString ("ENABLE_BG_IMAGES"); |
if (bg_image == NULL || !strcasecmp (bg_image, "yes")) |
if (bg_image == NULL || !strcasecmp (bg_image, "yes")) |
Line 5734 static char *ParseGenericSelector (char
|
Line 5734 static char *ParseGenericSelector (char
|
else if (*selector == '[') |
else if (*selector == '[') |
{ |
{ |
selector++; |
selector++; |
|
selector = SkipBlanksAndComments (selector); |
while (*selector != EOS && *selector != ']' && |
while (*selector != EOS && *selector != ']' && |
*selector != '=' && *selector != '~' && |
*selector != '=' && *selector != '~' && |
*selector != '|') |
*selector != '|' && *selector != '^' && |
|
!TtaIsBlank (selector)) |
*cur++ = *selector++; |
*cur++ = *selector++; |
/* close the word */ |
/* close the word (attribute name) */ |
*cur++ = EOS; |
*cur++ = EOS; |
/* point to the attribute in sel[] if it's valid name */ |
/* point to the attribute in sel[] if it's valid name */ |
if (deb[0] <= 64) |
if (deb[0] <= 64) |
Line 5768 static char *ParseGenericSelector (char
|
Line 5770 static char *ParseGenericSelector (char
|
attrlevels[0] = 0; |
attrlevels[0] = 0; |
specificity += 10; |
specificity += 10; |
/* check matching */ |
/* check matching */ |
|
selector = SkipBlanksAndComments (selector); |
if (*selector == '~') |
if (*selector == '~') |
{ |
{ |
attrmatch[0] = Txtword; |
attrmatch[0] = Txtword; |
Line 5778 static char *ParseGenericSelector (char
|
Line 5781 static char *ParseGenericSelector (char
|
attrmatch[0] = Txtsubstring; |
attrmatch[0] = Txtsubstring; |
selector++; |
selector++; |
} |
} |
|
else if (*selector == '^') |
|
{ |
|
attrmatch[0] = Txtsubstring; |
|
selector++; |
|
} |
else |
else |
attrmatch[0] = Txtmatch; |
attrmatch[0] = Txtmatch; |
} |
} |
Line 5785 static char *ParseGenericSelector (char
|
Line 5793 static char *ParseGenericSelector (char
|
{ |
{ |
/* look for a value "xxxx" */ |
/* look for a value "xxxx" */ |
selector++; |
selector++; |
|
selector = SkipBlanksAndComments (selector); |
if (*selector != '"') |
if (*selector != '"') |
quoted = FALSE; |
quoted = FALSE; |
else |
else |
Line 5821 static char *ParseGenericSelector (char
|
Line 5830 static char *ParseGenericSelector (char
|
selector++; |
selector++; |
quoted = FALSE; |
quoted = FALSE; |
} |
} |
|
selector = SkipBlanksAndComments (selector); |
if (*selector != ']') |
if (*selector != ']') |
{ |
{ |
CSSPrintError ("Invalid attribute value", deb); |
CSSPrintError ("Invalid attribute value", deb); |