Fix to enable Screen Orientation event
authorRyuan Choi <ryuan.choi@samsung.com>
Wed, 22 Aug 2012 02:43:43 +0000 (11:43 +0900)
committerRyuan Choi <ryuan.choi@samsung.com>
Wed, 22 Aug 2012 05:28:41 +0000 (14:28 +0900)
I realized that ENABLE_XXX can not be used between WEBKIT_OPTION_BEGIN and WEBKIT_OPTION_END.
So, screen orientation event is not working.

This patch enable screen orientation event by removing guard of ENABLE_ORIENTATION_EVENTS
as temporal way.

In addition, fix build break when enabled.

Change-Id: I4cf19d022f9cddbaf5b7932f9d44514ed641250f

Source/WebCore/page/Frame.cpp
Source/cmake/OptionsTizen.cmake

index d9567c0..5c9e560 100644 (file)
 #include "TiledBackingStore.h"
 #endif
 
+#if ENABLE(SCREEN_ORIENTATION_SUPPORT) && ENABLE(TIZEN_SCREEN_ORIENTATION_SUPPORT)
+#include "Screen.h"
+#endif
+    
 using namespace std;
 
 namespace WebCore {
index eaddbad..871906c 100755 (executable)
@@ -118,10 +118,8 @@ WEBKIT_OPTION_DEFINE(ENABLE_TIZEN_SUPPORT "Enable Tizen Support" ON)
 WEBKIT_OPTION_DEFINE(ENABLE_TIZEN_SUPPORT_WEBAPP_META_TAG "Enable apple meta tag" ON)
 WEBKIT_OPTION_DEFINE(ENABLE_TIZEN_WEBKIT_EFL_DRT "Enable DumpRenderTree for Tizen WebKit" ON)
 
-IF (ENABLE_ORIENTATION_EVENTS)
-    WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SCREEN_ORIENTATION_SUPPORT ON)
-    ADD_DEFINITIONS(-DENABLE_TIZEN_SCREEN_ORIENTATION_SUPPORT=1)
-ENDIF ()
+WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SCREEN_ORIENTATION_SUPPORT ON)
+ADD_DEFINITIONS(-DENABLE_TIZEN_SCREEN_ORIENTATION_SUPPORT=1)
 
 # IF WEBKIT2
 WEBKIT_OPTION_DEFINE(ENABLE_NOTIFICATIONS "notification" ON)