Changeset 91051 in webkit


Ignore:
Timestamp:
Jul 14, 2011 11:07:29 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Patch by Jaehun Lim <ljaehun.lim@samsung.com> on 2011-07-14
Reviewed by Adam Barth.

[EFL] Remove IconDatabase initialization in _ewk_init_body()
https://bugs.webkit.org/show_bug.cgi?id=63491

Make IconDatabase feature optional by removing its initialization from _ewk_init_body().
Now IconDatabase must be fully managed by an application:
if it doesn't want to use it, there's nothing to do. Otherwise, just call
ewk_settings_icon_database_path_set() with the directory path.

  • ewk/ewk_main.cpp:

(_ewk_init_body):

  • ewk/ewk_settings.cpp:

(ewk_settings_icon_database_path_set):

Location:
trunk/Source/WebKit/efl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/efl/ChangeLog

    r90856 r91051  
     12011-07-14  Jaehun Lim  <ljaehun.lim@samsung.com>
     2
     3        Reviewed by Adam Barth.
     4
     5        [EFL] Remove IconDatabase initialization in _ewk_init_body()
     6        https://bugs.webkit.org/show_bug.cgi?id=63491
     7
     8        Make IconDatabase feature optional by removing its initialization from _ewk_init_body().
     9        Now IconDatabase must be fully managed by an application:
     10        if it doesn't want to use it, there's nothing to do. Otherwise, just call
     11        ewk_settings_icon_database_path_set() with the directory path.
     12
     13        * ewk/ewk_main.cpp:
     14        (_ewk_init_body):
     15        * ewk/ewk_settings.cpp:
     16        (ewk_settings_icon_database_path_set):
     17
    1182011-07-12  Joseph Pecoraro  <joepeck@webkit.org>
    219
  • trunk/Source/WebKit/efl/ewk/ewk_main.cpp

    r88929 r91051  
    199199    if (WebCore::makeAllDirectories(wkdir)) {
    200200        ewk_settings_web_database_path_set(wkdir.utf8().data());
    201         ewk_settings_icon_database_path_set(wkdir.utf8().data());
    202201
    203202#if ENABLE(OFFLINE_WEB_APPLICATIONS)
  • trunk/Source/WebKit/efl/ewk/ewk_settings.cpp

    r88533 r91051  
    141141 * Sets directory where to store icon database, opening or closing database.
    142142 *
     143 * Icon database must be opened only once. If you try to set a path when the icon
     144 * database is already open, this function returns @c EINA_FALSE.
     145 *
    143146 * @param directory where to store icon database, must be
    144147 *        write-able, if @c 0 is given, then database is closed
     
    151154
    152155    if (directory) {
     156        if (WebCore::iconDatabase().isEnabled()) {
     157            ERR("IconDatabase is already open: %s", _ewk_icon_database_path);
     158            return EINA_FALSE;
     159        }
     160
    153161        struct stat st;
    154162
Note: See TracChangeset for help on using the changeset viewer.