mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Bustage fix attempt number ... well, I lost track.
This commit is contained in:
parent
1a27c5a60a
commit
5c9c507378
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user