From 663bd5580e64cfb07efb1867ed07c8f137d63fcb Mon Sep 17 00:00:00 2001 From: kipp Date: Wed, 15 Jul 1998 17:06:53 +0000 Subject: [PATCH] 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 --- mozilla/content/html/document/src/nsHTMLContentSink.cpp | 9 +-------- mozilla/layout/html/document/src/nsHTMLContentSink.cpp | 9 +-------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/mozilla/content/html/document/src/nsHTMLContentSink.cpp b/mozilla/content/html/document/src/nsHTMLContentSink.cpp index 0eae47ad58a..1ecf0521263 100644 --- a/mozilla/content/html/document/src/nsHTMLContentSink.cpp +++ b/mozilla/content/html/document/src/nsHTMLContentSink.cpp @@ -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! diff --git a/mozilla/layout/html/document/src/nsHTMLContentSink.cpp b/mozilla/layout/html/document/src/nsHTMLContentSink.cpp index 0eae47ad58a..1ecf0521263 100644 --- a/mozilla/layout/html/document/src/nsHTMLContentSink.cpp +++ b/mozilla/layout/html/document/src/nsHTMLContentSink.cpp @@ -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!