summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/EditorEventListener.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-06-26 13:26:07 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-06-26 13:26:07 +0200
commit783f57d74b0caf84cec01a0ae43a2a8cb8697673 (patch)
tree4f553014261185615fb198cdeb270f2437b22d48 /editor/libeditor/EditorEventListener.cpp
parent5a559eb6c9c9cf05206506b0ea62fe9337834b9c (diff)
downloadUXP-783f57d74b0caf84cec01a0ae43a2a8cb8697673.tar
UXP-783f57d74b0caf84cec01a0ae43a2a8cb8697673.tar.gz
UXP-783f57d74b0caf84cec01a0ae43a2a8cb8697673.tar.lz
UXP-783f57d74b0caf84cec01a0ae43a2a8cb8697673.tar.xz
UXP-783f57d74b0caf84cec01a0ae43a2a8cb8697673.zip
Issue #12 Part 1: Stop using nsIDOMEvent in UpdateIMEComposition.
Diffstat (limited to 'editor/libeditor/EditorEventListener.cpp')
-rw-r--r--editor/libeditor/EditorEventListener.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/libeditor/EditorEventListener.cpp b/editor/libeditor/EditorEventListener.cpp
index f90458d3e..69833ce84 100644
--- a/editor/libeditor/EditorEventListener.cpp
+++ b/editor/libeditor/EditorEventListener.cpp
@@ -791,7 +791,11 @@ EditorEventListener::HandleText(nsIDOMEvent* aTextEvent)
return NS_OK;
}
- return mEditorBase->UpdateIMEComposition(aTextEvent);
+ // AsCompositionEvent() should always return non-nullptr. Anyway, it'll be
+ // checked in TextEditor::UpdateIMEComposition().
+ WidgetCompositionEvent* compositionChangeEvent =
+ aTextEvent->WidgetEventPtr()->AsCompositionEvent();
+ return mEditorBase->UpdateIMEComposition(compositionChangeEvent);
}
/**