version 1.413, 2008/12/22 10:24:38
|
version 1.414, 2008/12/24 13:36:44
|
Line 2327 static char *SetCSSImage (Element elemen
|
Line 2327 static char *SetCSSImage (Element elemen
|
url = NULL; |
url = NULL; |
image.typed_data.real = FALSE; |
image.typed_data.real = FALSE; |
cssRule = ParseCSSUrl (cssRule, &url); |
cssRule = ParseCSSUrl (cssRule, &url); |
|
if (strlen (url) > MAX_LENGTH / 4) |
|
url[MAX_LENGTH / 4] = EOS; |
ptr = cssRule; |
ptr = cssRule; |
if (ctxt->destroy) |
if (ctxt->destroy) |
{ |
{ |
Line 7537 void HTMLSetBackgroundColor (Document do
|
Line 7539 void HTMLSetBackgroundColor (Document do
|
{ |
{ |
char css_command[1000]; |
char css_command[1000]; |
|
|
sprintf (css_command, "background-color: %s", color); |
sprintf (css_command, "background-color: %50s", color); |
ParseHTMLSpecificStyle (el, css_command, doc, specificity, FALSE); |
ParseHTMLSpecificStyle (el, css_command, doc, specificity, FALSE); |
} |
} |
|
|
Line 7549 void HTMLSetForegroundColor (Document do
|
Line 7551 void HTMLSetForegroundColor (Document do
|
{ |
{ |
char css_command[1000]; |
char css_command[1000]; |
|
|
sprintf (css_command, "color: %s", color); |
sprintf (css_command, "color: %50s", color); |
ParseHTMLSpecificStyle (el, css_command, doc, specificity, FALSE); |
ParseHTMLSpecificStyle (el, css_command, doc, specificity, FALSE); |
} |
} |
|
|
Line 7594 void HTMLSetAlinkColor (Document doc, El
|
Line 7596 void HTMLSetAlinkColor (Document doc, El
|
{ |
{ |
char css_command[1000]; |
char css_command[1000]; |
|
|
sprintf (css_command, ":link { color: %s }", color); |
sprintf (css_command, ":link { color: %50s }", color); |
ApplyCSSRules (el, css_command, doc, FALSE); |
ApplyCSSRules (el, css_command, doc, FALSE); |
} |
} |
|
|
Line 7605 void HTMLSetAactiveColor (Document doc,
|
Line 7607 void HTMLSetAactiveColor (Document doc,
|
{ |
{ |
char css_command[1000]; |
char css_command[1000]; |
|
|
sprintf (css_command, ":active { color: %s }", color); |
sprintf (css_command, ":active { color: %50s }", color); |
ApplyCSSRules (el, css_command, doc, FALSE); |
ApplyCSSRules (el, css_command, doc, FALSE); |
} |
} |
|
|
Line 7616 void HTMLSetAvisitedColor (Document doc,
|
Line 7618 void HTMLSetAvisitedColor (Document doc,
|
{ |
{ |
char css_command[1000]; |
char css_command[1000]; |
|
|
sprintf (css_command, ":visited { color: %s }", color); |
sprintf (css_command, ":visited { color: %50s }", color); |
ApplyCSSRules (el, css_command, doc, FALSE); |
ApplyCSSRules (el, css_command, doc, FALSE); |
} |
} |
|
|