[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
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());
}
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();