Changeset 106904 in webkit


Ignore:
Timestamp:
Feb 6, 2012 9:44:19 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Adopt C++ style using camelCase and full variable names.
https://bugs.webkit.org/show_bug.cgi?id=76378

Patch by JungJik Lee <jungjik.lee@samsung.com> on 2012-02-06
Reviewed by Andreas Kling.

Modify the code to use camelCase and spell out variable names instead of using abbreviations.
Modify the comments which do not match with actual parameters and correct misspelled words.
Adopt EFL Coding style in header files.
The logic of the code is not changed.

  • ewk/ewk_cookies.h:
  • ewk/ewk_frame.cpp:

(ewk_frame_selection_get):
(ewk_frame_feed_focus_in):
(EWKPrivate::coreFrame):

  • ewk/ewk_frame.h:
  • ewk/ewk_history.cpp:

(ewk_history_item_new):
(ewk_history_item_title_get):
(ewk_history_item_title_alternate_get):
(ewk_history_item_uri_get):
(ewk_history_item_uri_original_get):

  • ewk/ewk_network.h:
  • ewk/ewk_tiled_backing_store.cpp:

(_Ewk_Tiled_Backing_Store_Item):
(_Ewk_Tiled_Backing_Store_Data):
(_ewk_tiled_backing_store_tile_associate):
(_ewk_tiled_backing_store_tile_dissociate):
(_ewk_tiled_backing_store_pre_render_request_clear):
(_ewk_tiled_backing_store_pre_render_request_process_single):
(_ewk_tiled_backing_store_item_fill):
(_ewk_tiled_backing_store_item_add):
(_ewk_tiled_backing_store_item_smooth_scale_set):
(_ewk_tiled_backing_store_view_cols_end_add):
(_ewk_tiled_backing_store_view_rows_all_del):
(_ewk_tiled_backing_store_render):
(_ewk_tiled_backing_store_mem_dbg):
(_ewk_tiled_backing_store_sig_usr):
(_ewk_tiled_backing_store_smart_add):
(_ewk_tiled_backing_store_smart_del):
(_ewk_tiled_backing_store_smart_move):
(_ewk_tiled_backing_store_smart_resize):
(_ewk_tiled_backing_store_recalc_renderers):
(_ewk_tiled_backing_store_view_dbg):
(_ewk_tiled_backing_store_view_wrap_up):
(_ewk_tiled_backing_store_view_wrap_down):
(_ewk_tiled_backing_store_view_wrap_left):
(_ewk_tiled_backing_store_view_refill):
(_ewk_tiled_backing_store_view_pos_apply):
(_ewk_tiled_backing_store_smart_calculate_offset_force):
(_ewk_tiled_backing_store_smart_calculate_offset):
(_ewk_tiled_backing_store_smart_calculate_pos):
(_ewk_tiled_backing_store_smart_calculate):
(_ewk_tiled_backing_store_scroll_full_offset_set_internal):
(ewk_tiled_backing_store_scroll_full_offset_set):
(ewk_tiled_backing_store_scroll_full_offset_add):
(_ewk_tiled_backing_store_zoom_set_internal):
(ewk_tiled_backing_store_zoom_set):
(ewk_tiled_backing_store_zoom_weak_set):
(ewk_tiled_backing_store_fix_offsets):
(ewk_tiled_backing_store_flush):
(ewk_tiled_backing_store_pre_render_region):
(ewk_tiled_backing_store_pre_render_relative_radius):

  • ewk/ewk_tiled_backing_store.h:

(_Ewk_Tile):

  • ewk/ewk_tiled_matrix.cpp:

(_Ewk_Tile_Matrix):
(_ewk_tile_matrix_cell_free):
(_ewk_tile_matrix_tile_free):
(ewk_tile_matrix_new):
(ewk_tile_matrix_free):
(ewk_tile_matrix_unused_cache_get):
(ewk_tile_matrix_tile_exact_get):
(ewk_tile_matrix_tile_new):
(ewk_tile_matrix_tile_put):
(ewk_tile_matrix_dbg):
(ewk_tile_matrix_freeze):
(ewk_tile_matrix_thaw):

  • ewk/ewk_tiled_matrix.h:
  • ewk/ewk_tiled_model.cpp:

(tile_account):
(ewk_tile_updates_process):
(ewk_tile_unused_cache_tile_put):
(ewk_tile_unused_cache_dbg):

  • ewk/ewk_tiled_model.h:
  • ewk/ewk_util.h:
  • ewk/ewk_view.cpp:

(_Ewk_View_Private_Data):
(_ewk_view_smart_focus_in):
(_ewk_view_smart_pre_render_region):
(ewk_view_pre_render_region):
(ewk_view_toolbars_visible_get):
(ewk_view_statusbar_visible_get):
(ewk_view_scrollbars_visible_get):
(ewk_view_menubar_visible_get):
(ewk_view_zoom_range_set):

  • ewk/ewk_view.h:
  • ewk/ewk_view_single.cpp:

(_ewk_view_single_smart_repaints_process):

  • ewk/ewk_view_tiled.cpp:

(_ewk_view_tiled_smart_backing_store_add):
(_ewk_view_tiled_smart_add):
(ewk_view_tiled_unused_cache_get):
(ewk_view_tiled_unused_cache_set):

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

Legend:

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

    r106772 r106904  
     12012-02-06  JungJik Lee  <jungjik.lee@samsung.com>
     2
     3        [EFL] Adopt C++ style using camelCase and full variable names.
     4        https://bugs.webkit.org/show_bug.cgi?id=76378
     5
     6        Reviewed by Andreas Kling.
     7
     8        Modify the code to use camelCase and spell out variable names instead of using abbreviations.
     9        Modify the comments which do not match with actual parameters and correct misspelled words.
     10        Adopt EFL Coding style in header files.
     11        The logic of the code is not changed.
     12
     13        * ewk/ewk_cookies.h:
     14        * ewk/ewk_frame.cpp:
     15        (ewk_frame_selection_get):
     16        (ewk_frame_feed_focus_in):
     17        (EWKPrivate::coreFrame):
     18        * ewk/ewk_frame.h:
     19        * ewk/ewk_history.cpp:
     20        (ewk_history_item_new):
     21        (ewk_history_item_title_get):
     22        (ewk_history_item_title_alternate_get):
     23        (ewk_history_item_uri_get):
     24        (ewk_history_item_uri_original_get):
     25        * ewk/ewk_network.h:
     26        * ewk/ewk_tiled_backing_store.cpp:
     27        (_Ewk_Tiled_Backing_Store_Item):
     28        (_Ewk_Tiled_Backing_Store_Data):
     29        (_ewk_tiled_backing_store_tile_associate):
     30        (_ewk_tiled_backing_store_tile_dissociate):
     31        (_ewk_tiled_backing_store_pre_render_request_clear):
     32        (_ewk_tiled_backing_store_pre_render_request_process_single):
     33        (_ewk_tiled_backing_store_item_fill):
     34        (_ewk_tiled_backing_store_item_add):
     35        (_ewk_tiled_backing_store_item_smooth_scale_set):
     36        (_ewk_tiled_backing_store_view_cols_end_add):
     37        (_ewk_tiled_backing_store_view_rows_all_del):
     38        (_ewk_tiled_backing_store_render):
     39        (_ewk_tiled_backing_store_mem_dbg):
     40        (_ewk_tiled_backing_store_sig_usr):
     41        (_ewk_tiled_backing_store_smart_add):
     42        (_ewk_tiled_backing_store_smart_del):
     43        (_ewk_tiled_backing_store_smart_move):
     44        (_ewk_tiled_backing_store_smart_resize):
     45        (_ewk_tiled_backing_store_recalc_renderers):
     46        (_ewk_tiled_backing_store_view_dbg):
     47        (_ewk_tiled_backing_store_view_wrap_up):
     48        (_ewk_tiled_backing_store_view_wrap_down):
     49        (_ewk_tiled_backing_store_view_wrap_left):
     50        (_ewk_tiled_backing_store_view_refill):
     51        (_ewk_tiled_backing_store_view_pos_apply):
     52        (_ewk_tiled_backing_store_smart_calculate_offset_force):
     53        (_ewk_tiled_backing_store_smart_calculate_offset):
     54        (_ewk_tiled_backing_store_smart_calculate_pos):
     55        (_ewk_tiled_backing_store_smart_calculate):
     56        (_ewk_tiled_backing_store_scroll_full_offset_set_internal):
     57        (ewk_tiled_backing_store_scroll_full_offset_set):
     58        (ewk_tiled_backing_store_scroll_full_offset_add):
     59        (_ewk_tiled_backing_store_zoom_set_internal):
     60        (ewk_tiled_backing_store_zoom_set):
     61        (ewk_tiled_backing_store_zoom_weak_set):
     62        (ewk_tiled_backing_store_fix_offsets):
     63        (ewk_tiled_backing_store_flush):
     64        (ewk_tiled_backing_store_pre_render_region):
     65        (ewk_tiled_backing_store_pre_render_relative_radius):
     66        * ewk/ewk_tiled_backing_store.h:
     67        (_Ewk_Tile):
     68        * ewk/ewk_tiled_matrix.cpp:
     69        (_Ewk_Tile_Matrix):
     70        (_ewk_tile_matrix_cell_free):
     71        (_ewk_tile_matrix_tile_free):
     72        (ewk_tile_matrix_new):
     73        (ewk_tile_matrix_free):
     74        (ewk_tile_matrix_unused_cache_get):
     75        (ewk_tile_matrix_tile_exact_get):
     76        (ewk_tile_matrix_tile_new):
     77        (ewk_tile_matrix_tile_put):
     78        (ewk_tile_matrix_dbg):
     79        (ewk_tile_matrix_freeze):
     80        (ewk_tile_matrix_thaw):
     81        * ewk/ewk_tiled_matrix.h:
     82        * ewk/ewk_tiled_model.cpp:
     83        (tile_account):
     84        (ewk_tile_updates_process):
     85        (ewk_tile_unused_cache_tile_put):
     86        (ewk_tile_unused_cache_dbg):
     87        * ewk/ewk_tiled_model.h:
     88        * ewk/ewk_util.h:
     89        * ewk/ewk_view.cpp:
     90        (_Ewk_View_Private_Data):
     91        (_ewk_view_smart_focus_in):
     92        (_ewk_view_smart_pre_render_region):
     93        (ewk_view_pre_render_region):
     94        (ewk_view_toolbars_visible_get):
     95        (ewk_view_statusbar_visible_get):
     96        (ewk_view_scrollbars_visible_get):
     97        (ewk_view_menubar_visible_get):
     98        (ewk_view_zoom_range_set):
     99        * ewk/ewk_view.h:
     100        * ewk/ewk_view_single.cpp:
     101        (_ewk_view_single_smart_repaints_process):
     102        * ewk/ewk_view_tiled.cpp:
     103        (_ewk_view_tiled_smart_backing_store_add):
     104        (_ewk_view_tiled_smart_add):
     105        (ewk_view_tiled_unused_cache_get):
     106        (ewk_view_tiled_unused_cache_set):
     107
    11082012-02-05  ChangSeok Oh  <shivamidow@gmail.com>
    2109
  • trunk/Source/WebKit/efl/ewk/ewk_cookies.h

    r95901 r106904  
    9696 * @return an @c Eina_List with all the cookies in the cookie jar
    9797 */
    98 EAPI Eina_List*         ewk_cookies_get_all(void);
     98EAPI Eina_List          *ewk_cookies_get_all(void);
    9999
    100100/**
  • trunk/Source/WebKit/efl/ewk/ewk_frame.cpp

    r105698 r106904  
    8787#define EWK_FRAME_TYPE_CHECK(ewkFrame, ...) do { } while (0)
    8888#else
    89 #define EWK_FRAME_TYPE_CHECK(ewkFrame, ...)                                    \
    90     do {                                                                \
    91         const char* _tmp_otype = evas_object_type_get(ewkFrame);               \
    92         if (EINA_UNLIKELY(_tmp_otype != EWK_FRAME_TYPE_STR)) {          \
    93             EINA_LOG_CRIT                                               \
    94                 ("%p (%s) is not of an ewk_frame!", ewkFrame,                  \
    95                 _tmp_otype ? _tmp_otype : "(null)");                    \
    96             return __VA_ARGS__;                                         \
    97         }                                                               \
     89#define EWK_FRAME_TYPE_CHECK(ewkFrame, ...) \
     90    do { \
     91        const char* _tmp_otype = evas_object_type_get(ewkFrame); \
     92        if (EINA_UNLIKELY(_tmp_otype != EWK_FRAME_TYPE_STR)) { \
     93            EINA_LOG_CRIT \
     94                ("%p (%s) is not of an ewk_frame!", ewkFrame, \
     95                _tmp_otype ? _tmp_otype : "(null)"); \
     96            return __VA_ARGS__; \
     97        } \
    9898    } while (0)
    9999#endif
    100100
    101 #define EWK_FRAME_SD_GET(ewkFrame, ptr)                                \
    102     Ewk_Frame_Smart_Data* ptr = static_cast<Ewk_Frame_Smart_Data*>(evas_object_smart_data_get(ewkFrame))
    103 
    104 #define EWK_FRAME_SD_GET_OR_RETURN(ewkFrame, ptr, ...)        \
    105     EWK_FRAME_TYPE_CHECK(ewkFrame, __VA_ARGS__);               \
    106     EWK_FRAME_SD_GET(ewkFrame, ptr);                          \
    107     if (!ptr) {                                        \
    108         CRITICAL("no smart data for object %p (%s)",    \
    109                  ewkFrame, evas_object_type_get(ewkFrame));           \
    110         return __VA_ARGS__;                             \
     101#define EWK_FRAME_SD_GET(ewkFrame, pointer) \
     102    Ewk_Frame_Smart_Data* pointer = static_cast<Ewk_Frame_Smart_Data*>(evas_object_smart_data_get(ewkFrame))
     103
     104#define EWK_FRAME_SD_GET_OR_RETURN(ewkFrame, pointer, ...) \
     105    EWK_FRAME_TYPE_CHECK(ewkFrame, __VA_ARGS__); \
     106    EWK_FRAME_SD_GET(ewkFrame, pointer); \
     107    if (!pointer) { \
     108        CRITICAL("no smart data for object %p (%s)", \
     109                 ewkFrame, evas_object_type_get(ewkFrame)); \
     110        return __VA_ARGS__; \
    111111    }
    112112
     
    469469    EWK_FRAME_SD_GET_OR_RETURN(ewkFrame, smartData, 0);
    470470    EINA_SAFETY_ON_NULL_RETURN_VAL(smartData->frame, 0);
    471     WTF::CString s = smartData->frame->editor()->selectedText().utf8();
    472     if (s.isNull())
     471    WTF::CString selectedText = smartData->frame->editor()->selectedText().utf8();
     472    if (selectedText.isNull())
    473473        return 0;
    474     return strdup(s.data());
     474    return strdup(selectedText.data());
    475475}
    476476
     
    835835    EWK_FRAME_SD_GET_OR_RETURN(ewkFrame, smartData, false);
    836836    EINA_SAFETY_ON_NULL_RETURN_VAL(smartData->frame, false);
    837     WebCore::FocusController* c = smartData->frame->page()->focusController();
    838     c->setFocusedFrame(smartData->frame);
     837    WebCore::FocusController* focusController = smartData->frame->page()->focusController();
     838    focusController->setFocusedFrame(smartData->frame);
    839839    return true;
    840840}
     
    17751775namespace EWKPrivate {
    17761776
    1777 WebCore::Frame *coreFrame(const Evas_Object *ewkFrame)
     1777WebCore::Frame* coreFrame(const Evas_Object* ewkFrame)
    17781778{
    17791779    EWK_FRAME_SD_GET_OR_RETURN(ewkFrame, smartData, 0);
  • trunk/Source/WebKit/efl/ewk/ewk_frame.h

    r102601 r106904  
    858858 *         or @c 0 in case of failure.
    859859 */
    860 EAPI char* ewk_frame_plain_text_get(const Evas_Object* o);
     860EAPI char *ewk_frame_plain_text_get(const Evas_Object *o);
    861861
    862862/**
  • trunk/Source/WebKit/efl/ewk/ewk_history.cpp

    r101744 r106904  
    256256Ewk_History_Item* ewk_history_item_new(const char* uri, const char* title)
    257257{
    258     WTF::String u = WTF::String::fromUTF8(uri);
    259     WTF::String t = WTF::String::fromUTF8(title);
    260     WTF::RefPtr<WebCore::HistoryItem> core = WebCore::HistoryItem::create(u, t, 0);
     258    WTF::String historyUri = WTF::String::fromUTF8(uri);
     259    WTF::String historyTitle = WTF::String::fromUTF8(title);
     260    WTF::RefPtr<WebCore::HistoryItem> core = WebCore::HistoryItem::create(historyUri, historyTitle, 0);
    261261    Ewk_History_Item* item = ewk_history_item_new_from_core(core.release().leakRef());
    262262    return item;
     
    288288    EWK_HISTORY_ITEM_CORE_GET_OR_RETURN(item, core, 0);
    289289    // hide the following optimzation from outside
    290     Ewk_History_Item* item1 = const_cast<Ewk_History_Item*>(item);
    291     eina_stringshare_replace(&item1->title, core->title().utf8().data());
    292     return item1->title;
     290    Ewk_History_Item* historyItem = const_cast<Ewk_History_Item*>(item);
     291    eina_stringshare_replace(&historyItem->title, core->title().utf8().data());
     292    return historyItem->title;
    293293}
    294294
     
    297297    EWK_HISTORY_ITEM_CORE_GET_OR_RETURN(item, core, 0);
    298298    // hide the following optimzation from outside
    299     Ewk_History_Item* item1 = const_cast<Ewk_History_Item*>(item);
    300     eina_stringshare_replace(&item1->alternateTitle,
     299    Ewk_History_Item* historyItem = const_cast<Ewk_History_Item*>(item);
     300    eina_stringshare_replace(&historyItem->alternateTitle,
    301301                             core->alternateTitle().utf8().data());
    302     return item1->alternateTitle;
     302    return historyItem->alternateTitle;
    303303}
    304304
     
    315315    EWK_HISTORY_ITEM_CORE_GET_OR_RETURN(item, core, 0);
    316316    // hide the following optimzation from outside
    317     Ewk_History_Item* i = const_cast<Ewk_History_Item*>((item));
    318     eina_stringshare_replace(&i->uri, core->urlString().utf8().data());
    319     return i->uri;
     317    Ewk_History_Item* historyItem = const_cast<Ewk_History_Item*>((item));
     318    eina_stringshare_replace(&historyItem->uri, core->urlString().utf8().data());
     319    return historyItem->uri;
    320320}
    321321
     
    324324    EWK_HISTORY_ITEM_CORE_GET_OR_RETURN(item, core, 0);
    325325    // hide the following optimzation from outside
    326     Ewk_History_Item* i = const_cast<Ewk_History_Item*>(item);
    327     eina_stringshare_replace(&i->originalUri,
     326    Ewk_History_Item* historyItem = const_cast<Ewk_History_Item*>(item);
     327    eina_stringshare_replace(&historyItem->originalUri,
    328328                             core->originalURLString().utf8().data());
    329     return i->originalUri;
     329    return historyItem->originalUri;
    330330}
    331331
  • trunk/Source/WebKit/efl/ewk/ewk_network.h

    r102599 r106904  
    120120 *         backend was used.
    121121 */
    122 EAPI SoupSession*     ewk_network_default_soup_session_get(void);
     122EAPI SoupSession     *ewk_network_default_soup_session_get(void);
    123123
    124124#ifdef __cplusplus
  • trunk/Source/WebKit/efl/ewk/ewk_tiled_backing_store.cpp

    r106627 r106904  
    3434#include <string.h>
    3535
    36 #define IDX(col, row, rowspan) (col + (row * rowspan))
     36#define IDX(column, row, rowspan) (column + (row * rowspan))
    3737
    3838typedef struct _Ewk_Tiled_Backing_Store_Data Ewk_Tiled_Backing_Store_Data;
     
    4646        Evas_Coord x, y, width, height;
    4747    } geometry;
    48     bool smooth_scale;
     48    bool smoothScale;
    4949};
    5050
     
    6262        Eina_Inlist** items;
    6363        Evas_Coord x, y, width, height;
    64         long cols, rows;
     64        long columns, rows;
    6565        struct {
    6666            Evas_Coord width, height;
     
    7272            struct {
    7373                Evas_Coord x, y;
    74             } cur, old, base, zoomCenter;
     74            } current, old, base, zoomCenter;
    7575        } offset;
    7676        bool visible : 1;
     
    110110    } changed;
    111111#ifdef DEBUG_MEM_LEAKS
    112     Ecore_Event_Handler* sig_usr;
     112    Ecore_Event_Handler* signalUser;
    113113#endif
    114114};
     
    117117int _ewk_tiled_log_dom = -1;
    118118
    119 #define PRIV_DATA_GET_OR_RETURN(obj, ptr, ...)                       \
     119#define PRIV_DATA_GET_OR_RETURN(obj, ptr, ...) \
    120120    Ewk_Tiled_Backing_Store_Data* ptr = static_cast<Ewk_Tiled_Backing_Store_Data*>(evas_object_smart_data_get(obj)); \
    121     if (!ptr) {                                                      \
    122         CRITICAL("no private data in obj=%p", obj);                  \
    123         return __VA_ARGS__;                                          \
     121    if (!ptr) { \
     122        CRITICAL("no private data in obj=%p", obj); \
     123        return __VA_ARGS__; \
    124124    }
    125125
     
    205205{
    206206    if (item->tile)
    207         CRITICAL("it->tile=%p, but it should be 0!", item->tile);
     207        CRITICAL("item->tile=%p, but it should be 0!", item->tile);
    208208    item->tile = tile;
    209209    evas_object_move(item->tile->image, item->geometry.x, item->geometry.y);
     
    211211    evas_object_image_fill_set
    212212        (item->tile->image, 0, 0, item->geometry.width, item->geometry.height);
    213     evas_object_image_smooth_scale_set(item->tile->image, item->smooth_scale);
     213    evas_object_image_smooth_scale_set(item->tile->image, item->smoothScale);
    214214    evas_object_image_alpha_set(item->tile->image, priv->view.tile.hasAlpha);
    215215
     
    222222static void _ewk_tiled_backing_store_tile_dissociate(Ewk_Tiled_Backing_Store_Data* priv, Ewk_Tiled_Backing_Store_Item* item, double lastUsed)
    223223{
    224     Ewk_Tile_Unused_Cache* tiledUnusedCache;
     224    Ewk_Tile_Unused_Cache* tileUnusedCache;
    225225    ewk_tile_hide(item->tile);
    226226    if (!ewk_tile_visible_get(item->tile))
    227227        evas_object_smart_member_del(item->tile->image);
    228228    ewk_tile_matrix_tile_put(priv->model.matrix, item->tile, lastUsed);
    229     tiledUnusedCache = ewk_tile_matrix_unused_cache_get(priv->model.matrix);
    230     ewk_tile_unused_cache_auto_flush(tiledUnusedCache);
     229    tileUnusedCache = ewk_tile_matrix_unused_cache_get(priv->model.matrix);
     230    ewk_tile_unused_cache_auto_flush(tileUnusedCache);
    231231
    232232    item->tile = 0;
     
    294294{
    295295    Eina_Inlist** preRenderList = &priv->render.preRenderRequests;
    296     Eina_Inlist* iter = *preRenderList, *tmp;
     296    Eina_Inlist* iter = *preRenderList, *next;
    297297    while (iter) {
    298298        Ewk_Tiled_Backing_Store_Pre_Render_Request* request =
    299299            EINA_INLIST_CONTAINER_GET(
    300300                iter, Ewk_Tiled_Backing_Store_Pre_Render_Request);
    301         tmp = iter->next;
     301        next = iter->next;
    302302        *preRenderList = eina_inlist_remove(*preRenderList, iter);
    303         iter = tmp;
     303        iter = next;
    304304        free(request);
    305305    }
    306306}
    307307
    308 /* assumes priv->process.pre_cb was called if required! */
     308/* assumes priv->process.preCallback was called if required! */
    309309static void _ewk_tiled_backing_store_pre_render_request_process_single(Ewk_Tiled_Backing_Store_Data* priv)
    310310{
     
    313313    Ewk_Tile_Matrix* tileMatrix = priv->model.matrix;
    314314    Ewk_Tile* tile;
    315     Ewk_Tile_Unused_Cache* tiledUnusedCache;
     315    Ewk_Tile_Unused_Cache* tileUnusedCache;
    316316    unsigned long column, row;
    317317    float zoom;
     
    350350end:
    351351    _ewk_tiled_backing_store_pre_render_request_del(priv, request);
    352     tiledUnusedCache = ewk_tile_matrix_unused_cache_get(priv->model.matrix);
    353     ewk_tile_unused_cache_auto_flush(tiledUnusedCache);
     352    tileUnusedCache = ewk_tile_matrix_unused_cache_get(priv->model.matrix);
     353    ewk_tile_unused_cache_auto_flush(tileUnusedCache);
    354354}
    355355
     
    432432        if (item->tile) {
    433433            Ewk_Tile* old = item->tile;
    434             if (old->row != currentRow || old->col != currentColumn || old->zoom != zoom)
     434            if (old->row != currentRow || old->column != currentColumn || old->zoom != zoom)
    435435                _ewk_tiled_backing_store_tile_dissociate(priv, item, lastUsed);
    436             else if (old->row == currentRow && old->col == currentColumn && old->zoom == zoom)
     436            else if (old->row == currentRow && old->column == currentColumn && old->zoom == zoom)
    437437                goto end;
    438438        }
     
    441441
    442442        if (!tile) {
    443             /* NOTE: it never returns 0 if it->tile was set! */
     443            /* NOTE: it never returns 0 if item->tile was set! */
    444444            if (item->tile) {
    445                 CRITICAL("it->tile=%p, but it should be 0!", item->tile);
     445                CRITICAL("item->tile=%p, but it should be 0!", item->tile);
    446446                _ewk_tiled_backing_store_tile_dissociate(priv, item,
    447447                                                         lastUsed);
     
    475475    Evas_Coord x, y, tileWidth, tileHeight;
    476476
    477     DBG("ewkBackingStore%p", priv->self);
     477    DBG("ewkBackingStore=%p", priv->self);
    478478
    479479    item = static_cast<Ewk_Tiled_Backing_Store_Item*>(malloc(sizeof(*item)));
     
    483483    tileWidth = priv->view.tile.width;
    484484    tileHeight = priv->view.tile.height;
    485     x = priv->view.offset.base.x + priv->view.x + tileWidth  *column;
    486     y = priv->view.offset.base.y + priv->view.y + tileHeight  *row;
     485    x = priv->view.offset.base.x + priv->view.x + tileWidth * column;
     486    y = priv->view.offset.base.y + priv->view.y + tileHeight * row;
    487487
    488488    item->tile = 0;
    489489
    490     item->smooth_scale = priv->view.tile.zoomWeakSmoothScale;
     490    item->smoothScale = priv->view.tile.zoomWeakSmoothScale;
    491491    _ewk_tiled_backing_store_item_move(item, x, y);
    492492    _ewk_tiled_backing_store_item_resize(item, tileWidth, tileHeight);
     
    511511static void _ewk_tiled_backing_store_item_smooth_scale_set(Ewk_Tiled_Backing_Store_Item* item, Eina_Bool smoothScale)
    512512{
    513     if (item->smooth_scale == smoothScale)
     513    if (item->smoothScale == smoothScale)
    514514        return;
    515515
     
    550550
    551551    for (i = 0; i < count; i++, baseColumn++) {
    552         Ewk_Tiled_Backing_Store_Item* it;
    553 
    554         it = _ewk_tiled_backing_store_item_add(priv, baseColumn, row);
    555         if (!it) {
     552        Ewk_Tiled_Backing_Store_Item* item;
     553
     554        item = _ewk_tiled_backing_store_item_add(priv, baseColumn, row);
     555        if (!item) {
    556556            CRITICAL("failed to add column %u of %u in row %u.", i, count, row);
    557557            _ewk_tiled_backing_store_view_cols_end_del(priv, rowList, i);
     
    559559        }
    560560
    561         *rowList = eina_inlist_append(*rowList, EINA_INLIST_GET(it));
     561        *rowList = eina_inlist_append(*rowList, EINA_INLIST_GET(item));
    562562    }
    563563    return true;
     
    593593    free(priv->view.items);
    594594    priv->view.items = 0;
    595     priv->view.cols = 0;
     595    priv->view.columns = 0;
    596596    priv->view.rows = 0;
    597597}
     
    602602
    603603    INF("TODO %p (visible? %d) [%lu,%lu] %d,%d + %dx%d",
    604         tile, tile->visible, tile->col, tile->row, area->x, area->y, area->w, area->h);
     604        tile, tile->visible, tile->column, tile->row, area->x, area->y, area->w, area->h);
    605605
    606606    if (!tile->visible)
     
    659659
    660660    printf("\n--- BEGIN DEBUG TILED BACKING STORE MEMORY [%d] --\n"
    661            "t=%0.2f, obj=%p, priv=%p, view.items=%p, matrix=%p\n",
     661           "tile=%0.2f, obj=%p, priv=%p, view.items=%p, matrix=%p\n",
    662662           run, ecore_loop_time_get(),
    663663           priv->self, priv, priv->view.items, priv->model.matrix);
     
    671671static Eina_Bool _ewk_tiled_backing_store_sig_usr(void* data, int type, void* event)
    672672{
    673     Ecore_Event_Signal_User* sig = (Ecore_Event_Signal_User*)event;
     673    Ecore_Event_Signal_User* signalUser = (Ecore_Event_Signal_User*)event;
    674674    Ewk_Tiled_Backing_Store_Data* priv = (Ewk_Tiled_Backing_Store_Data*)data;
    675675
    676     if (sig->number == 2) {
    677         Ewk_Tile_Unused_Cache* tilieUnusedCache;
    678         tilieUnusedCache = ewk_tile_matrix_unused_cache_get(priv->model.matrix);
    679         ewk_tile_unused_cache_auto_flush(tilieUnusedCache);
     676    if (signalUser->number == 2) {
     677        Ewk_Tile_Unused_Cache* tileUnusedCache;
     678        tileUnusedCache = ewk_tile_matrix_unused_cache_get(priv->model.matrix);
     679        ewk_tile_unused_cache_auto_flush(tileUnusedCache);
    680680    }
    681681
     
    700700    priv->view.tile.width = defaultTileWidth;
    701701    priv->view.tile.height = defaultTileHeigth;
    702     priv->view.offset.cur.x = 0;
    703     priv->view.offset.cur.y = 0;
     702    priv->view.offset.current.x = 0;
     703    priv->view.offset.current.y = 0;
    704704    priv->view.offset.old.x = 0;
    705705    priv->view.offset.old.y = 0;
     
    736736
    737737#ifdef DEBUG_MEM_LEAKS
    738     priv->sig_usr = ecore_event_handler_add
     738    priv->signalUser = ecore_event_handler_add
    739739                        (ECORE_EVENT_SIGNAL_USER, _ewk_tiled_backing_store_sig_usr, priv);
    740740#endif
     
    744744{
    745745    PRIV_DATA_GET_OR_RETURN(ewkBackingStore, priv);
    746     DBG("ewkBackingStore%p", ewkBackingStore);
     746    DBG("ewkBackingStore=%p", ewkBackingStore);
    747747    Ewk_Tile_Unused_Cache* tileUnusedCache;
    748748
     
    776776static void _ewk_tiled_backing_store_smart_move(Evas_Object* ewkBackingStore, Evas_Coord x, Evas_Coord y)
    777777{
    778     DBG("ewkBackingStore%p, new pos: %dx%d", ewkBackingStore, x, y);
     778    DBG("ewkBackingStore=%p, new pos: %dx%d", ewkBackingStore, x, y);
    779779
    780780    PRIV_DATA_GET_OR_RETURN(ewkBackingStore, priv);
     
    792792static void _ewk_tiled_backing_store_smart_resize(Evas_Object* ewkBackingStore, Evas_Coord width, Evas_Coord height)
    793793{
    794     DBG("ewkBackingStore%p, new size: %dx%d", ewkBackingStore, width, height);
     794    DBG("ewkBackingStore=%p, new size: %dx%d", ewkBackingStore, width, height);
    795795
    796796    PRIV_DATA_GET_OR_RETURN(ewkBackingStore, priv);
     
    826826{
    827827    long columns, rows, oldRows, oldCols;
    828     INF("ewkBackingStore%p, new size: %dx%d", priv->self, width, height);
     828    INF("ewkBackingStore=%p, new size: %dx%d", priv->self, width, height);
    829829
    830830    columns = 1 + static_cast<int>(ceil(width / static_cast<float>(tileWidth)));
    831831    rows = 1 + static_cast<int>(ceil(height / static_cast<float>(tileHeight)));
    832832
    833     INF("ewkBackingStore%p new grid size cols: %ld, rows: %ld, was %ld, %ld",
    834         priv->self, columns, rows, priv->view.cols, priv->view.rows);
    835 
    836     if (priv->view.cols == columns && priv->view.rows == rows)
    837         return;
    838 
    839     oldCols = priv->view.cols;
     833    INF("ewkBackingStore=%p new grid size columns: %ld, rows: %ld, was %ld, %ld",
     834        priv->self, columns, rows, priv->view.columns, priv->view.rows);
     835
     836    if (priv->view.columns == columns && priv->view.rows == rows)
     837        return;
     838
     839    oldCols = priv->view.columns;
    840840    oldRows = priv->view.rows;
    841841
     
    853853    priv->view.items = static_cast<Eina_Inlist**>(newItems);
    854854    priv->view.rows = rows;
    855     priv->view.cols = columns;
     855    priv->view.columns = columns;
    856856    if (rows > oldRows) {
    857857        Eina_Inlist** start = priv->view.items + oldRows;
     
    859859        for (; start < end; start++) {
    860860            *start = 0;
    861             Eina_Bool r = _ewk_tiled_backing_store_view_cols_end_add(priv, start, 0, columns);
    862             if (!r) {
     861            Eina_Bool result = _ewk_tiled_backing_store_view_cols_end_add(priv, start, 0, columns);
     862            if (!result) {
    863863                CRITICAL("failed to allocate %ld columns", columns);
    864864                _ewk_tiled_backing_store_view_rows_range_del(priv, priv->view.items + oldRows, start);
     
    916916    Eina_Inlist** start, **end;
    917917    printf("tiles=%2ld,%2ld  model=%2ld,%2ld [%dx%d] base=%+3ld,%+4ld offset=%+4d,%+4d old=%+4d,%+4d base=%+3d,%+3d\n",
    918            priv->view.cols, priv->view.rows,
     918           priv->view.columns, priv->view.rows,
    919919           priv->model.current.columns, priv->model.current.rows,
    920920           priv->model.width, priv->model.height,
    921921           priv->model.base.column, priv->model.base.row,
    922            priv->view.offset.cur.x, priv->view.offset.cur.y,
     922           priv->view.offset.current.x, priv->view.offset.current.y,
    923923           priv->view.offset.old.x, priv->view.offset.old.y,
    924924           priv->view.offset.base.x, priv->view.offset.base.y);
     
    935935                printf("            ;");
    936936            else
    937                 printf("%8p %lu,%lu;", item->tile, item->tile->col, item->tile->row);
     937                printf("%8p %lu,%lu;", item->tile, item->tile->column, item->tile->row);
    938938        }
    939939        printf("\n");
     
    973973        Ewk_Tiled_Backing_Store_Item* item;
    974974        Evas_Coord tilePositionX = originX;
    975         int count1 = 0;
     975        int column = 0;
    976976
    977977        for (iteratorList = iteratorStart; iteratorList < iteratorEnd; iteratorList++)
     
    983983            _ewk_tiled_backing_store_item_move(item, tilePositionX, tilePositionY);
    984984            tilePositionX += tileWidth;
    985             _ewk_tiled_backing_store_item_fill(priv, item, count1, lastRow);
    986             count1++;
     985            _ewk_tiled_backing_store_item_fill(priv, item, column, lastRow);
     986            column++;
    987987        }
    988988        tilePositionY += tileHeight;
     
    10211021        Ewk_Tiled_Backing_Store_Item* item;
    10221022        Evas_Coord tilePositionX = originX;
    1023         int count1 = 0;
     1023        int column = 0;
    10241024
    10251025        for (iteratorList = iteratorStart; iteratorList > iteratorEnd; iteratorList--)
     
    10311031            _ewk_tiled_backing_store_item_move(item, tilePositionX, tilePositionY);
    10321032            tilePositionX += tileWidth;
    1033             _ewk_tiled_backing_store_item_fill(priv, item, count1, 0);
    1034             count1++;
     1033            _ewk_tiled_backing_store_item_fill(priv, item, column, 0);
     1034            column++;
    10351035        }
    10361036        tilePositionY -= tileHeight;
     
    10431043 * Move left-most (first) column right as last (right-most).
    10441044 *
    1045  * The final result is visually the same, but logically the first col that
     1045 * The final result is visually the same, but logically the first column that
    10461046 * went out of screen is now at last and filled with new model items.
    10471047 *
    10481048 * This is worth just when @a count is smaller than @c
    1049  * priv->view.cols, after that one is refilling the whole matrix so it
     1049 * priv->view.columns, after that one is refilling the whole matrix so it
    10501050 * is better to trigger full refill.
    10511051 *
     
    10541054static void _ewk_tiled_backing_store_view_wrap_left(Ewk_Tiled_Backing_Store_Data* priv, Evas_Coord x, Evas_Coord y, unsigned int count)
    10551055{
    1056     unsigned int row, lastColumn = priv->view.cols - 1;
     1056    unsigned int row, lastColumn = priv->view.columns - 1;
    10571057    Evas_Coord tileWidth = priv->view.tile.width;
    10581058    Evas_Coord tileHeight = priv->view.tile.height;
    10591059    Evas_Coord offsetX = priv->view.offset.base.x + count * tileWidth;
    1060     Evas_Coord oy = y + priv->view.offset.base.y;
     1060    Evas_Coord offsetY = y + priv->view.offset.base.y;
    10611061    Eina_Inlist** iterator;
    10621062    Eina_Inlist** iteratorEnd;
     
    10791079            *iterator = eina_inlist_demote(*iterator, *iterator);
    10801080
    1081             _ewk_tiled_backing_store_item_move(it, tilePositionX, oy);
     1081            _ewk_tiled_backing_store_item_move(it, tilePositionX, offsetY);
    10821082            _ewk_tiled_backing_store_item_fill(priv, it, column, row);
    10831083        }
    1084         oy += tileHeight;
     1084        offsetY += tileHeight;
    10851085    }
    10861086
     
    10921092 * Move right-most (last) column left as first (left-most).
    10931093 *
    1094  * The final result is visually the same, but logically the last col that
     1094 * The final result is visually the same, but logically the last column that
    10951095 * went out of screen is now at first and filled with new model items.
    10961096 *
    10971097 * This is worth just when @a count is smaller than @c
    1098  * priv->view.cols, after that one is refilling the whole matrix so it
     1098 * priv->view.columns, after that one is refilling the whole matrix so it
    10991099 * is better to trigger full refill.
    11001100 *
     
    11401140    Eina_Inlist** iterator, **iteratorEnd;
    11411141    Evas_Coord baseTilePositionX, tilePositionY, tileWidth, tileHeight;
    1142     unsigned int r;
     1142    unsigned int row;
    11431143
    11441144    evas_object_move(priv->base.clipper, x, y);
     
    11521152    iterator = priv->view.items;
    11531153    iteratorEnd = iterator + priv->view.rows;
    1154     r = 0;
     1154    row = 0;
    11551155
    11561156    priv->model.base.column -= stepX;
    11571157    priv->model.base.row -= stepY;
    11581158
    1159     for (; iterator < iteratorEnd; iterator++, r++) {
     1159    for (; iterator < iteratorEnd; iterator++, row++) {
    11601160        Ewk_Tiled_Backing_Store_Item* item;
    11611161        Evas_Coord newTilePositionX = baseTilePositionX;
    1162         unsigned int count = 0;
     1162        unsigned int column = 0;
    11631163        EINA_INLIST_FOREACH(*iterator, item) {
    1164             _ewk_tiled_backing_store_item_fill(priv, item, count, r);
     1164            _ewk_tiled_backing_store_item_fill(priv, item, column, row);
    11651165            _ewk_tiled_backing_store_item_move(item, newTilePositionX, tilePositionY);
    1166             count++;
     1166            column++;
    11671167            newTilePositionX += tileWidth;
    11681168        }
     
    11871187    iteratorEnd = iterator + priv->view.rows;
    11881188    for (; iterator < iteratorEnd; iterator++) {
    1189         Ewk_Tiled_Backing_Store_Item* it;
    1190         Evas_Coord ox = baseTilePositionX;
    1191         EINA_INLIST_FOREACH(*iterator, it) {
    1192             _ewk_tiled_backing_store_item_move(it, ox, baseTilePositionY);
    1193             ox += tileWidth;
     1189        Ewk_Tiled_Backing_Store_Item* item;
     1190        Evas_Coord offsetX = baseTilePositionX;
     1191        EINA_INLIST_FOREACH(*iterator, item) {
     1192            _ewk_tiled_backing_store_item_move(item, offsetX, baseTilePositionY);
     1193            offsetX += tileWidth;
    11941194        }
    11951195        baseTilePositionY += tileHeight;
     
    11991199static void _ewk_tiled_backing_store_smart_calculate_offset_force(Ewk_Tiled_Backing_Store_Data* priv)
    12001200{
    1201     Evas_Coord deltaX = priv->view.offset.cur.x - priv->view.offset.old.x;
    1202     Evas_Coord deltaY = priv->view.offset.cur.y - priv->view.offset.old.y;
     1201    Evas_Coord deltaX = priv->view.offset.current.x - priv->view.offset.old.x;
     1202    Evas_Coord deltaY = priv->view.offset.current.y - priv->view.offset.old.y;
    12031203    Evas_Coord tileWidth, tileHeight;
    12041204    int stepY, stepX;
    12051205
    1206     INF("ewkBackingStore%p, offset: %+4d, %+4d (%+4d, %+4d)",
    1207         priv->self, deltaX, deltaY, priv->view.offset.cur.x, priv->view.offset.cur.y);
     1206    INF("ewkBackingStore=%p, offset: %+4d, %+4d (%+4d, %+4d)",
     1207        priv->self, deltaX, deltaY, priv->view.offset.current.x, priv->view.offset.current.y);
    12081208
    12091209    tileWidth = priv->view.tile.width;
    12101210    tileHeight = priv->view.tile.height;
    12111211
    1212     long newColumn = -priv->view.offset.cur.x / tileWidth;
     1212    long newColumn = -priv->view.offset.current.x / tileWidth;
    12131213    stepX = priv->model.base.column - newColumn;
    1214     long newRow = -priv->view.offset.cur.y / tileHeight;
     1214    long newRow = -priv->view.offset.current.y / tileHeight;
    12151215    stepY = priv->model.base.row - newRow;
    12161216
    1217     priv->view.offset.old.x = priv->view.offset.cur.x;
    1218     priv->view.offset.old.y = priv->view.offset.cur.y;
     1217    priv->view.offset.old.x = priv->view.offset.current.x;
     1218    priv->view.offset.old.y = priv->view.offset.current.y;
    12191219    evas_object_move(
    12201220        priv->contentsClipper,
    1221         priv->view.offset.cur.x + priv->view.x,
    1222         priv->view.offset.cur.y + priv->view.y);
     1221        priv->view.offset.current.x + priv->view.x,
     1222        priv->view.offset.current.y + priv->view.y);
    12231223
    12241224    priv->view.offset.base.x += deltaX - stepX * tileWidth;
     
    12311231static void _ewk_tiled_backing_store_smart_calculate_offset(Ewk_Tiled_Backing_Store_Data* priv, Evas_Coord x, Evas_Coord y)
    12321232{
    1233     Evas_Coord deltaX = priv->view.offset.cur.x - priv->view.offset.old.x;
    1234     Evas_Coord deltaY = priv->view.offset.cur.y - priv->view.offset.old.y;
     1233    Evas_Coord deltaX = priv->view.offset.current.x - priv->view.offset.old.x;
     1234    Evas_Coord deltaY = priv->view.offset.current.y - priv->view.offset.old.y;
    12351235    Evas_Coord tileWidth, tileHeight;
    12361236    int stepY, stepX;
    12371237
    1238     INF("ewkBackingStore%p, offset: %+4d, %+4d (%+4d, %+4d)",
    1239         priv->self, deltaX, deltaY, priv->view.offset.cur.x, priv->view.offset.cur.y);
     1238    INF("ewkBackingStore=%p, offset: %+4d, %+4d (%+4d, %+4d)",
     1239        priv->self, deltaX, deltaY, priv->view.offset.current.x, priv->view.offset.current.y);
    12401240
    12411241    if (!deltaX && !deltaY)
     
    12451245    tileHeight = priv->view.tile.height;
    12461246
    1247     long newCol = -priv->view.offset.cur.x / tileWidth;
     1247    long newCol = -priv->view.offset.current.x / tileWidth;
    12481248    stepX = priv->model.base.column - newCol;
    1249     long newRow = -priv->view.offset.cur.y / tileHeight;
     1249    long newRow = -priv->view.offset.current.y / tileHeight;
    12501250    stepY = priv->model.base.row - newRow;
    12511251
    1252     priv->view.offset.old.x = priv->view.offset.cur.x;
    1253     priv->view.offset.old.y = priv->view.offset.cur.y;
     1252    priv->view.offset.old.x = priv->view.offset.current.x;
     1253    priv->view.offset.old.y = priv->view.offset.current.y;
    12541254    evas_object_move(
    12551255        priv->contentsClipper,
    1256         priv->view.offset.cur.x + priv->view.x,
    1257         priv->view.offset.cur.y + priv->view.y);
    1258 
    1259     if ((stepX < 0 && stepX <= -priv->view.cols)
    1260         || (stepX > 0 && stepX >= priv->view.cols)
     1256        priv->view.offset.current.x + priv->view.x,
     1257        priv->view.offset.current.y + priv->view.y);
     1258
     1259    if ((stepX < 0 && stepX <= -priv->view.columns)
     1260        || (stepX > 0 && stepX >= priv->view.columns)
    12611261        || (stepY < 0 && stepY <= -priv->view.rows)
    12621262        || (stepY > 0 && stepY >= priv->view.rows)) {
     
    12931293    evas_object_move(
    12941294        priv->contentsClipper,
    1295         priv->view.offset.cur.x + priv->view.x,
    1296         priv->view.offset.cur.y + priv->view.y);
     1295        priv->view.offset.current.x + priv->view.x,
     1296        priv->view.offset.current.y + priv->view.y);
    12971297}
    12981298
     
    13161316
    13171317    evas_object_geometry_get(ewkBackingStore, &x, &y, &width, &height);
    1318     DBG("ewkBackingStore%p at %d,%d + %dx%d", ewkBackingStore, x, y, width, height);
     1318    DBG("ewkBackingStore=%p at %d,%d + %dx%d", ewkBackingStore, x, y, width, height);
    13191319
    13201320    PRIV_DATA_GET_OR_RETURN(ewkBackingStore, priv);
     
    13851385        || priv->view.offset.base.y > 0
    13861386        || priv->view.offset.base.y <= - priv->view.tile.height)
    1387         ERR("incorrect base offset %+4d,%+4d, tile=%dx%d, cur=%+4d,%+4d\n",
     1387        ERR("incorrect base offset %+4d,%+4d, tile=%dx%d, current=%+4d,%+4d\n",
    13881388            priv->view.offset.base.x, priv->view.offset.base.y,
    13891389            priv->view.tile.width, priv->view.tile.height,
    1390             priv->view.offset.cur.x, priv->view.offset.cur.y);
     1390            priv->view.offset.current.x, priv->view.offset.current.y);
    13911391
    13921392}
     
    14521452        return false;
    14531453
    1454     priv->view.offset.cur.x = x;
    1455     priv->view.offset.cur.y = y;
     1454    priv->view.offset.current.x = x;
     1455    priv->view.offset.current.y = y;
    14561456
    14571457    priv->changed.offset = true;
     
    14631463Eina_Bool ewk_tiled_backing_store_scroll_full_offset_set(Evas_Object* ewkBackingStore, Evas_Coord x, Evas_Coord y)
    14641464{
    1465     DBG("ewkBackingStore%p, x=%d, y=%d", ewkBackingStore, x, y);
     1465    DBG("ewkBackingStore=%p, x=%d, y=%d", ewkBackingStore, x, y);
    14661466
    14671467    PRIV_DATA_GET_OR_RETURN(ewkBackingStore, priv, false);
    1468     if (x == priv->view.offset.cur.x && y == priv->view.offset.cur.y)
     1468    if (x == priv->view.offset.current.x && y == priv->view.offset.current.y)
    14691469        return true;
    14701470
     
    14741474Eina_Bool ewk_tiled_backing_store_scroll_full_offset_add(Evas_Object* ewkBackingStore, Evas_Coord deltaX, Evas_Coord deltaY)
    14751475{
    1476     DBG("ewkBackingStore%p, deltaX=%d, deltaY=%d", ewkBackingStore, deltaX, deltaY);
     1476    DBG("ewkBackingStore=%p, deltaX=%d, deltaY=%d", ewkBackingStore, deltaX, deltaY);
    14771477
    14781478    PRIV_DATA_GET_OR_RETURN(ewkBackingStore, priv, false);
     
    14811481
    14821482    return _ewk_tiled_backing_store_scroll_full_offset_set_internal
    1483                (priv, priv->view.offset.cur.x + deltaX, priv->view.offset.cur.y + deltaY);
     1483               (priv, priv->view.offset.current.x + deltaX, priv->view.offset.current.y + deltaY);
    14841484}
    14851485
    14861486static Eina_Bool _ewk_tiled_backing_store_zoom_set_internal(Ewk_Tiled_Backing_Store_Data* priv, float* zoom, Evas_Coord currentX, Evas_Coord currentY, Evas_Coord* offsetX, Evas_Coord* offsetY)
    14871487{
    1488     *offsetX = priv->view.offset.cur.x;
    1489     *offsetY = priv->view.offset.cur.y;
     1488    *offsetX = priv->view.offset.current.x;
     1489    *offsetY = priv->view.offset.current.y;
    14901490
    14911491    if (fabsf(priv->view.tile.zoom - *zoom) < zoomStepMinimum) {
     
    15181518    }
    15191519    Eina_Inlist** iterator, **iteratorEnd;
    1520     Ewk_Tiled_Backing_Store_Item* it;
    1521 
    1522     Evas_Coord newX = currentX + (priv->view.offset.cur.x - currentX) * scale;
    1523     Evas_Coord newY = currentY + (priv->view.offset.cur.y - currentY) * scale;
     1520    Ewk_Tiled_Backing_Store_Item* item;
     1521
     1522    Evas_Coord newX = currentX + (priv->view.offset.current.x - currentX) * scale;
     1523    Evas_Coord newY = currentY + (priv->view.offset.current.y - currentY) * scale;
    15241524
    15251525    Evas_Coord modelWidth = priv->model.width * scale;
     
    15451545    _ewk_tiled_backing_store_changed(priv);
    15461546
    1547     priv->view.offset.cur.x = newX;
    1548     priv->view.offset.cur.y = newY;
     1547    priv->view.offset.current.x = newX;
     1548    priv->view.offset.current.y = newY;
    15491549    priv->view.offset.base.x = baseX;
    15501550    priv->view.offset.base.y = baseY;
    15511551
    1552     priv->view.offset.old.x = priv->view.offset.cur.x;
    1553     priv->view.offset.old.y = priv->view.offset.cur.y;
    1554     *offsetX = priv->view.offset.cur.x;
    1555     *offsetY = priv->view.offset.cur.y;
     1552    priv->view.offset.old.x = priv->view.offset.current.x;
     1553    priv->view.offset.old.y = priv->view.offset.current.y;
     1554    *offsetX = priv->view.offset.current.x;
     1555    *offsetY = priv->view.offset.current.y;
    15561556
    15571557    evas_object_move(
     
    15721572        Eina_Inlist* lst = *iterator;
    15731573
    1574         EINA_INLIST_FOREACH(lst, it) {
    1575             _ewk_tiled_backing_store_item_move(it, tilePositionX, tilePositionY);
    1576             _ewk_tiled_backing_store_item_resize(it, tileWidth, tileHeight);
     1574        EINA_INLIST_FOREACH(lst, item) {
     1575            _ewk_tiled_backing_store_item_move(item, tilePositionX, tilePositionY);
     1576            _ewk_tiled_backing_store_item_resize(item, tileWidth, tileHeight);
    15771577            tilePositionX += tileWidth;
    15781578        }
     
    15851585Eina_Bool ewk_tiled_backing_store_zoom_set(Evas_Object* ewkBackingStore, float* zoom, Evas_Coord currentX, Evas_Coord currentY, Evas_Coord* offsetX, Evas_Coord* offsetY)
    15861586{
    1587     DBG("ewkBackingStore%p, zoom=%f", ewkBackingStore, *zoom);
     1587    DBG("ewkBackingStore=%p, zoom=%f", ewkBackingStore, *zoom);
    15881588
    15891589    PRIV_DATA_GET_OR_RETURN(ewkBackingStore, priv, false);
     
    15941594Eina_Bool ewk_tiled_backing_store_zoom_weak_set(Evas_Object* ewkBackingStore, float zoom, Evas_Coord currentX, Evas_Coord currentY)
    15951595{
    1596     DBG("ewkBackingStore%p, zoom=%f", ewkBackingStore, zoom);
     1596    DBG("ewkBackingStore=%p, zoom=%f", ewkBackingStore, zoom);
    15971597    PRIV_DATA_GET_OR_RETURN(ewkBackingStore, priv, false);
    15981598    if (!priv->view.width || !priv->view.height)
     
    16171617    int vrows = static_cast<int>(ceil(priv->view.height /static_cast<float>(tileHeight)) + 1);
    16181618    int vcols = static_cast<int>(ceil(priv->view.width / static_cast<float>(tileWidth)) + 1);
    1619     Evas_Coord newX = currentX + (priv->view.offset.cur.x - currentX) * scale;
    1620     Evas_Coord newY = currentY + (priv->view.offset.cur.y - currentY) * scale;
     1619    Evas_Coord newX = currentX + (priv->view.offset.current.x - currentX) * scale;
     1620    Evas_Coord newY = currentY + (priv->view.offset.current.y - currentY) * scale;
    16211621    Evas_Coord baseX = newX % tileWidth;
    16221622    Evas_Coord baseY = newY % tileHeight;
     
    16301630    }
    16311631
    1632     if (vrows > priv->view.rows || vcols > priv->view.cols)
     1632    if (vrows > priv->view.rows || vcols > priv->view.columns)
    16331633        reCalculate = true;
    16341634
     
    16711671    Eina_Inlist** iterator, **iteratorEnd;
    16721672    Ewk_Tiled_Backing_Store_Item* item;
    1673     Evas_Coord newX = priv->view.offset.cur.x;
    1674     Evas_Coord newY = priv->view.offset.cur.y;
     1673    Evas_Coord newX = priv->view.offset.current.x;
     1674    Evas_Coord newY = priv->view.offset.current.y;
    16751675    Evas_Coord baseX = priv->view.offset.base.x;
    16761676    Evas_Coord baseY = priv->view.offset.base.y;
     
    17001700    }
    17011701
    1702     priv->view.offset.cur.x = newX;
    1703     priv->view.offset.cur.y = newY;
     1702    priv->view.offset.current.x = newX;
     1703    priv->view.offset.current.y = newY;
    17041704    priv->view.offset.old.x = newX;
    17051705    priv->view.offset.old.y = newY;
     
    18191819    Ewk_Tile_Unused_Cache* tileUnusedCache = 0;
    18201820
    1821     priv->view.offset.cur.x = 0;
    1822     priv->view.offset.cur.y = 0;
     1821    priv->view.offset.current.x = 0;
     1822    priv->view.offset.current.y = 0;
    18231823    priv->view.offset.old.x = 0;
    18241824    priv->view.offset.old.y = 0;
     
    19601960    PRIV_DATA_GET_OR_RETURN(ewkBackingStore, priv, false);
    19611961    Eina_Tile_Grid_Slicer slicer;
    1962     const Eina_Tile_Grid_Info* info;
     1962    const Eina_Tile_Grid_Info* gridInfo;
    19631963    Evas_Coord tileWidth, tileHeight;
    19641964    Ewk_Tile_Unused_Cache* tileUnusedCache;
     
    19741974    }
    19751975
    1976     while (eina_tile_grid_slicer_next(&slicer, &info)) {
    1977         const unsigned long c = info->col;
    1978         const unsigned long r = info->row;
    1979         if (!_ewk_tiled_backing_store_pre_render_request_add(priv, c, r, zoom))
     1976    while (eina_tile_grid_slicer_next(&slicer, &gridInfo)) {
     1977        const unsigned long column = gridInfo->col;
     1978        const unsigned long row = gridInfo->row;
     1979        if (!_ewk_tiled_backing_store_pre_render_request_add(priv, column, row, zoom))
    19801980            break;
    19811981    }
     
    20012001                       priv->model.base.row + priv->view.rows + n - 1);
    20022002    endCol = std::min(priv->model.current.columns - 1,
    2003                        priv->model.base.column + priv->view.cols + n - 1);
     2003                       priv->model.base.column + priv->view.columns + n - 1);
    20042004
    20052005    INF("startRow=%lu, endRow=%lu, startCol=%lu, endCol=%lu",
  • trunk/Source/WebKit/efl/ewk/ewk_tiled_backing_store.h

    r105240 r106904  
    6363
    6464struct _Ewk_Tile {
    65     Eina_Tiler* updates;    /**< updated/dirty areas */
     65    Eina_Tiler *updates;    /**< updated/dirty areas */
    6666    Ewk_Tile_Stats stats;       /**< tile usage statistics */
    67     unsigned long col, row; /**< tile tile position */
     67    unsigned long column, row; /**< tile tile position */
    6868    Evas_Coord x, y;        /**< tile coordinate position */
    6969
     
    7777                                   */
    7878    int visible;                  /**< visibility counter of this tile */
    79     Evas_Object* image;           /**< Evas Image, the tile to be rendered */
    80     uint8_t* pixels;
     79    Evas_Object *image;           /**< Evas Image, the tile to be rendered */
     80    uint8_t *pixels;
    8181};
    8282
     
    8585
    8686/* view */
    87 Evas_Object* ewk_tiled_backing_store_add(Evas* e);
     87Evas_Object *ewk_tiled_backing_store_add(Evas *e);
    8888
    89 void ewk_tiled_backing_store_render_cb_set(Evas_Object *o, Eina_Bool (*cb)(void* data, Ewk_Tile* t, const Eina_Rectangle* area), const void* data);
     89void ewk_tiled_backing_store_render_cb_set(Evas_Object *o, Eina_Bool (*cb)(void *data, Ewk_Tile *t, const Eina_Rectangle *area), const void *data);
    9090
    91 Eina_Bool ewk_tiled_backing_store_scroll_full_offset_set(Evas_Object* o, Evas_Coord x, Evas_Coord y);
    92 Eina_Bool ewk_tiled_backing_store_scroll_full_offset_add(Evas_Object* o, Evas_Coord dx, Evas_Coord dy);
    93 Eina_Bool ewk_tiled_backing_store_scroll_inner_offset_add(Evas_Object* o, Evas_Coord dx, Evas_Coord dy, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h);
     91Eina_Bool ewk_tiled_backing_store_scroll_full_offset_set(Evas_Object *o, Evas_Coord x, Evas_Coord y);
     92Eina_Bool ewk_tiled_backing_store_scroll_full_offset_add(Evas_Object *o, Evas_Coord dx, Evas_Coord dy);
     93Eina_Bool ewk_tiled_backing_store_scroll_inner_offset_add(Evas_Object *o, Evas_Coord dx, Evas_Coord dy, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h);
    9494
    95 Eina_Bool ewk_tiled_backing_store_zoom_set(Evas_Object* o, float* zoom, Evas_Coord cx, Evas_Coord cy, Evas_Coord* offx, Evas_Coord* offy);
    96 Eina_Bool ewk_tiled_backing_store_zoom_weak_set(Evas_Object* o, float zoom, Evas_Coord cx, Evas_Coord cy);
    97 void ewk_tiled_backing_store_fix_offsets(Evas_Object* o, Evas_Coord w, Evas_Coord h);
    98 void ewk_tiled_backing_store_zoom_weak_smooth_scale_set(Evas_Object* o, Eina_Bool smooth_scale);
    99 void ewk_tiled_backing_store_alpha_set(Evas_Object* o, Eina_Bool has_alpha);
    100 Eina_Bool ewk_tiled_backing_store_update(Evas_Object* o, const Eina_Rectangle* update);
    101 void ewk_tiled_backing_store_updates_process_pre_set(Evas_Object* o, void*(*cb)(void* data, Evas_Object *o), const void* data);
    102 void ewk_tiled_backing_store_updates_process_post_set(Evas_Object* o, void*(*cb)(void* data, void* pre_data, Evas_Object *o), const void* data);
    103 void ewk_tiled_backing_store_updates_process(Evas_Object* o);
    104 void ewk_tiled_backing_store_updates_clear(Evas_Object* o);
    105 void ewk_tiled_backing_store_contents_resize(Evas_Object* o, Evas_Coord width, Evas_Coord height);
    106 void ewk_tiled_backing_store_disabled_update_set(Evas_Object* o, Eina_Bool value);
    107 void ewk_tiled_backing_store_flush(Evas_Object* o);
    108 void ewk_tiled_backing_store_enable_scale_set(Evas_Object* o, Eina_Bool value);
     95Eina_Bool ewk_tiled_backing_store_zoom_set(Evas_Object *o, float *zoom, Evas_Coord cx, Evas_Coord cy, Evas_Coord *offx, Evas_Coord *offy);
     96Eina_Bool ewk_tiled_backing_store_zoom_weak_set(Evas_Object *o, float zoom, Evas_Coord cx, Evas_Coord cy);
     97void ewk_tiled_backing_store_fix_offsets(Evas_Object *o, Evas_Coord w, Evas_Coord h);
     98void ewk_tiled_backing_store_zoom_weak_smooth_scale_set(Evas_Object *o, Eina_Bool smooth_scale);
     99void ewk_tiled_backing_store_alpha_set(Evas_Object *o, Eina_Bool has_alpha);
     100Eina_Bool ewk_tiled_backing_store_update(Evas_Object *o, const Eina_Rectangle *update);
     101void ewk_tiled_backing_store_updates_process_pre_set(Evas_Object *o, void*(*cb)(void *data, Evas_Object *o), const void *data);
     102void ewk_tiled_backing_store_updates_process_post_set(Evas_Object *o, void*(*cb)(void *data, void *pre_data, Evas_Object *o), const void *data);
     103void ewk_tiled_backing_store_updates_process(Evas_Object *o);
     104void ewk_tiled_backing_store_updates_clear(Evas_Object *o);
     105void ewk_tiled_backing_store_contents_resize(Evas_Object *o, Evas_Coord width, Evas_Coord height);
     106void ewk_tiled_backing_store_disabled_update_set(Evas_Object *o, Eina_Bool value);
     107void ewk_tiled_backing_store_flush(Evas_Object *o);
     108void ewk_tiled_backing_store_enable_scale_set(Evas_Object *o, Eina_Bool value);
    109109
    110 Ewk_Tile_Unused_Cache* ewk_tiled_backing_store_tile_unused_cache_get(const Evas_Object* o);
    111 void ewk_tiled_backing_store_tile_unused_cache_set(Evas_Object* o, Ewk_Tile_Unused_Cache* tuc);
     110Ewk_Tile_Unused_Cache *ewk_tiled_backing_store_tile_unused_cache_get(const Evas_Object *o);
     111void ewk_tiled_backing_store_tile_unused_cache_set(Evas_Object *o, Ewk_Tile_Unused_Cache *tuc);
    112112
    113 Eina_Bool ewk_tiled_backing_store_pre_render_region(Evas_Object* o, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h, float zoom);
    114 Eina_Bool ewk_tiled_backing_store_pre_render_relative_radius(Evas_Object* o, unsigned int n, float zoom);
    115 Eina_Bool ewk_tiled_backing_store_pre_render_spiral_queue(Evas_Object* o, Eina_Rectangle* view_rect, Eina_Rectangle* render_rect, int max_memory, float zoom);
    116 void ewk_tiled_backing_store_pre_render_cancel(Evas_Object* o);
     113Eina_Bool ewk_tiled_backing_store_pre_render_region(Evas_Object *o, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h, float zoom);
     114Eina_Bool ewk_tiled_backing_store_pre_render_relative_radius(Evas_Object *o, unsigned int n, float zoom);
     115Eina_Bool ewk_tiled_backing_store_pre_render_spiral_queue(Evas_Object *o, Eina_Rectangle* view_rect, Eina_Rectangle *render_rect, int max_memory, float zoom);
     116void ewk_tiled_backing_store_pre_render_cancel(Evas_Object *o);
    117117
    118 Eina_Bool ewk_tiled_backing_store_disable_render(Evas_Object* o);
    119 Eina_Bool ewk_tiled_backing_store_enable_render(Evas_Object* o);
     118Eina_Bool ewk_tiled_backing_store_disable_render(Evas_Object *o);
     119Eina_Bool ewk_tiled_backing_store_enable_render(Evas_Object *o);
    120120#endif // ewk_tiled_backing_store_h
  • trunk/Source/WebKit/efl/ewk/ewk_tiled_matrix.cpp

    r105240 r106904  
    4545    Eina_Matrixsparse* matrix;
    4646    Eina_Inlist* matrices;
    47     Ewk_Tile_Unused_Cache* tilieUnusedCache;
     47    Ewk_Tile_Unused_Cache* tileUnusedCache;
    4848    Evas_Colorspace cspace;
    4949    struct {
     
    9595        return;
    9696
    97     ewk_tile_unused_cache_freeze(tileMatrix->tilieUnusedCache);
     97    ewk_tile_unused_cache_freeze(tileMatrix->tileUnusedCache);
    9898
    9999    if (tile->updates || tile->stats.full_update)
     
    103103        ERR("freeing cell that is visible, leaking tile %p", tile);
    104104    else {
    105         if (!ewk_tile_unused_cache_tile_get(tileMatrix->tilieUnusedCache, tile))
    106             ERR("tile %p was not in cache %p? leaking...", tile, tileMatrix->tilieUnusedCache);
     105        if (!ewk_tile_unused_cache_tile_get(tileMatrix->tileUnusedCache, tile))
     106            ERR("tile %p was not in cache %p? leaking...", tile, tileMatrix->tileUnusedCache);
    107107        else {
    108108            Ewk_Tile_Matrix_Entry* entry;
     
    122122    }
    123123
    124     ewk_tile_unused_cache_thaw(tileMatrix->tilieUnusedCache);
     124    ewk_tile_unused_cache_thaw(tileMatrix->tileUnusedCache);
    125125}
    126126
     
    138138    }
    139139
    140     if (!eina_matrixsparse_cell_idx_get(entry->matrix, tile->row, tile->col, &cell)) {
     140    if (!eina_matrixsparse_cell_idx_get(entry->matrix, tile->row, tile->column, &cell)) {
    141141
    142142        ERR("removing tile %p that was not in the matrix? Leaking...", tile);
     
    185185 * freed/replaced by the cache.
    186186 *
    187  * @param tuc cache of unused tiles or @c 0 to create one
     187 * @param tileUnusedCache cache of unused tiles or @c 0 to create one
    188188 *        automatically.
    189189 * @param columns number of columns in the matrix.
     
    212212
    213213    if (tileUnusedCache)
    214         tileMatrix->tilieUnusedCache = ewk_tile_unused_cache_ref(tileUnusedCache);
     214        tileMatrix->tileUnusedCache = ewk_tile_unused_cache_ref(tileUnusedCache);
    215215    else {
    216         tileMatrix->tilieUnusedCache = ewk_tile_unused_cache_new(DEFAULT_CACHE_SIZE);
    217         if (!tileMatrix->tilieUnusedCache) {
     216        tileMatrix->tileUnusedCache = ewk_tile_unused_cache_new(DEFAULT_CACHE_SIZE);
     217        if (!tileMatrix->tileUnusedCache) {
    218218            ERR("no cache of unused tile!");
    219219            eina_matrixsparse_free(tileMatrix->matrix);
     
    299299    EINA_SAFETY_ON_NULL_RETURN(tileMatrix);
    300300
    301     ewk_tile_unused_cache_freeze(tileMatrix->tilieUnusedCache);
     301    ewk_tile_unused_cache_freeze(tileMatrix->tileUnusedCache);
    302302    ewk_tile_matrix_invalidate(tileMatrix);
    303303    entry = EINA_INLIST_CONTAINER_GET(tileMatrix->matrices, Ewk_Tile_Matrix_Entry);
     
    307307    tileMatrix->matrices = 0;
    308308
    309     ewk_tile_unused_cache_thaw(tileMatrix->tilieUnusedCache);
    310     ewk_tile_unused_cache_unref(tileMatrix->tilieUnusedCache);
     309    ewk_tile_unused_cache_thaw(tileMatrix->tileUnusedCache);
     310    ewk_tile_unused_cache_unref(tileMatrix->tileUnusedCache);
    311311
    312312#ifdef DEBUG_MEM_LEAKS
     
    356356{
    357357    EINA_SAFETY_ON_NULL_RETURN_VAL(tileMatrix, 0);
    358     return tileMatrix->tilieUnusedCache;
     358    return tileMatrix->tileUnusedCache;
    359359}
    360360
     
    391391end:
    392392    if (!tile->visible) {
    393         if (!ewk_tile_unused_cache_tile_get(tileMatrix->tilieUnusedCache, tile))
     393        if (!ewk_tile_unused_cache_tile_get(tileMatrix->tileUnusedCache, tile))
    394394            WRN("Ewk_Tile was unused but not in cache? bug!");
    395395    }
     
    460460    }
    461461
    462     tile->col = column;
     462    tile->column = column;
    463463    tile->row = row;
    464464    tile->x = column * tileWidth;
     
    487487 *
    488488 * @param tileMatrix the tile matrix to return tile to.
    489  * @param t the tile instance to return, must @b not be @c 0.
     489 * @param tile the tile instance to return, must @b not be @c 0.
    490490 * @param last_used time in which tile.widthas last used.
    491491 *
     
    501501
    502502    tile->stats.last_used = lastUsed;
    503     return ewk_tile_unused_cache_tile_put(tileMatrix->tilieUnusedCache, tile, _ewk_tile_matrix_tile_free, tileMatrix);
     503    return ewk_tile_unused_cache_tile_put(tileMatrix->tileUnusedCache, tile, _ewk_tile_matrix_tile_free, tileMatrix);
    504504}
    505505
     
    707707            }
    708708            printf("%3lu,%3lu %10p:", column, row, tile);
    709             printf(" [%3lu,%3lu + %dx%d @ %0.3f]%c", tile->col, tile->row, tile->width, tile->height, tile->zoom, tile->visible ? '*' : ' ');
     709            printf(" [%3lu,%3lu + %dx%d @ %0.3f]%c", tile->column, tile->row, tile->width, tile->height, tile->zoom, tile->visible ? '*' : ' ');
    710710            printf("\n");
    711711        }
     
    715715    eina_iterator_free(iterator);
    716716
    717     ewk_tile_unused_cache_dbg(tileMatrix->tilieUnusedCache);
     717    ewk_tile_unused_cache_dbg(tileMatrix->tileUnusedCache);
    718718}
    719719
     
    731731    EINA_SAFETY_ON_NULL_RETURN(tileMatrix);
    732732    if (!tileMatrix->frozen)
    733         ewk_tile_unused_cache_freeze(tileMatrix->tilieUnusedCache);
     733        ewk_tile_unused_cache_freeze(tileMatrix->tileUnusedCache);
    734734    tileMatrix->frozen++;
    735735}
     
    751751    tileMatrix->frozen--;
    752752    if (!tileMatrix->frozen)
    753         ewk_tile_unused_cache_thaw(tileMatrix->tilieUnusedCache);
    754 }
     753        ewk_tile_unused_cache_thaw(tileMatrix->tileUnusedCache);
     754}
  • trunk/Source/WebKit/efl/ewk/ewk_tiled_matrix.h

    r100724 r106904  
    2727
    2828/* matrix of tiles */
    29 Ewk_Tile_Matrix* ewk_tile_matrix_new(Ewk_Tile_Unused_Cache* tileUnusedCache, unsigned long columns, unsigned long rows, float zoomLevel, Evas_Colorspace colorSpace, void (*render_callback)(void* data, Ewk_Tile* tile, const Eina_Rectangle* update), const void* renderData);
    30 void ewk_tile_matrix_free(Ewk_Tile_Matrix* tm);
     29Ewk_Tile_Matrix *ewk_tile_matrix_new(Ewk_Tile_Unused_Cache *tuc, unsigned long cols, unsigned long rows, float zoom_level, Evas_Colorspace color_space, void (*render_callback)(void *data, Ewk_Tile *t, const Eina_Rectangle *update), const void *render_data);
     30void ewk_tile_matrix_free(Ewk_Tile_Matrix *tm);
    3131
    32 void ewk_tile_matrix_resize(Ewk_Tile_Matrix* tm, unsigned long cols, unsigned long rows);
    33 void ewk_tile_matrix_zoom_level_set(Ewk_Tile_Matrix* tileMatrix, float zoom);
    34 void ewk_tile_matrix_invalidate(Ewk_Tile_Matrix* tileMatrix);
     32void ewk_tile_matrix_resize(Ewk_Tile_Matrix *tm, unsigned long cols, unsigned long rows);
     33void ewk_tile_matrix_zoom_level_set(Ewk_Tile_Matrix *tm, float zoom);
     34void ewk_tile_matrix_invalidate(Ewk_Tile_Matrix *tm);
    3535
    36 Ewk_Tile_Unused_Cache* ewk_tile_matrix_unused_cache_get(const Ewk_Tile_Matrix* tm);
     36Ewk_Tile_Unused_Cache *ewk_tile_matrix_unused_cache_get(const Ewk_Tile_Matrix *tm);
    3737
    38 Ewk_Tile* ewk_tile_matrix_tile_exact_get(Ewk_Tile_Matrix* tm, unsigned long col, unsigned long row, float zoom);
    39 Eina_Bool ewk_tile_matrix_tile_exact_exists(Ewk_Tile_Matrix* tm, unsigned long col, unsigned long row, float zoom);
    40 Ewk_Tile* ewk_tile_matrix_tile_nearest_get(Ewk_Tile_Matrix* tm, unsigned long col, unsigned long row, float zoom);
    41 Ewk_Tile* ewk_tile_matrix_tile_new(Ewk_Tile_Matrix* tm, Evas* evas, unsigned long col, unsigned long row, float zoom);
    42 Eina_Bool ewk_tile_matrix_tile_put(Ewk_Tile_Matrix* tm, Ewk_Tile* t, double last_used);
     38Ewk_Tile *ewk_tile_matrix_tile_exact_get(Ewk_Tile_Matrix *tm, unsigned long col, unsigned long row, float zoom);
     39Eina_Bool ewk_tile_matrix_tile_exact_exists(Ewk_Tile_Matrix *tm, unsigned long col, unsigned long row, float zoom);
     40Ewk_Tile *ewk_tile_matrix_tile_nearest_get(Ewk_Tile_Matrix *tm, unsigned long col, unsigned long row, float zoom);
     41Ewk_Tile *ewk_tile_matrix_tile_new(Ewk_Tile_Matrix *tm, Evas *evas, unsigned long col, unsigned long row, float zoom);
     42Eina_Bool ewk_tile_matrix_tile_put(Ewk_Tile_Matrix *tm, Ewk_Tile *t, double last_used);
    4343
    44 Eina_Bool ewk_tile_matrix_tile_update(Ewk_Tile_Matrix* tm, unsigned long col, unsigned long row, const Eina_Rectangle* update);
    45 Eina_Bool ewk_tile_matrix_tile_update_full(Ewk_Tile_Matrix* tm, unsigned long col, unsigned long row);
    46 void ewk_tile_matrix_tile_updates_clear(Ewk_Tile_Matrix* tm, Ewk_Tile* t);
     44Eina_Bool ewk_tile_matrix_tile_update(Ewk_Tile_Matrix *tm, unsigned long col, unsigned long row, const Eina_Rectangle *update);
     45Eina_Bool ewk_tile_matrix_tile_update_full(Ewk_Tile_Matrix *tm, unsigned long col, unsigned long row);
     46void ewk_tile_matrix_tile_updates_clear(Ewk_Tile_Matrix *tm, Ewk_Tile *t);
    4747
    48 Eina_Bool ewk_tile_matrix_update(Ewk_Tile_Matrix* tm, const Eina_Rectangle* update, float zoom);
    49 void ewk_tile_matrix_updates_process(Ewk_Tile_Matrix* tm);
    50 void ewk_tile_matrix_updates_clear(Ewk_Tile_Matrix* tm);
    51 void ewk_tile_matrix_freeze(Ewk_Tile_Matrix* tm);
    52 void ewk_tile_matrix_thaw(Ewk_Tile_Matrix* tm);
     48Eina_Bool ewk_tile_matrix_update(Ewk_Tile_Matrix *tm, const Eina_Rectangle *update, float zoom);
     49void ewk_tile_matrix_updates_process(Ewk_Tile_Matrix *tm);
     50void ewk_tile_matrix_updates_clear(Ewk_Tile_Matrix *tm);
     51void ewk_tile_matrix_freeze(Ewk_Tile_Matrix *tm);
     52void ewk_tile_matrix_thaw(Ewk_Tile_Matrix *tm);
    5353
    5454// remove me!
    55 void ewk_tile_matrix_dbg(const Ewk_Tile_Matrix* tm);
    56 void ewk_tile_unused_cache_dbg(const Ewk_Tile_Unused_Cache* tuc);
     55void ewk_tile_matrix_dbg(const Ewk_Tile_Matrix *tm);
     56void ewk_tile_unused_cache_dbg(const Ewk_Tile_Unused_Cache *tuc);
    5757void ewk_tile_accounting_dbg();
    5858
    59 
    6059#endif // ewk_tiled_matrix_h
    61 
  • trunk/Source/WebKit/efl/ewk/ewk_tiled_model.cpp

    r104908 r106904  
    346346#ifdef TILE_STATS_ACCOUNT_RENDER_TIME
    347347        struct timeval timev;
    348         double render_start;
     348        double renderStartTime;
    349349        gettimeofday(&timev, 0);
    350         render_startile = (double)timev.tv_sec +
     350        renderStartTime = (double)timev.tv_sec +
    351351                       (((double)timev.tv_usec) / 1000000);
    352352#endif
     
    355355        gettimeofday(&timev, 0);
    356356        tile->stats.render_time = (double)timev.tv_sec +
    357                                (((double)timev.tv_usec) / 1000000) - render_start;
     357                               (((double)timev.tv_usec) / 1000000) - renderStartTime;
    358358#endif
    359359    } else if (tile->updates) {
     
    521521
    522522/**
    523  * heightold reference to cache.
     523 * Hold reference to cache.
    524524 *
    525525 * @return same pointer as taken.
     
    631631 *
    632632 * Maintenance tasks optimize cache usage, but maybe we know we should
    633  * heightold on them until we do the last operation, in this case we freeze
     633 * hold on them until we do the last operation, in this case we freeze
    634634 * while operating and then thaw when we're done.
    635635 *
     
    708708 *
    709709 * @param tileUnusedCache cache of unused tiles
    710  * @param t tile to be added to cache.
    711  * @param tile_free_cb function used to free tiles.
     710 * @param tile tile to be added to cache.
     711 * @param tileFreeCallback function used to free tiles.
    712712 * @param data context to give back to @a tile_free_cb as first argument.
    713713 *
     
    717717 * @see ewk_tile_unused_cache_auto_flush()
    718718 */
    719 Eina_Bool ewk_tile_unused_cache_tile_put(Ewk_Tile_Unused_Cache* tileUnusedCache, Ewk_Tile* tile, void (* tileFreeCb)(void* data, Ewk_Tile* tile), const void* data)
     719Eina_Bool ewk_tile_unused_cache_tile_put(Ewk_Tile_Unused_Cache* tileUnusedCache, Ewk_Tile* tile, void (* tileFreeCallback)(void* data, Ewk_Tile* tile), const void* data)
    720720{
    721721    Ewk_Tile_Unused_Cache_Entry* unusedCacheEntry;
     
    738738    unusedCacheEntry->tile = tile;
    739739    unusedCacheEntry->weight = 0; /* calculated just before sort */
    740     unusedCacheEntry->tile_free.callback = tileFreeCb;
     740    unusedCacheEntry->tile_free.callback = tileFreeCallback;
    741741    unusedCacheEntry->tile_free.data = (void*)data;
    742742
     
    759759        const Ewk_Tile* tile = static_cast<Ewk_Tile_Unused_Cache_Entry*>(item)->tile;
    760760        printf(" [%3lu,%3lu + %dx%d @ %0.3f]%c",
    761                tile->col, tile->row, tile->width, tile->height, tile->zoom,
     761               tile->column, tile->row, tile->width, tile->height, tile->zoom,
    762762               tile->visible ? '*' : ' ');
    763763
  • trunk/Source/WebKit/efl/ewk/ewk_tiled_model.h

    r99252 r106904  
    2727
    2828/* model */
    29 Ewk_Tile* ewk_tile_new(Evas* evas, Evas_Coord w, Evas_Coord h, float zoom, Evas_Colorspace cspace);
    30 void ewk_tile_free(Ewk_Tile* t);
    31 void ewk_tile_unused_cache_clear(Ewk_Tile_Unused_Cache* tuc);
    32 void ewk_tile_show(Ewk_Tile* t);
    33 void ewk_tile_hide(Ewk_Tile* t);
    34 size_t ewk_tile_memory_size_get(const Ewk_Tile* t);
    35 Eina_Bool ewk_tile_visible_get(Ewk_Tile* t);
    36 void ewk_tile_update_full(Ewk_Tile* t);
    37 void ewk_tile_update_area(Ewk_Tile* t, const Eina_Rectangle* r);
    38 void ewk_tile_updates_process(Ewk_Tile* t, void (*cb)(void* data, Ewk_Tile* t, const Eina_Rectangle* update), const void* data);
    39 void ewk_tile_updates_clear(Ewk_Tile* t);
     29Ewk_Tile *ewk_tile_new(Evas *evas, Evas_Coord w, Evas_Coord h, float zoom, Evas_Colorspace cspace);
     30void ewk_tile_free(Ewk_Tile *t);
     31void ewk_tile_unused_cache_clear(Ewk_Tile_Unused_Cache *tuc);
     32void ewk_tile_show(Ewk_Tile *t);
     33void ewk_tile_hide(Ewk_Tile *t);
     34size_t ewk_tile_memory_size_get(const Ewk_Tile *t);
     35Eina_Bool ewk_tile_visible_get(Ewk_Tile *t);
     36void ewk_tile_update_full(Ewk_Tile *t);
     37void ewk_tile_update_area(Ewk_Tile *t, const Eina_Rectangle *r);
     38void ewk_tile_updates_process(Ewk_Tile *t, void (*cb)(void *data, Ewk_Tile *t, const Eina_Rectangle *update), const void *data);
     39void ewk_tile_updates_clear(Ewk_Tile *t);
    4040
    4141/* cache of unused tiles */
    42 Ewk_Tile_Unused_Cache* ewk_tile_unused_cache_new(size_t max);
    43 void ewk_tile_unused_cache_lock_area(Ewk_Tile_Unused_Cache* tuc, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h, float zoom);
    44 void ewk_tile_unused_cache_unlock_area(Ewk_Tile_Unused_Cache* tuc);
    45 Ewk_Tile_Unused_Cache* ewk_tile_unused_cache_ref(Ewk_Tile_Unused_Cache* tuc);
    46 void ewk_tile_unused_cache_unref(Ewk_Tile_Unused_Cache* tuc);
     42Ewk_Tile_Unused_Cache *ewk_tile_unused_cache_new(size_t max);
     43void ewk_tile_unused_cache_lock_area(Ewk_Tile_Unused_Cache *tuc, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h, float zoom);
     44void ewk_tile_unused_cache_unlock_area(Ewk_Tile_Unused_Cache *tuc);
     45Ewk_Tile_Unused_Cache *ewk_tile_unused_cache_ref(Ewk_Tile_Unused_Cache *tuc);
     46void ewk_tile_unused_cache_unref(Ewk_Tile_Unused_Cache *tuc);
    4747
    48 void ewk_tile_unused_cache_dirty(Ewk_Tile_Unused_Cache* tuc);
     48void ewk_tile_unused_cache_dirty(Ewk_Tile_Unused_Cache *tuc);
    4949
    50 void ewk_tile_unused_cache_freeze(Ewk_Tile_Unused_Cache* tuc);
    51 void ewk_tile_unused_cache_thaw(Ewk_Tile_Unused_Cache* tuc);
     50void ewk_tile_unused_cache_freeze(Ewk_Tile_Unused_Cache *tuc);
     51void ewk_tile_unused_cache_thaw(Ewk_Tile_Unused_Cache *tuc);
    5252
    53 Eina_Bool ewk_tile_unused_cache_tile_get(Ewk_Tile_Unused_Cache* tuc, Ewk_Tile* t);
    54 Eina_Bool ewk_tile_unused_cache_tile_put(Ewk_Tile_Unused_Cache* tuc, Ewk_Tile* t, void (* tile_free_cb)(void* data, Ewk_Tile* t), const void* data);
     53Eina_Bool ewk_tile_unused_cache_tile_get(Ewk_Tile_Unused_Cache *tuc, Ewk_Tile *t);
     54Eina_Bool ewk_tile_unused_cache_tile_put(Ewk_Tile_Unused_Cache *tuc, Ewk_Tile *t, void (* tile_free_cb)(void *data, Ewk_Tile *t), const void *data);
    5555
    5656#endif // ewk_tiled_model_h
    57 
  • trunk/Source/WebKit/efl/ewk/ewk_util.h

    r95901 r106904  
    3030#include <cairo.h>
    3131
    32 Evas_Object* ewk_util_image_from_cairo_surface_add(Evas* canvas, cairo_surface_t* surface);
     32Evas_Object *ewk_util_image_from_cairo_surface_add(Evas *canvas, cairo_surface_t *surface);
    3333
    3434#endif // ewk_util_h
  • trunk/Source/WebKit/efl/ewk/ewk_view.cpp

    r106772 r106904  
    217217#define EWK_VIEW_TYPE_CHECK(ewkView, ...) do { } while (0)
    218218#else
    219 #define EWK_VIEW_TYPE_CHECK(ewkView, ...)                                     \
    220     do {                                                                \
    221         const char* _tmp_otype = evas_object_type_get(ewkView);               \
    222         const Evas_Smart* _tmp_s = evas_object_smart_smart_get(ewkView);      \
    223         if (EINA_UNLIKELY(!_tmp_s)) {                                   \
    224             EINA_LOG_CRIT                                               \
    225                 ("%p (%s) is not a smart object!", ewkView,                   \
    226                 _tmp_otype ? _tmp_otype : "(null)");                   \
    227             return __VA_ARGS__;                                         \
    228         }                                                               \
     219#define EWK_VIEW_TYPE_CHECK(ewkView, ...) \
     220    do { \
     221        const char* _tmp_otype = evas_object_type_get(ewkView); \
     222        const Evas_Smart* _tmp_s = evas_object_smart_smart_get(ewkView); \
     223        if (EINA_UNLIKELY(!_tmp_s)) { \
     224            EINA_LOG_CRIT \
     225                ("%p (%s) is not a smart object!", ewkView, \
     226                _tmp_otype ? _tmp_otype : "(null)"); \
     227            return __VA_ARGS__; \
     228        } \
    229229        const Evas_Smart_Class* _tmp_sc = evas_smart_class_get(_tmp_s); \
    230         if (EINA_UNLIKELY(!_tmp_sc)) {                                  \
    231             EINA_LOG_CRIT                                               \
    232                 ("%p (%s) is not a smart object!", ewkView,                   \
    233                 _tmp_otype ? _tmp_otype : "(null)");                   \
    234             return __VA_ARGS__;                                         \
    235         }                                                               \
    236         if (EINA_UNLIKELY(_tmp_sc->data != ewkViewTypeString)) {        \
    237             EINA_LOG_CRIT                                               \
    238                 ("%p (%s) is not of an ewk_view (need %p, got %p)!",    \
    239                 ewkView, _tmp_otype ? _tmp_otype : "(null)",                 \
    240                 ewkViewTypeString, _tmp_sc->data);                     \
    241             return __VA_ARGS__;                                         \
    242         }                                                               \
     230        if (EINA_UNLIKELY(!_tmp_sc)) { \
     231            EINA_LOG_CRIT \
     232                ("%p (%s) is not a smart object!", ewkView, \
     233                _tmp_otype ? _tmp_otype : "(null)"); \
     234            return __VA_ARGS__; \
     235        } \
     236        if (EINA_UNLIKELY(_tmp_sc->data != ewkViewTypeString)) { \
     237            EINA_LOG_CRIT \
     238                ("%p (%s) is not of an ewk_view (need %p, got %p)!", \
     239                ewkView, _tmp_otype ? _tmp_otype : "(null)", \
     240                ewkViewTypeString, _tmp_sc->data); \
     241            return __VA_ARGS__; \
     242        } \
    243243    } while (0)
    244244#endif
    245245
    246 #define EWK_VIEW_SD_GET(ewkView, ptr)                                \
    247     Ewk_View_Smart_Data* ptr = static_cast<Ewk_View_Smart_Data*>(evas_object_smart_data_get(ewkView))
    248 
    249 #define EWK_VIEW_SD_GET_OR_RETURN(ewkView, ptr, ...)          \
    250     EWK_VIEW_TYPE_CHECK(ewkView, __VA_ARGS__);                \
    251     EWK_VIEW_SD_GET(ewkView, ptr);                            \
    252     if (!ptr) {                                        \
    253         CRITICAL("no smart data for object %p (%s)",    \
    254                  ewkView, evas_object_type_get(ewkView));           \
    255         return __VA_ARGS__;                             \
    256     }
    257 
    258 #define EWK_VIEW_PRIV_GET(smartData, ptr)              \
    259     Ewk_View_Private_Data *ptr = smartData->_priv
    260 
    261 #define EWK_VIEW_PRIV_GET_OR_RETURN(smartData, ptr, ...)              \
    262     EWK_VIEW_PRIV_GET(smartData, ptr);                                \
    263     if (!ptr) {                                                \
    264         CRITICAL("no private data for object %p (%s)",          \
    265                  smartData->self, evas_object_type_get(smartData->self));     \
    266         return __VA_ARGS__;                                     \
     246#define EWK_VIEW_SD_GET(ewkView, pointer) \
     247    Ewk_View_Smart_Data* pointer = static_cast<Ewk_View_Smart_Data*>(evas_object_smart_data_get(ewkView))
     248
     249#define EWK_VIEW_SD_GET_OR_RETURN(ewkView, pointer, ...) \
     250    EWK_VIEW_TYPE_CHECK(ewkView, __VA_ARGS__); \
     251    EWK_VIEW_SD_GET(ewkView, pointer); \
     252    if (!pointer) { \
     253        CRITICAL("no smart data for object %p (%s)", \
     254                 ewkView, evas_object_type_get(ewkView)); \
     255        return __VA_ARGS__; \
     256    }
     257
     258#define EWK_VIEW_PRIV_GET(smartData, pointer) \
     259    Ewk_View_Private_Data* pointer = smartData->_priv
     260
     261#define EWK_VIEW_PRIV_GET_OR_RETURN(smartData, pointer, ...) \
     262    EWK_VIEW_PRIV_GET(smartData, pointer); \
     263    if (!pointer) { \
     264        CRITICAL("no private data for object %p (%s)", \
     265                 smartData->self, evas_object_type_get(smartData->self)); \
     266        return __VA_ARGS__; \
    267267    }
    268268
     
    411411{
    412412    EWK_VIEW_PRIV_GET(smartData, priv);
    413     WebCore::FocusController* fc = priv->page->focusController();
    414     DBG("ewkView=%p, fc=%p", smartData->self, fc);
    415     EINA_SAFETY_ON_NULL_RETURN_VAL(fc, false);
    416 
    417     fc->setActive(true);
    418     fc->setFocused(true);
     413    WebCore::FocusController* focusController = priv->page->focusController();
     414    DBG("ewkView=%p, focusController=%p", smartData->self, focusController);
     415    EINA_SAFETY_ON_NULL_RETURN_VAL(focusController, false);
     416
     417    focusController->setActive(true);
     418    focusController->setFocused(true);
    419419    return true;
    420420}
     
    996996static Eina_Bool _ewk_view_smart_pre_render_region(Ewk_View_Smart_Data* smartData, Evas_Coord x, Evas_Coord y, Evas_Coord width, Evas_Coord height, float zoom)
    997997{
    998     WRN("not supported by engine. smartDAta=%p area=%d,%d+%dx%d, zoom=%f",
     998    WRN("not supported by engine. smartData=%p area=%d,%d+%dx%d, zoom=%f",
    999999        smartData, x, y, width, height, zoom);
    10001000    return false;
     
    17921792    EWK_VIEW_PRIV_GET_OR_RETURN(smartData, priv, false);
    17931793    EINA_SAFETY_ON_NULL_RETURN_VAL(smartData->api->pre_render_region, false);
    1794     float cur_zoom;
     1794    float currentZoom;
    17951795    Evas_Coord contentsWidth, contentsHeight;
    17961796
     
    18011801        return false;
    18021802
    1803     cur_zoom = ewk_frame_page_zoom_get(smartData->main_frame);
    1804 
    1805     if (cur_zoom < 0.00001)
     1803    currentZoom = ewk_frame_page_zoom_get(smartData->main_frame);
     1804
     1805    if (currentZoom < 0.00001)
    18061806        return false;
    18071807    if (!ewk_frame_contents_size_get(smartData->main_frame, &contentsWidth, &contentsHeight))
    18081808        return false;
    18091809
    1810     contentsWidth *= zoom / cur_zoom;
    1811     contentsHeight *= zoom / cur_zoom;
     1810    contentsWidth *= zoom / currentZoom;
     1811    contentsHeight *= zoom / currentZoom;
    18121812    DBG("region %d,%d+%dx%d @ %f contents=%dx%d", x, y, width, height, zoom, contentsWidth, contentsHeight);
    18131813
     
    29592959 * @param javascript @c true if the new window is originated from javascript,
    29602960 * @c false otherwise
    2961  * @param widthindow_features Features of the new window being created. If it's @c
    2962  * NULL, it will be created a window with default features.
     2961 * @param window_features Features of the new window being created. If it's @c
     2962 * 0, it will be created a window with default features.
    29632963 *
    29642964 * @return New view, in case smart class implements the creation of new windows;
     
    30523052void ewk_view_toolbars_visible_get(Evas_Object* ewkView, bool* visible)
    30533053{
    3054     DBG("%s, o=%p", __func__, ewkView);
     3054    DBG("%s, ewkView=%p", __func__, ewkView);
    30553055    *visible = false;
    30563056    evas_object_smart_callback_call(ewkView, "toolbars,visible,get", visible);
     
    30853085void ewk_view_statusbar_visible_get(Evas_Object* ewkView, bool* visible)
    30863086{
    3087     DBG("%s, o=%p", __func__, ewkView);
     3087    DBG("%s, ewkView=%p", __func__, ewkView);
    30883088    *visible = false;
    30893089    evas_object_smart_callback_call(ewkView, "statusbar,visible,get", visible);
     
    31343134void ewk_view_scrollbars_visible_get(Evas_Object* ewkView, bool* visible)
    31353135{
    3136     DBG("%s, o=%p", __func__, ewkView);
     3136    DBG("%s, ewkView=%p", __func__, ewkView);
    31373137    *visible = false;
    31383138    evas_object_smart_callback_call(ewkView, "scrollbars,visible,get", visible);
     
    31673167void ewk_view_menubar_visible_get(Evas_Object* ewkView, bool* visible)
    31683168{
    3169     DBG("%s, o=%p", __func__, ewkView);
     3169    DBG("%s, ewkView=%p", __func__, ewkView);
    31703170    *visible = false;
    31713171    evas_object_smart_callback_call(ewkView, "menubar,visible,get", visible);
     
    35953595
    35963596    if (maxScale < minScale) {
    3597         WRN("min_scale is larger than max_scale");
     3597        WRN("minScale is larger than maxScale");
    35983598        return false;
    35993599    }
  • trunk/Source/WebKit/efl/ewk/ewk_view.h

    r105152 r106904  
    14431443 *         @c EINA_FALSE if not or on failure
    14441444 */
    1445 EAPI Eina_Bool    ewk_view_setting_enable_frame_flattening_get(const Evas_Object* o);
     1445EAPI Eina_Bool    ewk_view_setting_enable_frame_flattening_get(const Evas_Object *o);
    14461446
    14471447/**
     
    14541454 * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
    14551455 */
    1456 EAPI Eina_Bool    ewk_view_setting_enable_frame_flattening_set(Evas_Object* o, Eina_Bool enable);
     1456EAPI Eina_Bool    ewk_view_setting_enable_frame_flattening_set(Evas_Object *o, Eina_Bool enable);
    14571457
    14581458/**
     
    22892289 * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
    22902290 */
    2291 EAPI Eina_Bool ewk_view_visibility_state_set(Evas_Object* o, Ewk_Page_Visibility_State page_visible_state, Eina_Bool initial_state);
     2291EAPI Eina_Bool ewk_view_visibility_state_set(Evas_Object *o, Ewk_Page_Visibility_State page_visible_state, Eina_Bool initial_state);
    22922292
    22932293/**
  • trunk/Source/WebKit/efl/ewk/ewk_view_single.cpp

    r106424 r106904  
    1010    This library is distributed in the hope that it will be useful,
    1111    but WITHOUT ANY WARRANTY; without even the implied warranty of
    12     MERchANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1313    Library General Public License for more details.
    1414
     
    217217    void* pixels;
    218218    Eina_Rectangle* rect;
    219     const Eina_Rectangle* pr;
    220     const Eina_Rectangle* pr_end;
     219    const Eina_Rectangle* paintRequest;
     220    const Eina_Rectangle* paintRequestEnd;
    221221    Eina_Tiler* tiler;
    222222    Eina_Iterator* iterator;
     
    285285    ewk_view_layout_if_needed_recursive(smartData->_priv);
    286286
    287     pr = ewk_view_repaints_pop(smartData->_priv, &count);
    288     pr_end = pr + count;
    289     for (; pr < pr_end; pr++)
    290         eina_tiler_rect_add(tiler, pr);
     287    paintRequest = ewk_view_repaints_pop(smartData->_priv, &count);
     288    paintRequestEnd = paintRequest + count;
     289    for (; paintRequest < paintRequestEnd; paintRequest++)
     290        eina_tiler_rect_add(tiler, paintRequest);
    291291
    292292    iterator = eina_tiler_iterator_new(tiler);
  • trunk/Source/WebKit/efl/ewk/ewk_view_tiled.cpp

    r106330 r106904  
    7878static Evas_Object* _ewk_view_tiled_smart_backing_store_add(Ewk_View_Smart_Data* smartData)
    7979{
    80     Evas_Object* bs = ewk_tiled_backing_store_add(smartData->base.evas);
     80    Evas_Object* backingStore = ewk_tiled_backing_store_add(smartData->base.evas);
    8181    ewk_tiled_backing_store_render_cb_set
    82         (bs, _ewk_view_tiled_render_cb, smartData->_priv);
     82        (backingStore, _ewk_view_tiled_render_cb, smartData->_priv);
    8383    ewk_tiled_backing_store_updates_process_pre_set
    84         (bs, _ewk_view_tiled_updates_process_pre, smartData->_priv);
    85     return bs;
     84        (backingStore, _ewk_view_tiled_updates_process_pre, smartData->_priv);
     85    return backingStore;
    8686}
    8787
     
    9898static void _ewk_view_tiled_smart_add(Evas_Object* ewkView)
    9999{
    100     Ewk_View_Smart_Data* sd;
     100    Ewk_View_Smart_Data* smartData;
    101101
    102102    _parent_sc.sc.add(ewkView);
    103103
    104     sd = static_cast<Ewk_View_Smart_Data*>(evas_object_smart_data_get(ewkView));
    105     if (!sd)
     104    smartData = static_cast<Ewk_View_Smart_Data*>(evas_object_smart_data_get(ewkView));
     105    if (!smartData)
    106106        return;
    107107
    108108    evas_object_smart_callback_add(
    109         sd->main_frame, "contents,size,changed",
    110         _ewk_view_tiled_contents_size_changed_cb, sd);
     109        smartData->main_frame, "contents,size,changed",
     110        _ewk_view_tiled_contents_size_changed_cb, smartData);
    111111}
    112112
     
    393393Ewk_Tile_Unused_Cache* ewk_view_tiled_unused_cache_get(const Evas_Object* ewkView)
    394394{
    395     Ewk_View_Smart_Data* sd = ewk_view_smart_data_get(ewkView);
    396     EINA_SAFETY_ON_NULL_RETURN_VAL(sd, 0);
    397     return ewk_tiled_backing_store_tile_unused_cache_get(sd->backing_store);
     395    Ewk_View_Smart_Data* smartData = ewk_view_smart_data_get(ewkView);
     396    EINA_SAFETY_ON_NULL_RETURN_VAL(smartData, 0);
     397    return ewk_tiled_backing_store_tile_unused_cache_get(smartData->backing_store);
    398398}
    399399
    400400void ewk_view_tiled_unused_cache_set(Evas_Object* ewkView, Ewk_Tile_Unused_Cache* cache)
    401401{
    402     Ewk_View_Smart_Data* sd = ewk_view_smart_data_get(ewkView);
    403     EINA_SAFETY_ON_NULL_RETURN(sd);
    404     ewk_tiled_backing_store_tile_unused_cache_set(sd->backing_store, cache);
    405 }
     402    Ewk_View_Smart_Data* smartData = ewk_view_smart_data_get(ewkView);
     403    EINA_SAFETY_ON_NULL_RETURN(smartData);
     404    ewk_tiled_backing_store_tile_unused_cache_set(smartData->backing_store, cache);
     405}
Note: See TracChangeset for help on using the changeset viewer.