Use GetOwnerDoc in GetTextContent, since this makes sense for nodes not

currently in the DOM tree.  Bug 276880, r+sr=peterv


git-svn-id: svn://10.0.0.236/trunk@167229 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2005-01-03 23:37:25 +00:00
parent 74b268efe7
commit 1940e30c33

View File

@@ -215,7 +215,7 @@ nsNode3Tearoff::GetTextContent(nsAString &aTextContent)
return node->GetNodeValue(aTextContent);
}
nsIDocument *doc = mContent->GetDocument();
nsIDocument *doc = mContent->GetOwnerDoc();
if (!doc) {
NS_ERROR("Need a document to do text serialization");