Undo these changes now that we have a better fix for 2.95.2

This commit is contained in:
jag%tty.nl 2006-05-15 20:33:53 +00:00
parent f682c72ab5
commit 6a12f2f513
2 changed files with 3 additions and 3 deletions

View File

@ -664,7 +664,7 @@ nsWebShell::OnLinkClickSync(nsIContent *aContent,
PRBool inherit;
nsresult rv = URIInheritsSecurityContext(aURI, &inherit);
if (NS_FAILED(rv) || inherit) {
nsCOMPtr<nsIDocument> sourceDoc = aContent->GetCurrentDoc();
nsCOMPtr<nsIDocument> sourceDoc = aContent->GetDocument();
if (!sourceDoc) {
// The source is in a 'zombie' document, or not part of a

View File

@ -350,7 +350,7 @@ nsFindContentIterator::SetupInnerIterator(nsIContent* aContent)
{
NS_ASSERTION(aContent && !aContent->IsNativeAnonymous(), "invalid call");
nsIDocument* doc = aContent->GetCurrentDoc();
nsIDocument* doc = aContent->GetDocument();
nsIPresShell* shell = doc ? doc->GetShellAt(0) : nsnull;
if (!shell)
return;
@ -821,7 +821,7 @@ PRBool nsFind::IsVisibleNode(nsIDOMNode *aDOMNode)
if (!content)
return PR_FALSE;
nsCOMPtr<nsIDocument> doc = content->GetCurrentDoc();
nsCOMPtr<nsIDocument> doc = content->GetDocument();
if (!doc)
return PR_FALSE;