Bustage fix attempt number ... well, I lost track.

This commit is contained in:
jag%tty.nl 2006-05-15 12:47:53 +00:00
parent 1a27c5a60a
commit 5c9c507378

View File

@ -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