RESOLVED FIXED Bug 79362
[EFL] Remove a duplicate allocation of matrix entry.
https://bugs.webkit.org/show_bug.cgi?id=79362
Summary [EFL] Remove a duplicate allocation of matrix entry.
JungJik Lee
Reported 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.
Attachments
proposal patch (6.99 KB, patch)
2012-02-28 02:14 PST, JungJik Lee
no flags
patch_1 (6.51 KB, patch)
2012-02-29 08:28 PST, JungJik Lee
no flags
patch_2 (6.79 KB, patch)
2012-03-04 08:58 PST, JungJik Lee
no flags
patch_3 (6.76 KB, patch)
2012-03-12 02:57 PDT, JungJik Lee
no flags
patch_4 (6.75 KB, patch)
2012-03-12 03:21 PDT, JungJik Lee
no flags
patch_5 (6.74 KB, patch)
2012-03-13 00:37 PDT, JungJik Lee
no flags
JungJik Lee
Comment 1 2012-02-28 02:14:21 PST
Created attachment 129218 [details] proposal patch
JungJik Lee
Comment 2 2012-02-29 08:28:14 PST
JungJik Lee
Comment 3 2012-03-04 08:58:40 PST
Zoltan Herczeg
Comment 4 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"
JungJik Lee
Comment 5 2012-03-12 02:57:20 PDT
Gyuyoung Kim
Comment 6 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.
JungJik Lee
Comment 7 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?
JungJik Lee
Comment 8 2012-03-12 03:21:31 PDT
Created attachment 131308 [details] patch_4 Remove a word on the comment.
Gyuyoung Kim
Comment 9 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 ?
Grzegorz Czajkowski
Comment 10 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.
JungJik Lee
Comment 11 2012-03-13 00:37:42 PDT
Created attachment 131565 [details] patch_5 Minor fix : remove the comment.
Gyuyoung Kim
Comment 12 2012-03-13 00:49:00 PDT
LGTM.
Zoltan Herczeg
Comment 13 2012-03-13 05:24:21 PDT
Comment on attachment 131565 [details] patch_5 r=me
WebKit Review Bot
Comment 14 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>
WebKit Review Bot
Comment 15 2012-03-13 05:38:57 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.