Speed up doc loading by not reflowing after appending leaf elements (temporary hack)

git-svn-id: svn://10.0.0.236/trunk@5604 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp
1998-07-15 17:06:53 +00:00
parent 6e34ee0270
commit 663bd5580e
2 changed files with 2 additions and 16 deletions

View File

@@ -1079,16 +1079,9 @@ PRInt32 HTMLContentSink::AddLeaf(const nsIParserNode& aNode)
if (NS_OK == rv) {
if (nsnull != leaf) {
if (nsnull != parent) {
PRBool allowReflow = parent == mBody;
#ifdef NS_DEBUG
if (allowReflow) {
SINK_TRACE(SINK_TRACE_REFLOW,
("HTMLContentSink::AddLeaf: reflow after append"));
}
#endif
AppendToCorrectParent(parentType, parent,
(nsHTMLTag) aNode.GetNodeType(), leaf,
allowReflow);
PR_FALSE);
} else {
// XXX drop stuff on the floor that doesn't have a container!
// Bad parser!