Changeset 93399 in webkit


Ignore:
Timestamp:
Aug 19, 2011 6:23:38 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Modify type of both col and row parameters for backing store's internal api.
https://bugs.webkit.org/show_bug.cgi?id=65302

As both col and row parameter's type for both _ewk_tiled_backing_store_item_fill
and ewk_tiled_backing_store_item_add are different from each other, I modify type of them.

Patch by KwangHyuk Kim <hyuki.kim@samsung.com> on 2011-08-19
Reviewed by Adam Roben.

  • ewk/ewk_tiled_backing_store.c:

(_ewk_tiled_backing_store_item_fill):
(_ewk_tiled_backing_store_item_add):

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

Legend:

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

    r93379 r93399  
     12011-08-19  KwangHyuk Kim  <hyuki.kim@samsung.com>
     2
     3        [EFL] Modify type of both col and row parameters for backing store's internal api.
     4        https://bugs.webkit.org/show_bug.cgi?id=65302
     5
     6        As both col and row parameter's type for both _ewk_tiled_backing_store_item_fill
     7        and ewk_tiled_backing_store_item_add are different from each other, I modify type of them.
     8
     9        Reviewed by Adam Roben.
     10
     11        * ewk/ewk_tiled_backing_store.c:
     12        (_ewk_tiled_backing_store_item_fill):
     13        (_ewk_tiled_backing_store_item_add):
     14
    1152011-08-18  Ryuan Choi  <ryuan.choi@samsung.com>
    216
  • trunk/Source/WebKit/efl/ewk/ewk_tiled_backing_store.c

    r92758 r93399  
    425425}
    426426
    427 static inline Eina_Bool _ewk_tiled_backing_store_item_fill(Ewk_Tiled_Backing_Store_Data *priv, Ewk_Tiled_Backing_Store_Item *it, long col, int row)
    428 {
    429     long m_col = priv->model.base.col + col;
    430     long m_row = priv->model.base.row + row;
     427static inline Eina_Bool _ewk_tiled_backing_store_item_fill(Ewk_Tiled_Backing_Store_Data *priv, Ewk_Tiled_Backing_Store_Item *it, unsigned long col, unsigned long row)
     428{
     429    unsigned long m_col = priv->model.base.col + col;
     430    unsigned long m_row = priv->model.base.row + row;
    431431    double last_used = ecore_loop_time_get();
    432432
    433     if (m_col < 0 || m_row < 0
    434         || (unsigned long)(m_col) >= priv->model.cur.cols
    435         || (unsigned long)(m_row) >= priv->model.cur.rows) {
    436 
     433    if (m_col >= priv->model.cur.cols || m_row >= priv->model.cur.rows) {
    437434        if (it->tile)
    438435            _ewk_tiled_backing_store_tile_dissociate(priv, it, last_used);
     
    443440        if (it->tile) {
    444441            Ewk_Tile *old = it->tile;
    445             if (old->row != (unsigned long)(m_row)
    446                 || old->col != (unsigned long)(m_col)
    447                 || old->zoom != zoom) {
    448                 _ewk_tiled_backing_store_tile_dissociate(priv, it,
    449                                                          last_used);
    450 
    451             } else if (old->row == (unsigned long)(m_row)
    452                        && old->col == (unsigned long)(m_col)
    453                        && old->zoom == zoom)
     442            if (old->row != m_row || old->col != m_col || old->zoom != zoom)
     443                _ewk_tiled_backing_store_tile_dissociate(priv, it, last_used);
     444            else if (old->row == m_row && old->col == m_col && old->zoom == zoom)
    454445                goto end;
    455446        }
    456447
    457         t = ewk_tile_matrix_tile_exact_get
    458             (priv->model.matrix, m_col, m_row, zoom);
     448        t = ewk_tile_matrix_tile_exact_get(priv->model.matrix, m_col, m_row, zoom);
     449
    459450        if (!t) {
    460451            /* NOTE: it never returns NULL if it->tile was set! */
     
    487478}
    488479
    489 static Ewk_Tiled_Backing_Store_Item *_ewk_tiled_backing_store_item_add(Ewk_Tiled_Backing_Store_Data *priv, long col, int row)
     480static Ewk_Tiled_Backing_Store_Item *_ewk_tiled_backing_store_item_add(Ewk_Tiled_Backing_Store_Data *priv, unsigned long col, unsigned long row)
    490481{
    491482    Ewk_Tiled_Backing_Store_Item *it;
Note: See TracChangeset for help on using the changeset viewer.