зеркало из https://github.com/mozilla/pjs.git
Add comment to explain the bustage fix for bug 236408.
This commit is contained in:
Родитель
140a1e27e5
Коммит
87151b2f0e
|
@ -121,6 +121,10 @@ public:
|
||||||
|
|
||||||
virtual ~nsIDocument()
|
virtual ~nsIDocument()
|
||||||
{
|
{
|
||||||
|
// XXX The cleanup of mNodeInfoManager (calling DropDocumentReference and
|
||||||
|
// releasing it) happens in the nsDocument destructor. We'd prefer to
|
||||||
|
// do it here but nsNodeInfoManager is a concrete class that we don't
|
||||||
|
// want to expose to users of the nsIDocument API outside of Gecko.
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual nsresult StartDocumentLoad(const char* aCommand,
|
virtual nsresult StartDocumentLoad(const char* aCommand,
|
||||||
|
|
|
@ -587,6 +587,7 @@ nsDocument::~nsDocument()
|
||||||
mCSSLoader->DropDocumentReference();
|
mCSSLoader->DropDocumentReference();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// XXX Ideally we'd do this cleanup in the nsIDocument destructor.
|
||||||
if (mNodeInfoManager) {
|
if (mNodeInfoManager) {
|
||||||
mNodeInfoManager->DropDocumentReference();
|
mNodeInfoManager->DropDocumentReference();
|
||||||
NS_RELEASE(mNodeInfoManager);
|
NS_RELEASE(mNodeInfoManager);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче