Fixed somtimes focus ring is shown twice.
authorYuni Jeong <yhnet.jung@samsung.com>
Wed, 10 Jul 2013 06:31:25 +0000 (15:31 +0900)
committerYuni Jeong <yhnet.jung@samsung.com>
Wed, 10 Jul 2013 07:09:54 +0000 (16:09 +0900)
[Title] Fixed somtimes focus ring is shown twice.
[Issue#] N/A
[Problem] Somtimes, focus ring is shown twice.
[Cause] When tap is performed in handleGestureEvent() function,
        although timer for showing focus ring has expired(focus ring had already shown and hidden),
        function to show focus ring is called again.
[Solution] When tap is performed in handleGestureEvent() function,
           if timer for showing focus ring has expired(focus ring had already shown and hidden),
           focus ring is not shown again.

Change-Id: Ia7a9802c8228d510a184c13d9cc6ae5ab670bee6

Source/WebKit2/UIProcess/API/efl/tizen/FocusRing.cpp

index 14bf75a..e7782ff 100755 (executable)
@@ -82,16 +82,18 @@ void FocusRing::requestToShow(const IntPoint& position, bool immediately)
     if (immediately) {
         if (m_focusRingObject && evas_object_visible_get(m_focusRingObject))
             return;
-        else {
-            if (m_showTimer) {
-                ecore_timer_del(m_showTimer);
-                m_showTimer = 0;
-            }
 
-            m_position = position;
-            show(IntRect());
+        if (!m_showTimer)
             return;
+
+        if (m_showTimer) {
+            ecore_timer_del(m_showTimer);
+            m_showTimer = 0;
         }
+
+        m_position = position;
+        show(IntRect());
+        return;
     }
 
     m_position = position;