Merge "Do not call eglMakeCurrent multiple times." into 2.0_beta
authorGyongJin Joung <gj421.joung@tizendev.org>
Thu, 6 Sep 2012 05:39:44 +0000 (14:39 +0900)
committerGerrit Code Review <gerrit2@localhost>
Thu, 6 Sep 2012 05:39:44 +0000 (14:39 +0900)
Source/WTF/wtf/Platform.h [changed mode: 0644->0755]
Source/WebKit2/UIProcess/API/efl/ewk_view.cpp
Source/WebKit2/UIProcess/efl/WebContextEfl.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 44c595c..395e9c1
 #define ENABLE_TIZEN_TILE_MATRIX_LIST 1 /* KwangHyuk Kim(hyuki.kim@samsung.com) : Tile matrix for each different zoom level */
 #define ENABLE_TIZEN_ZOOM_CHECK_BEFORE_PAINTING 1 /* JungJik Lee(jungjik.lee@samsung.com) : background color set for tiled view */
 #define ENABLE_TIZEN_TILE_REUSE_ALREADY_CREATED 1 /* JungJik Lee(jungjik.lee@samsung.com) : To reuse tiles already created without free operation */
+#define ENABLE_TIZEN_ICON_DATABASE 1 /* Nikhil Bansal(n.bansal@samsung.com) : To set the default iconDatabasePath for favicon */
 #define ENABLE_TIZEN_ERROR_PAGE 1 /* Dongjae Kim(dongjae1.kim@samsung.com) : Not use webview's error page.*/
 #define ENABLE_TIZEN_CREATE_FRAME_VIEW_ALWAYS 1 /* Kamil Blank(k.blank@samsung.com) Dongjae Kim(dongjae1.kim@samsung.com) : Create FrameView Always*/
 #define ENABLE_TIZEN_FIX_EMAIL_ONE_TILE_DISPLAY 1 /* Jungjik Lee(jungjik.lee@samsung.com): Fixed email display only one tile area*/
index 71e670c..cdbf605 100755 (executable)
 #include <WebCore/NotImplemented.h>
 #include <cairo.h>
 
+#if ENABLE(TIZEN_ICON_DATABASE)
+#include "WKContextPrivate.h"
+#include "WebContext.h"
+#endif
+
 #if ENABLE(TIZEN_ERROR_PAGE)
 #include "WebErrorPageEfl.h"
 #endif
@@ -1570,6 +1575,12 @@ Evas_Object* ewk_view_add_with_context(Evas* canvas, Ewk_Context* context)
     EINA_SAFETY_ON_NULL_RETURN_VAL(canvas, 0);
     EINA_SAFETY_ON_NULL_RETURN_VAL(context, 0);
 
+#if ENABLE(TIZEN_ICON_DATABASE)
+    //set default iconDatabasePath
+    String platformDefaultPath = toImpl(ewk_context_WKContext_get(context))->iconDatabasePath();
+    WKContextSetIconDatabasePath(ewk_context_WKContext_get(context), WKStringCreateWithUTF8CString(platformDefaultPath.utf8().data()));
+#endif
+
     Evas_Object* ewkView = _ewk_view_base_add(canvas, ewk_context_WKContext_get(context), 0);
 
     EWK_VIEW_SD_GET_OR_RETURN(ewkView, smartData, ewkView);
old mode 100644 (file)
new mode 100755 (executable)
index 60b844e..b75e610
@@ -87,6 +87,10 @@ String WebContext::platformDefaultDatabaseDirectory() const
 
 String WebContext::platformDefaultIconDatabasePath() const
 {
+#if ENABLE(TIZEN_ICON_DATABASE)
+    return WebCore::pathByAppendingComponent(WebCore::homeDirectoryPath(), ".webkit/iconDatabase/WebpageIcons.db");
+#endif
+
     notImplemented();
     return "";
 }