From c9f57cf21b061d778475eee5c4e84b8d7464a9d6 Mon Sep 17 00:00:00 2001 From: Phil Ringnalda Date: Fri, 1 Oct 2010 19:36:58 -0700 Subject: [PATCH] Bug 385845 - Remove bogus assertion that mDocElement is in mDocument during XML parsing, since it was never a requirement and we've long since dropped doing what caused us to care, r=bz, a=orange --- content/xml/document/src/nsXMLContentSink.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/content/xml/document/src/nsXMLContentSink.cpp b/content/xml/document/src/nsXMLContentSink.cpp index 12ded7c2c30d..da05bc93d00e 100644 --- a/content/xml/document/src/nsXMLContentSink.cpp +++ b/content/xml/document/src/nsXMLContentSink.cpp @@ -332,15 +332,6 @@ nsXMLContentSink::DidBuildModel(PRBool aTerminated) // Kick off layout for non-XSLT transformed documents. mDocument->ScriptLoader()->RemoveObserver(this); - if (mDocElement) { - // Notify document observers that all the content has been stuck - // into the document. - // XXX do we need to notify for things like PIs? Or just the - // documentElement? - NS_ASSERTION(mDocument->IndexOf(mDocElement) != -1, - "mDocElement not in doc?"); - } - // Check if we want to prettyprint MaybePrettyPrint();