return;
EditorState state = m_page->editorState();
-#if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
+
+#if ENABLE(TIZEN_ISF_PORT) || ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
+ const EditorState& currentState = m_page->currentEditorState();
+ if (currentState.hasComposition && currentState.inputMethodContextID != state.inputMethodContextID)
+ didCancelComposition(reinterpret_cast<Node*>(currentState.inputMethodContextID));
+
m_page->setEditorState(state);
#endif
PassRefPtr<Plugin> createPlugin(WebFrame*, WebCore::HTMLPlugInElement*, const Plugin::Parameters&);
EditorState editorState() const;
-#if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
- void setEditorState(const EditorState& editorState) { m_editorState = editorState;}
+
+#if ENABLE(TIZEN_ISF_PORT) || ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
+ const EditorState& currentEditorState() { return m_editorState; }
+ void setEditorState(const EditorState& editorState) { m_editorState = editorState; }
#endif
String renderTreeExternalRepresentation() const;
WebCore::IntRect m_focusedRect;
#endif
-#if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
+#if ENABLE(TIZEN_ISF_PORT) || ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
EditorState m_editorState;
#endif