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

This commit is contained in:
jag%tty.nl 2006-05-15 12:47:53 +00:00
Родитель 220904def7
Коммит 7ae471459d
1 изменённых файлов: 12 добавлений и 12 удалений

Просмотреть файл

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