Bug 79362 - [EFL] Remove a duplicate allocation of matrix entry.
Summary: [EFL] Remove a duplicate allocation of matrix entry.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-23 06:23 PST by JungJik Lee
Modified: 2012-03-13 05:38 PDT (History)
7 users (show)

See Also:


Attachments
proposal patch (6.99 KB, patch)
2012-02-28 02:14 PST, JungJik Lee
no flags Details | Formatted Diff | Diff
patch_1 (6.51 KB, patch)
2012-02-29 08:28 PST, JungJik Lee
no flags Details | Formatted Diff | Diff
patch_2 (6.79 KB, patch)
2012-03-04 08:58 PST, JungJik Lee
no flags Details | Formatted Diff | Diff
patch_3 (6.76 KB, patch)
2012-03-12 02:57 PDT, JungJik Lee
no flags Details | Formatted Diff | Diff
patch_4 (6.75 KB, patch)
2012-03-12 03:21 PDT, JungJik Lee
no flags Details | Formatted Diff | Diff
patch_5 (6.74 KB, patch)
2012-03-13 00:37 PDT, JungJik Lee
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description JungJik Lee 2012-02-23 06:23:13 PST
A matrix is created inside ewk_tile_matrix_new and another matrix is created inside ewk_tile_matrix_zoom_level_set.
So the first matrix is the duplicated one without any use. This patch is for getting rid of a duplicated creation of the matrix.
Comment 1 JungJik Lee 2012-02-28 02:14:21 PST
Created attachment 129218 [details]
proposal patch
Comment 2 JungJik Lee 2012-02-29 08:28:14 PST
Created attachment 129455 [details]
patch_1
Comment 3 JungJik Lee 2012-03-04 08:58:40 PST
Created attachment 130028 [details]
patch_2
Comment 4 Zoltan Herczeg 2012-03-12 02:42:40 PDT
Comment on attachment 130028 [details]
patch_2

Patch looks good, one minor thing:

View in context: https://bugs.webkit.org/attachment.cgi?id=130028&action=review

> Source/WebKit/efl/ewk/ewk_tiled_matrix.cpp:371
> +    eina_matrixsparse_size_get(tileMatrix->matrix , rows, columns);

remove space before "rows"
Comment 5 JungJik Lee 2012-03-12 02:57:20 PDT
Created attachment 131304 [details]
patch_3
Comment 6 Gyuyoung Kim 2012-03-12 03:03:14 PDT
Comment on attachment 131304 [details]
patch_3

View in context: https://bugs.webkit.org/attachment.cgi?id=131304&action=review

> Source/WebKit/efl/ewk/ewk_tiled_matrix.cpp:238
> + * Find the matrix with the same zoom(@param) and set it as current matrix.

Is @param needed certainly in this comment ?

> Source/WebKit/efl/ewk/ewk_tiled_matrix.cpp:366
> + * Get the current matrix size.

Missing comments related to param, return for this function.
Comment 7 JungJik Lee 2012-03-12 03:13:32 PDT
Comment on attachment 131304 [details]
patch_3

View in context: https://bugs.webkit.org/attachment.cgi?id=131304&action=review

>> Source/WebKit/efl/ewk/ewk_tiled_matrix.cpp:238
>> + * Find the matrix with the same zoom(@param) and set it as current matrix.
> 
> Is @param needed certainly in this comment ?

I thought It could make more clear but I could remove it.

>> Source/WebKit/efl/ewk/ewk_tiled_matrix.cpp:366
>> + * Get the current matrix size.
> 
> Missing comments related to param, return for this function.

This API is obvious for purpose. Does it need more description?
Comment 8 JungJik Lee 2012-03-12 03:21:31 PDT
Created attachment 131308 [details]
patch_4

Remove a word on the comment.
Comment 9 Gyuyoung Kim 2012-03-12 06:05:17 PDT
(In reply to comment #7)
 
> This API is obvious for purpose. Does it need more description?

If you want to add function description, in my humble opinion, it is better to adhere doxyzen rule regardless of internal | public.  ewk_view.cpp also added function description as below,

/**
 * @internal                                                              
 *
 * @param ewkView View.                                                   
 * @param message String to show on console.
 * @param lineNumber Line number.                                         
 * @sourceID Source id.
 *
 */ 
void ewk_view_add_console_message(Evas_Object* ewkView, const char* message, unsigned int lineNumber, const char* sourceID)

Grzegorz, how do you think about it ?
Comment 10 Grzegorz Czajkowski 2012-03-12 08:03:46 PDT
(In reply to comment #9)
> (In reply to comment #7)
> > This API is obvious for purpose. Does it need more description?
> If you want to add function description, in my humble opinion, it is better to adhere doxyzen rule regardless of internal | public.  ewk_view.cpp also added function description as below,
> /**
>  * @internal                                                              
>  *
>  * @param ewkView View.                                                   
>  * @param message String to show on console.
>  * @param lineNumber Line number.                                         
>  * @sourceID Source id.
>  *
>  */ 
> void ewk_view_add_console_message(Evas_Object* ewkView, const char* message, unsigned int lineNumber, const char* sourceID)
> Grzegorz, how do you think about it ?

If this function requires documentation I also will use doxygen. Generally backing store doesn't have extended documentation (its purpose is rather for internal use).In my opinion there is no needed to add doxygen documentation for each backing store function.
Comment 11 JungJik Lee 2012-03-13 00:37:42 PDT
Created attachment 131565 [details]
patch_5

Minor fix : remove the comment.
Comment 12 Gyuyoung Kim 2012-03-13 00:49:00 PDT
LGTM.
Comment 13 Zoltan Herczeg 2012-03-13 05:24:21 PDT
Comment on attachment 131565 [details]
patch_5

r=me
Comment 14 WebKit Review Bot 2012-03-13 05:38:51 PDT
Comment on attachment 131565 [details]
patch_5

Clearing flags on attachment: 131565

Committed r110556: <http://trac.webkit.org/changeset/110556>
Comment 15 WebKit Review Bot 2012-03-13 05:38:57 PDT
All reviewed patches have been landed.  Closing bug.