Do not clip to visible content rect on WebPage::getSelectionRect()
authorChanghyup Jwa <ch.jwa@samsung.com>
Mon, 15 Apr 2013 10:56:52 +0000 (19:56 +0900)
committerChanghyup Jwa <ch.jwa@samsung.com>
Tue, 16 Apr 2013 01:33:29 +0000 (10:33 +0900)
[Title] Do not clip to visible content rect on WebPage::getSelectionRect()
[Issue#] N_SE-34525
[Problem] Input field zoom is not working
[Cause] By any reason, if visible content rect is updated before calling
        ewk_view_focused_node_adjust(), getSelectionRect() returns 0
[Solution] Do not clip to visible content rect for FrameSelection

Change-Id: I6b77f52b1b09d2a911d01d6fddaa39fd4f546080

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

index 133662f..f9ba8e8 100755 (executable)
@@ -683,7 +683,7 @@ void WebPage::getSelectionRect(bool isOnlyEditable, IntRect& rect)
     if (selection->isCaret())
         rect = frame->view()->contentsToWindow(selection->absoluteCaretBounds());
     else if (selection->isRange())
-        rect = frame->view()->contentsToWindow(enclosingIntRect(selection->bounds()));
+        rect = frame->view()->contentsToWindow(enclosingIntRect(selection->bounds(false)));
 }
 
 void WebPage::deleteSurroundingText(int offset, int count)