Make XML prettyprinting work again. Bug 222539, r=sicking, sr=peterv

This commit is contained in:
bzbarsky%mit.edu 2003-10-20 19:33:46 +00:00
Родитель ae2df495d0
Коммит cbd8c0b032
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -249,9 +249,6 @@ nsXMLContentSink::DidBuildModel()
}
}
// Check if we want to prettyprint
MaybePrettyPrint();
if (mXSLTProcessor) {
nsCOMPtr<nsIDOMDocument> currentDOMDoc(do_QueryInterface(mDocument));
mXSLTProcessor->SetSourceContentModel(currentDOMDoc);
@ -280,6 +277,9 @@ nsXMLContentSink::DidBuildModel()
mDocument->IndexOf(mDocElement));
mDocument->EndUpdate(UPDATE_CONTENT_MODEL);
// Check if we want to prettyprint
MaybePrettyPrint();
StartLayout();
#if 0 /* Disable until this works for XML */
@ -370,7 +370,7 @@ nsXMLContentSink::OnTransformDone(nsresult aResult,
NS_ASSERTION(mDocument->IndexOf(rootContent) != -1,
"rootContent not in doc?");
mDocument->BeginUpdate(UPDATE_CONTENT_MODEL);
mDocument->ContentInserted(nsnull, mDocElement,
mDocument->ContentInserted(nsnull, rootContent,
// XXXbz is this last arg relevant if
// the container is null?
mDocument->IndexOf(rootContent));