diff --git a/docshell/base/nsWebShell.cpp b/docshell/base/nsWebShell.cpp index b011fb44a98a..1c4c477d2e55 100644 --- a/docshell/base/nsWebShell.cpp +++ b/docshell/base/nsWebShell.cpp @@ -664,7 +664,7 @@ nsWebShell::OnLinkClickSync(nsIContent *aContent, PRBool inherit; nsresult rv = URIInheritsSecurityContext(aURI, &inherit); if (NS_FAILED(rv) || inherit) { - nsCOMPtr sourceDoc = aContent->GetCurrentDoc(); + nsCOMPtr sourceDoc = aContent->GetDocument(); if (!sourceDoc) { // The source is in a 'zombie' document, or not part of a diff --git a/embedding/components/find/src/nsFind.cpp b/embedding/components/find/src/nsFind.cpp index 9d4d2e136f6c..a140a7547bef 100644 --- a/embedding/components/find/src/nsFind.cpp +++ b/embedding/components/find/src/nsFind.cpp @@ -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 doc = content->GetCurrentDoc(); + nsCOMPtr doc = content->GetDocument(); if (!doc) return PR_FALSE;