[Title] Text Selection Handlers not updated with
the correct position
[Issue] NABI-RSA-42952
[Problem] Text Selection Handlers not updated
with the correct position when content
is modified by JS.
[Cause] No notification was being sent to UI when
selection was being removed and modified by JS
[Solution] Sending update event to UI when selection get
modified by JS.
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)
EWK_VIEW_IMPL_GET_OR_RETURN(smartData, impl, false);
#if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION) && ENABLE(TIZEN_WEBKIT2_FOR_MOVING_TEXT_SELECTION_HANDLE_FROM_OSP)
- if (impl->pageClient->isTextSelectionMode() && impl->pageClient->isTextSelectionHandleDowned())
+ if (impl->pageClient->isTextSelectionMode() && impl->pageClient->isTextSelectionHandleDowned()) {
+ impl->pageClient->initTextSelectionHandlesMouseDownedStatus();
return true;
+ }
#endif
#if ENABLE(TIZEN_WEBKIT2_FOCUS_RING)
edje_object_signal_emit(m_icon, "mouse,up,1", "handle");
#endif
+ if (m_textSelection->isEnabled())
+ setIsMouseDowned(false);
+
m_textSelection->handleMouseUp(this, m_mousePosition);
}