Chromium Code Reviews| Index: Source/core/editing/InputMethodController.cpp |
| diff --git a/Source/core/editing/InputMethodController.cpp b/Source/core/editing/InputMethodController.cpp |
| index 3609e75405069a27fc42c957cd5e295daa8802a6..f50dc088a4f953724c8e2fe5acd37c8a47ed1cf5 100644 |
| --- a/Source/core/editing/InputMethodController.cpp |
| +++ b/Source/core/editing/InputMethodController.cpp |
| @@ -259,7 +259,9 @@ void InputMethodController::setComposition(const String& text, const Vector<Comp |
| // We should send a compositionstart event only when the given text is not empty because this |
| // function doesn't create a composition node when the text is empty. |
| if (!text.isEmpty()) { |
| - target->dispatchEvent(CompositionEvent::create(EventTypeNames::compositionstart, m_frame.domWindow(), m_frame.selectedText(), underlines)); |
| + RefPtrWillBeRawPtr<CompositionEvent> compositionStartEvent = CompositionEvent::create(EventTypeNames::compositionstart, m_frame.domWindow(), m_frame.selectedText(), underlines); |
| + if (!target->dispatchEvent(compositionStartEvent)) |
| + return; |
|
kochi
2014/06/06 05:20:41
You have to dispatch compositionend event for this
|
| event = CompositionEvent::create(EventTypeNames::compositionupdate, m_frame.domWindow(), text, underlines); |
| } |
| } else { |