Text Selection Handlers not updated with the correct position
[framework/web/webkit-efl.git] / Source / WebCore / editing / FrameSelection.cpp
index f19b20f..755a83c 100644 (file)
@@ -404,6 +404,11 @@ void FrameSelection::respondToNodeModification(Node* node, bool baseRemoved, boo
 
     if (clearDOMTreeSelection)
         setSelection(VisibleSelection(), DoNotSetFocus);
+
+#if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
+    if(clearRenderTreeSelection && !clearDOMTreeSelection && (startRemoved || endRemoved))
+         m_frame->editor()->client()->respondToChangedSelection(m_frame);
+#endif
 }
 
 static void updatePositionAfterAdoptingTextReplacement(Position& position, CharacterData* node, unsigned offset, unsigned oldLength, unsigned newLength)