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:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user