fix for 49023
Lars Knoll
lars at trolltech.com
Fri Oct 25 18:53:41 BST 2002
Hi,
this fixes 49023. I can't imagine what it could break, but please review.
It still doesn't fix aftenposten.no, as IE behaves worse than I thought when
calculating minMaxWidth for table cells. I'll send a fix for that probelm in
a second.
Cheers,
Lars
diff -u -b -p -r1.310 htmlparser.cpp
--- htmlparser.cpp 2002/10/23 17:45:08 1.310
+++ htmlparser.cpp 2002/10/25 17:56:03
@@ -306,10 +306,7 @@ bool KHTMLParser::insertNode(NodeImpl *n
n->renderer()->setBlockBidi();
}
#endif
- //_inline = current->isInline();
- if(current->isInline()) m_inline = true;
- }
- else {
+ } else {
#if SPEED_DEBUG < 2
if(!n->attached() && HTMLWidget)
n->attach();
@@ -322,6 +319,8 @@ bool KHTMLParser::insertNode(NodeImpl *n
n->renderer()->close();
#endif
}
+
+ if(n->isInline()) m_inline = true;
#if SPEED_DEBUG < 1
if(tagPriority[id] == 0 && n->renderer())
More information about the kfm-devel
mailing list