Disabled touch adjust feature in case of SDK version.
authorYuni Jeong <yhnet.jung@samsung.com>
Thu, 1 Aug 2013 04:58:42 +0000 (13:58 +0900)
committerYuni Jeong <yhnet.jung@samsung.com>
Thu, 1 Aug 2013 04:58:42 +0000 (13:58 +0900)
[Title] Disabled touch adjust feature in case of SDK version.
[Issue#] N_SE-47502
[Problem] Link menu is highlighted first while selecting the text around link menu.
[Cause] Focus ring is displayed for link menu by touch adjust feature in spite of longTap on text.
[Solution] Touch adjust feature is not needed in case of SDK version.
           So, disabled touch adjust feature.

Change-Id: I83b334350ad10a4023a5da2b045ac8a9d8b2a082

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

index f74b956..3d7211e 100755 (executable)
@@ -899,7 +899,6 @@ static IntRect getNodeRect(Node* node, Node* focusableNode, bool isImage)
 
 #if ENABLE(TIZEN_WEBKIT2_HIT_TEST)
 #if ENABLE(TIZEN_WEBKIT2_FOCUS_RING)
-#if ENABLE(TOUCH_ADJUSTMENT)
 static bool isClickableOrFocusable(Node* focusableNode)
 {
 
@@ -927,6 +926,7 @@ static bool isClickableOrFocusable(Node* focusableNode)
    return false;
 }
 
+#if ENABLE(TOUCH_ADJUSTMENT)
 static IntRect getFocusedRect(HitTestResult hitTestResult, Page* page, const IntPoint& point, const IntSize& area)
 #else
 static IntRect getFocusedRect(HitTestResult hitTestResult, Page* page)
index 19d186e..1275fc5 100644 (file)
@@ -236,8 +236,8 @@ FIND_PACKAGE(EFL_ASSIST REQUIRED)
 
 ADD_DEFINITIONS(-DENABLE_GESTURE_EVENTS=1)
 
-SET(ENABLE_TOUCH_ADJUSTMENT 1)
-ADD_DEFINITIONS(-DENABLE_TOUCH_ADJUSTMENT=1)
+SET(ENABLE_TOUCH_ADJUSTMENT 0)
+ADD_DEFINITIONS(-DENABLE_TOUCH_ADJUSTMENT=0)
 
 IF (FONT_BACKEND STREQUAL "freetype")
     FIND_PACKAGE(Freetype REQUIRED)