diff --git a/editor/libeditor/EditorEventListener.h b/editor/libeditor/EditorEventListener.h --- a/editor/libeditor/EditorEventListener.h +++ b/editor/libeditor/EditorEventListener.h @@ -108,11 +108,11 @@ /** * EnsureCommitComposition() requests to commit composition if there is. * 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 mCaret; bool mCommitText; bool mInTransaction; diff --git a/editor/libeditor/EditorEventListener.cpp b/editor/libeditor/EditorEventListener.cpp --- a/editor/libeditor/EditorEventListener.cpp +++ b/editor/libeditor/EditorEventListener.cpp @@ -354,11 +354,11 @@ return NS_WARN_IF(!aWidgetEvent) || DetachedFromEditor() || aWidgetEvent->DefaultPrevented(); } bool -EditorEventListener::EnsureCommitCompoisition() +EditorEventListener::EnsureCommitComposition() { MOZ_ASSERT(!DetachedFromEditor()); RefPtr editorBase(mEditorBase); editorBase->CommitComposition(); return !DetachedFromEditor(); @@ -672,11 +672,11 @@ return NS_OK; } // 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; } // XXX The following code is hack for our buggy "click" and "auxclick" // implementation. "auxclick" event was added recently, however, @@ -743,11 +743,11 @@ // FYI: This may be called by HTMLEditorEventListener::MouseDown() even // when the event is not acceptable for committing composition. if (DetachedFromEditor()) { return NS_OK; } - Unused << EnsureCommitCompoisition(); + Unused << EnsureCommitComposition(); return NS_OK; } /** * Drag event implementation diff --git a/editor/libeditor/HTMLEditorEventListener.cpp b/editor/libeditor/HTMLEditorEventListener.cpp --- a/editor/libeditor/HTMLEditorEventListener.cpp +++ b/editor/libeditor/HTMLEditorEventListener.cpp @@ -70,11 +70,11 @@ // Even if it's not acceptable mousedown event (i.e., when mousedown // 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; } WidgetMouseEvent* mousedownEvent = aMouseEvent->WidgetEventPtr()->AsMouseEvent();