summaryrefslogtreecommitdiff
path: root/src/css.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-02-02 07:40:23 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-02-02 07:40:23 +0100
commit8ef8b2eede01ecec243071342e751dc1147f750b (patch)
tree36c3befd61014bd4a07575a2ffaef0b0f39664cf /src/css.cc
parent13082c04fe0d2f167b6888108b3672e94a2fb3ea (diff)
remove unused order_count parameter
It seems that in dillo-0.8.0-css-3 it was used to make sure that later definitions of the same CSS property have more weight than previous ones. If for example a first stylesheet sets background-color to black, and a second stylesheet sets it to green, green should win. But as we currently parese everything in order (throughing away all parsed CSS data when a new CSS stylesheet has arrived), we don't need to remember the original ordering of stylesheets.
Diffstat (limited to 'src/css.cc')
-rw-r--r--src/css.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/css.cc b/src/css.cc
index 2307617e..b7e34398 100644
--- a/src/css.cc
+++ b/src/css.cc
@@ -467,7 +467,7 @@ void CssContext::buildUserAgentStyle () {
"th {font-weight: bolder; text-align: center}"
"code, tt, pre, samp, kbd {font-family: monospace}";
- a_Css_parse (this, cssBuf, strlen (cssBuf), 0, CSS_ORIGIN_USER_AGENT);
+ a_Css_parse (this, cssBuf, strlen (cssBuf), CSS_ORIGIN_USER_AGENT);
}
void CssContext::buildUserStyle () {
@@ -475,7 +475,7 @@ void CssContext::buildUserStyle () {
char *filename = dStrconcat(dGethomedir(), "/.dillo/style.css", NULL);
if ((style = a_Misc_file2dstr(filename))) {
- a_Css_parse (this, style->str, style->len, 0, CSS_ORIGIN_USER);
+ a_Css_parse (this, style->str, style->len, CSS_ORIGIN_USER);
dStr_free (style, 1);
}
dFree (filename);