[Title] Fixed lock up occur when selecting "select all" or "select" menu.
[Issue#] N/A
[Problem] Lock up occur when seleting "select all" or "select" menu
in case that host keyboard is on and there is input field in ifram.
[Cause] Routine to get editorRect in getSelectionHandlers() differ with editorState().
[Solution] Changed function to get editorRect to nodeRect() in getSelectionHandlers() like editorState().
Change-Id: I2268586144e5198723d22fc2f090d22a76c949af
// If selection rect size is greater than editor rect size because of round operation,
// selection rect size should be changed to editor rect size.
if (size == 1) {
- Element* selectionRoot = focusedFrame->selection()->rootEditableElement();
- if (selectionRoot) {
- IntRect editorRect = focusedFrame->view()->contentsToWindow(selectionRoot->getPixelSnappedRect());
+ Element* rootEditableElement = focusedFrame->selection()->rootEditableElement();
+ if (rootEditableElement) {
+ IntRect editorRect = nodeRect(rootEditableElement);
#if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
if (m_editorState.editorRect != editorRect) {