зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1388001 - part3: Remove nsIEditor argument of nsIHTMLDocument::TearingDownEditor() since it's unused r=smaug
nsIHTMLDocument::TearingDownEditor() takes nsIEditor as an argument. However, it's not used in it. So, we can remove it. MozReview-Commit-ID: KUmIsnVGB6H --HG-- extra : rebase_source : ddd344b9df18e0b33d54d2f99e6335449f55df81
This commit is contained in:
Родитель
d66337db9a
Коммит
9ee491b79f
|
@ -2661,7 +2661,7 @@ NotifyEditableStateChange(nsINode *aNode, nsIDocument *aDocument)
|
|||
}
|
||||
|
||||
void
|
||||
nsHTMLDocument::TearingDownEditor(nsIEditor *aEditor)
|
||||
nsHTMLDocument::TearingDownEditor()
|
||||
{
|
||||
if (IsEditingOn()) {
|
||||
EditingState oldState = mEditingState;
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#include "mozilla/dom/HTMLSharedElement.h"
|
||||
#include "mozilla/dom/BindingDeclarations.h"
|
||||
|
||||
class nsIEditor;
|
||||
class nsIURI;
|
||||
class nsIDocShell;
|
||||
class nsICachingChannel;
|
||||
|
@ -105,7 +104,7 @@ public:
|
|||
virtual void AddedForm() override;
|
||||
virtual void RemovedForm() override;
|
||||
virtual int32_t GetNumFormsSynchronous() override;
|
||||
virtual void TearingDownEditor(nsIEditor *aEditor) override;
|
||||
virtual void TearingDownEditor() override;
|
||||
virtual void SetIsXHTML(bool aXHTML) override
|
||||
{
|
||||
mType = (aXHTML ? eXHTML : eHTML);
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
#include "nsCompatibility.h"
|
||||
|
||||
class nsIContent;
|
||||
class nsIEditor;
|
||||
class nsContentList;
|
||||
|
||||
#define NS_IHTMLDOCUMENT_IID \
|
||||
|
@ -112,7 +111,7 @@ public:
|
|||
/**
|
||||
* Called when this nsIHTMLDocument's editor is destroyed.
|
||||
*/
|
||||
virtual void TearingDownEditor(nsIEditor *aEditor) = 0;
|
||||
virtual void TearingDownEditor() = 0;
|
||||
|
||||
virtual void SetIsXHTML(bool aXHTML) = 0;
|
||||
|
||||
|
|
|
@ -554,7 +554,7 @@ nsEditingSession::TearDownEditorOnWindow(mozIDOMWindowProxy *aWindow)
|
|||
|
||||
RefPtr<HTMLEditor> htmlEditor = docShell->GetHTMLEditor();
|
||||
if (stopEditing) {
|
||||
htmlDoc->TearingDownEditor(htmlEditor);
|
||||
htmlDoc->TearingDownEditor();
|
||||
}
|
||||
|
||||
if (mStateMaintainer && htmlEditor) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче