Fixed lock up occur when selecting "select all" or "select" menu.
authorYuni Jeong <yhnet.jung@samsung.com>
Fri, 21 Jun 2013 08:19:33 +0000 (17:19 +0900)
committerYuni Jeong <yhnet.jung@samsung.com>
Fri, 21 Jun 2013 13:49:38 +0000 (22:49 +0900)
[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

Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp

index e73fcd7..96e9cd2 100644 (file)
@@ -1457,9 +1457,9 @@ void WebPage::getSelectionHandlers(IntRect& leftRect, IntRect& rightRect)
         // 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) {