aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-04 20:46:00 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-04 20:46:00 +0100
commit0bb79e652a666f7832d978d1a7675aee27712eae (patch)
treef1c7a8930813f4ac5976cfe198b1a1ef230d5d33 /src
parentf5decdf48e13d89f133c27e9e8b77c5e04aa4bbd (diff)
backout 14ce954d98c0
Inheriting the pseudo class breaks things like <a><font color="black"><small>test</small></font></a> The style for the :link pseudo class (blue color in this case) would overwrite the black color set by <font>. This happens on http://www.freshmeat.net
Diffstat (limited to 'src')
-rw-r--r--src/styleengine.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc
index 90625a6a..5e7b39e9 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -66,7 +66,7 @@ void StyleEngine::startElement (int element) {
n->element = element;
n->id = NULL;
n->klass = NULL;
- n->pseudo = stack->getRef (stack->size () - 2)->pseudo; // inherit pseudo
+ n->pseudo = NULL;
n->styleAttribute = NULL;
n->inheritBackgroundColor = false;
}