Fix the problem with pop-up flashes when text changed in input tag
authorbunam.jeon <bunam.jeon@samsung.com>
Thu, 11 Apr 2013 07:27:02 +0000 (16:27 +0900)
committerGerrit Code Review <gerrit2@kim11>
Thu, 11 Apr 2013 08:27:30 +0000 (17:27 +0900)
[Title] Fix the  problem with pop-up flashes when text changed in input tag
[Issue#] N/A
[Problem] pop-up flashes when text changed in input tag
[Cause] N/A
[Solution] Change the initialization method

Change-Id: I81b62c4f9c6cd94bf1369605975e120e119eaaa4

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

index 083bf4c..3ec0a0a 100755 (executable)
@@ -1611,9 +1611,6 @@ void ewk_view_text_change_in_textfield(Evas_Object* ewkView, const String& name,
 
     smartData->api->formdata_candidate_update_data(smartData, candidateList);
 
-    if (!smartData->api->formdata_candidate_is_showing(smartData))
-        smartData->api->formdata_candidate_hide(smartData);
-
     IntRect inputFieldRect = impl->pageClient->focusedNodeRect();
     smartData->api->formdata_candidate_show(smartData, inputFieldRect.x(), inputFieldRect.y(), inputFieldRect.width(), inputFieldRect.height());
 }
index 346c473..b04ec8c 100755 (executable)
@@ -67,6 +67,8 @@ FormDataCandidatePopup::FormDataCandidatePopup(Evas_Object* object, const String
 
     if (!elm_layout_file_set(m_icon, theme.utf8().data(), path.utf8().data()))
         return;
+
+    m_list = elm_genlist_add(m_icon);
 }
 
 FormDataCandidatePopup::~FormDataCandidatePopup()
@@ -101,9 +103,7 @@ void FormDataCandidatePopup::hide()
 void FormDataCandidatePopup::updateFormDataPopup(const IntRect& inputFieldRect, float scaleFactor)
 {
     if (m_list)
-        evas_object_del(m_list);
-
-    m_list = elm_genlist_add(m_icon);
+        elm_genlist_clear(m_list);
 
     Evas_Object* m_borderUp = elm_bg_add(m_icon);
     Evas_Object* m_borderDown = elm_bg_add(m_icon);