зеркало из https://github.com/mozilla/pjs.git
Backed out changeset b501122477cc because I figured out the problem
This commit is contained in:
Родитель
213ecdd292
Коммит
bb5657eb83
|
@ -159,9 +159,6 @@ nsEditor::nsEditor()
|
|||
, mPhonetic(nsnull)
|
||||
{
|
||||
//initialize member variables here
|
||||
#ifdef NS_DEBUG
|
||||
printf("xxxehsan Editor 0x%p created\n", this);
|
||||
#endif
|
||||
}
|
||||
|
||||
nsEditor::~nsEditor()
|
||||
|
@ -171,10 +168,6 @@ nsEditor::~nsEditor()
|
|||
delete mPhonetic;
|
||||
|
||||
NS_IF_RELEASE(mViewManager);
|
||||
|
||||
#ifdef NS_DEBUG
|
||||
printf("xxxehsan Editor 0x%p created\n", this);
|
||||
#endif
|
||||
}
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_CLASS(nsEditor)
|
||||
|
@ -244,13 +237,6 @@ nsEditor::Init(nsIDOMDocument *aDoc, nsIPresShell* aPresShell, nsIContent *aRoot
|
|||
|
||||
nsCOMPtr<nsINode> document = do_QueryInterface(aDoc);
|
||||
document->AddMutationObserver(this);
|
||||
#ifdef NS_DEBUG
|
||||
{
|
||||
nsCOMPtr<nsISupports> docSupports = do_QueryInterface(document);
|
||||
printf("xxxehsan Editor 0x%p registered a mutation observer 0x%p\n",
|
||||
this, docSupports.get());
|
||||
}
|
||||
#endif
|
||||
|
||||
// Set up the DTD
|
||||
// XXX - in the long run we want to get this from the document, but there
|
||||
|
@ -540,14 +526,8 @@ nsEditor::PreDestroy(PRBool aDestroyingFrames)
|
|||
NotifyDocumentListeners(eDocumentToBeDestroyed);
|
||||
|
||||
nsCOMPtr<nsINode> document = do_QueryReferent(mDocWeak);
|
||||
if (document) {
|
||||
if (document)
|
||||
document->RemoveMutationObserver(this);
|
||||
#ifdef NS_DEBUG
|
||||
nsCOMPtr<nsISupports> docSupports = do_QueryInterface(document);
|
||||
printf("xxxehsan Editor 0x%p removed a mutation observer 0x%p\n",
|
||||
this, docSupports.get());
|
||||
#endif
|
||||
}
|
||||
|
||||
// Unregister event listeners
|
||||
RemoveEventListeners();
|
||||
|
|
Загрузка…
Ссылка в новой задаче