зеркало из https://github.com/mozilla/gecko-dev.git
Bug 745494 - Hide the anonymous editing UI before its too late; r=roc a=blocking
This commit is contained in:
Родитель
f28b30844b
Коммит
2bd8c30ca7
|
@ -136,10 +136,6 @@ nsHTMLEditor::~nsHTMLEditor()
|
||||||
// we ignore the error.
|
// we ignore the error.
|
||||||
nsCOMPtr<nsIEditActionListener> mListener = do_QueryInterface(mRules);
|
nsCOMPtr<nsIEditActionListener> mListener = do_QueryInterface(mRules);
|
||||||
RemoveEditActionListener(mListener);
|
RemoveEditActionListener(mListener);
|
||||||
|
|
||||||
// Clean up after our anonymous content -- we don't want these nodes to
|
|
||||||
// stay around (which they would, since the frames have an owning reference).
|
|
||||||
HideAnonymousEditingUIs();
|
|
||||||
|
|
||||||
//the autopointers will clear themselves up.
|
//the autopointers will clear themselves up.
|
||||||
//but we need to also remove the listeners or we have a leak
|
//but we need to also remove the listeners or we have a leak
|
||||||
|
@ -345,6 +341,10 @@ nsHTMLEditor::PreDestroy(bool aDestroyingFrames)
|
||||||
RemoveOverrideStyleSheet(mStyleSheetURLs[0]);
|
RemoveOverrideStyleSheet(mStyleSheetURLs[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Clean up after our anonymous content -- we don't want these nodes to
|
||||||
|
// stay around (which they would, since the frames have an owning reference).
|
||||||
|
HideAnonymousEditingUIs();
|
||||||
|
|
||||||
return nsPlaintextEditor::PreDestroy(aDestroyingFrames);
|
return nsPlaintextEditor::PreDestroy(aDestroyingFrames);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче