зеркало из https://github.com/mozilla/pjs.git
Undo these changes now that we have a better fix for 2.95.2
This commit is contained in:
Родитель
fbad794eb2
Коммит
a6b27fef09
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче