Bug 1497815 - Rename EditorEventListener::EnsureCommitCompoisition() to EditorEventListener::EnsureCommitComposition() r=m_kato

Just fixing typo of the method name.

Differential Revision: https://phabricator.services.mozilla.com/D8336

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Masayuki Nakano 2018-10-11 09:12:15 +00:00
Родитель 49240d00af
Коммит 1c08e312af
3 изменённых файлов: 5 добавлений и 5 удалений

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

@ -356,7 +356,7 @@ EditorEventListener::DetachedFromEditorOrDefaultPrevented(
}
bool
EditorEventListener::EnsureCommitCompoisition()
EditorEventListener::EnsureCommitComposition()
{
MOZ_ASSERT(!DetachedFromEditor());
RefPtr<EditorBase> editorBase(mEditorBase);
@ -674,7 +674,7 @@ EditorEventListener::MouseClick(WidgetMouseEvent* aMouseClickEvent)
// If we got a mouse down inside the editing area, we should force the
// IME to commit before we change the cursor position.
if (!EnsureCommitCompoisition()) {
if (!EnsureCommitComposition()) {
return NS_OK;
}
@ -745,7 +745,7 @@ EditorEventListener::MouseDown(MouseEvent* aMouseEvent)
if (DetachedFromEditor()) {
return NS_OK;
}
Unused << EnsureCommitCompoisition();
Unused << EnsureCommitComposition();
return NS_OK;
}

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

@ -110,7 +110,7 @@ protected:
* Returns false if the editor is detached from the listener, i.e.,
* impossible to continue to handle the event. Otherwise, true.
*/
MOZ_MUST_USE bool EnsureCommitCompoisition();
MOZ_MUST_USE bool EnsureCommitComposition();
EditorBase* mEditorBase; // weak
RefPtr<nsCaret> mCaret;

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

@ -72,7 +72,7 @@ HTMLEditorEventListener::MouseDown(MouseEvent* aMouseEvent)
// event is fired outside of the active editing host), we need to commit
// composition because it will be change the selection to the clicked
// point. Then, we won't be able to commit the composition.
if (!EnsureCommitCompoisition()) {
if (!EnsureCommitComposition()) {
return NS_OK;
}