Modified to early convert the focused node rect for OSP
authorbunam.jeon <bunam.jeon@samsung.com>
Mon, 3 Jun 2013 08:07:53 +0000 (17:07 +0900)
committerbunam.jeon <bunam.jeon@samsung.com>
Mon, 3 Jun 2013 08:07:53 +0000 (17:07 +0900)
[Title] Modified to early convert the focused node rect for OSP
[Issue#] N/A
[Problem] N/A
[Cause] In order to distribute the exact coordinates for OSP.
[Solution] early convert the focused node rect

Change-Id: I2350ec0a07e0f68524c3a3b1930332b236d3eaca

Source/WebKit2/UIProcess/API/efl/ewk_view.cpp
Source/WebKit2/UIProcess/API/efl/tizen/FormDataCandidate.cpp

index 55a6d79..dae2ce5 100644 (file)
@@ -1631,7 +1631,7 @@ void ewk_view_text_change_in_textfield(Evas_Object* ewkView, const String& name,
 
     smartData->api->formdata_candidate_update_data(smartData, candidateList);
 
-    IntRect inputFieldRect = impl->pageClient->focusedNodeRect();
+    IntRect inputFieldRect = impl->transformToScene().mapRect(impl->pageClient->focusedNodeRect());
     smartData->api->formdata_candidate_show(smartData, inputFieldRect.x(), inputFieldRect.y(), inputFieldRect.width(), inputFieldRect.height());
 }
 
index 5d0e292..0ee2d3c 100755 (executable)
@@ -60,7 +60,7 @@ void FormDataCandidate::updateFormData(const Vector<String>& data) {
 void FormDataCandidate::show(const WebCore::IntRect& rect)
 {
     m_isShowing = true;
-    m_nodeRect = m_viewImpl->transformToScene().mapRect(rect);
+    m_nodeRect = rect;
     m_popup->updateFormDataPopup(m_nodeRect, m_viewImpl->page()->scaleFactor());
     m_popup->move(m_nodeRect);
     m_popup->show();