From 1940e30c33a01c7d2d09184d274c7310e0de2510 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Mon, 3 Jan 2005 23:37:25 +0000 Subject: [PATCH] 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 --- mozilla/content/base/src/nsGenericElement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/content/base/src/nsGenericElement.cpp b/mozilla/content/base/src/nsGenericElement.cpp index fa473e8fbb6..2656673f932 100644 --- a/mozilla/content/base/src/nsGenericElement.cpp +++ b/mozilla/content/base/src/nsGenericElement.cpp @@ -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");