зеркало из https://github.com/mozilla/pjs.git
Bustage fix attempt number ... well, I lost track.
This commit is contained in:
Родитель
220904def7
Коммит
7ae471459d
|
@ -96,18 +96,6 @@ public:
|
|||
"No nsINodeInfo passed to nsIContent, PREPARE TO CRASH!!!");
|
||||
}
|
||||
|
||||
/**
|
||||
* DEPRECATED - Use GetCurrentDoc or GetOwnerDoc.
|
||||
* Get the document for this content.
|
||||
* @return the document
|
||||
*/
|
||||
nsIDocument *GetDocument() const
|
||||
{
|
||||
// return GetCurrentDoc();
|
||||
// attempt to fix 2.95.2 bustage by inlining GetCurrentDoc()'s body
|
||||
return IsInDoc() ? GetOwnerDoc() : nsnull;
|
||||
}
|
||||
|
||||
/**
|
||||
* Bind this content node to a tree. If this method throws, the caller must
|
||||
* call UnbindFromTree() on the node. In the typical case of a node being
|
||||
|
@ -175,6 +163,18 @@ public:
|
|||
return IsInDoc() ? GetOwnerDoc() : nsnull;
|
||||
}
|
||||
|
||||
/**
|
||||
* DEPRECATED - Use GetCurrentDoc or GetOwnerDoc.
|
||||
* Get the document for this content.
|
||||
* @return the document
|
||||
*/
|
||||
nsIDocument *GetDocument() const
|
||||
{
|
||||
// return GetCurrentDoc();
|
||||
// attempt to fix 2.95.2 bustage by inlining GetCurrentDoc()'s body
|
||||
return IsInDoc() ? GetOwnerDoc() : nsnull;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get whether this content is C++-generated anonymous content
|
||||
* @see nsIAnonymousContentCreator
|
||||
|
|
Загрузка…
Ссылка в новой задаче