version 1.73, 2000/11/20 11:51:36
|
version 1.74, 2000/11/20 13:06:19
|
Line 3535 ThotBool isHTML;
|
Line 3535 ThotBool isHTML;
|
{ |
{ |
cssRule++; |
cssRule++; |
cssRule = SkipWCBlanksAndComments (cssRule); |
cssRule = SkipWCBlanksAndComments (cssRule); |
} |
/* try to parse the value associated with this property */ |
/* try to parse the value associated with this property */ |
if (CSSProperties[i].parsing_function != NULL) |
if (CSSProperties[i].parsing_function != NULL) |
|
{ |
|
done = FALSE; |
|
/* if it's the "fill" SVG property applied to a SVG text element, |
|
generate a Foreground P rule */ |
|
if (!ustrcmp (CSSProperties[i].name, TEXT("fill"))) |
|
{ |
{ |
elType = TtaGetElementType (element); |
done = FALSE; |
if (elType.ElTypeNum == GraphML_EL_text_ || |
/* if it's the "fill" SVG property applied to a SVG text element, |
elType.ElTypeNum == GraphML_EL_tspan) |
generate a Foreground P rule */ |
if (!ustrcmp (TtaGetSSchemaName (elType.ElSSchema), |
if (!ustrcmp (CSSProperties[i].name, TEXT("fill"))) |
TEXT("GraphML"))) |
{ |
{ |
elType = TtaGetElementType (element); |
p = ParseCSSForeground (element, tsch, context, cssRule, |
if (elType.ElTypeNum == GraphML_EL_text_ || |
css, isHTML); |
elType.ElTypeNum == GraphML_EL_tspan) |
done = TRUE; |
if (!ustrcmp (TtaGetSSchemaName (elType.ElSSchema), |
} |
TEXT("GraphML"))) |
|
{ |
|
p = ParseCSSForeground (element, tsch, context, cssRule, |
|
css, isHTML); |
|
done = TRUE; |
|
} |
|
} |
|
if (!done) |
|
p = CSSProperties[i].parsing_function (element, tsch, context, |
|
cssRule, css, isHTML); |
|
/* update index and skip the ";" separator if present */ |
|
cssRule = p; |
} |
} |
if (!done) |
|
p = CSSProperties[i].parsing_function (element, tsch, context, |
|
cssRule, css, isHTML); |
|
/* update index and skip the ";" separator if present */ |
|
cssRule = p; |
|
} |
} |
|
else |
|
cssRule = SkipProperty (cssRule); |
} |
} |
/* next property */ |
/* next property */ |
cssRule = SkipWCBlanksAndComments (cssRule); |
cssRule = SkipWCBlanksAndComments (cssRule); |