aboutsummaryrefslogtreecommitdiff
path: root/src/html.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/html.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/html.cc')
-rw-r--r--src/html.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/html.cc b/src/html.cc
index d71fce12..eb66e67c 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -1650,7 +1650,7 @@ static void Html_tag_close_style(DilloHtml *html, int TagIdx)
{
if (prefs.parse_embedded_css)
html->styleEngine->parse(html->Stash->str, html->Stash->len,
- 0, CSS_ORIGIN_AUTHOR);
+ CSS_ORIGIN_AUTHOR);
}
/*
@@ -2799,7 +2799,7 @@ static void Html_load_stylesheet(DilloHtml *html, DilloUrl *url)
if (a_Capi_get_buf(url, &data, &len)) {
/* Haven't looked into what origin_count is */
if (a_Capi_get_flags(url) & CAPI_Completed)
- html->styleEngine->parse(data, len, 0, CSS_ORIGIN_AUTHOR);
+ html->styleEngine->parse(data, len, CSS_ORIGIN_AUTHOR);
a_Capi_unref_buf(url);
} else if (!html->repush_after_head) {
/* Fill a Web structure for the cache query */