[Title] Fix for context menu flicker/Selection handler disappear on double tapping the word in Email APP.
[Issue#] P130917-03737
[Problem] Double tapping on word, context menu flickers and again tapping selected word selection
handler disappears.
[Cause] On double tap UI process and WebProcess, both updates the context menu and selection handler,
due to this flicker shown, again double tapping the selected word we are hiding the selection.
[Solution] Handled the above scenario with proper condtiion for updating context menu and selection handler,
in case of double tap.
Change-Id: I5f617c29572a80ee958650852cf7749d2c12aec3
}
const EditorState& editorState = m_viewImpl->page()->editorState();
- if (!editorState.selectionIsRange && editorState.isContentEditable) {
+ if (!isTextSelectionMode() && !editorState.selectionIsRange && editorState.isContentEditable) {
setIsTextSelectionMode(false);
return;
}
IntPoint contentsPoint = m_viewImpl->transformFromScene().mapPoint(point);
setAutoWordSelectionScheduled(false, IntPoint(0, 0));
- setIsTextSelectionMode(false);
bool result = m_viewImpl->page()->selectClosestWord(contentsPoint, true);
- if (!result)
+ if (!result) {
+ setIsTextSelectionMode(false);
return;
+ }
setIsTextSelectionMode(true);
-
- updateHandlers();
- showContextMenu();
}
} // namespace WebKit