WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 65302
[EFL] Modify type of both col and row parameters for backing store's internal api.
https://bugs.webkit.org/show_bug.cgi?id=65302
Summary
[EFL] Modify type of both col and row parameters for backing store's internal...
KwangHyuk
Reported
2011-07-27 21:48:30 PDT
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. In addition, in order to increase readability of _ewk_tiled_backing_store_item_fill, some related lines of those parameters are modified.
Attachments
Patch
(3.91 KB, patch)
2011-07-27 21:51 PDT
,
KwangHyuk
no flags
Details
Formatted Diff
Diff
Patch
(3.76 KB, patch)
2011-07-28 05:16 PDT
,
KwangHyuk
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
KwangHyuk
Comment 1
2011-07-27 21:51:48 PDT
Created
attachment 102227
[details]
Patch
Raphael Kubo da Costa (:rakuco)
Comment 2
2011-07-28 05:00:42 PDT
IMO the patch needs further investigation. The data types were changed from _ewk_tiled_backing_store_item_add upwards, but you also need to check which data is passed to it as well (by quickly skimming through the file I can see some long to unsigned int conversions done before item_add is called, for example), so that it is verified that no useless casts are done or whether other data types should be changed. _ewk_tiled_backing_store_view_cols_end_add (which calls item_add) and _ewk_tiled_backing_store_recalc_renderers (which calls end_add) are good starting points.
> Source/WebKit/efl/ChangeLog:7 > + and ewk_tiled_backing_store_item_add are different from each other, I modify type of them.
Extra space after "and".
> Source/WebKit/efl/ChangeLog:9 > + some related lines of those parameters are modified.
From what I see, the changes made were fairly obvious, so this paragraph should not be needed. If you did some changes which were not obvious, it'd be better to mention them below in each function in the ChangeLog instead of here.
KwangHyuk
Comment 3
2011-07-28 05:16:24 PDT
Created
attachment 102242
[details]
Patch
KwangHyuk
Comment 4
2011-07-28 05:27:08 PDT
First of all, thank you for your review,
> The data types were changed from _ewk_tiled_backing_store_item_add upwards, but you also need to check which data is passed to it as well (by quickly skimming through the file I can see some long to unsigned int conversions done before item_add is called, for example), so that it is verified that no useless casts are done or whether other data types should be changed. _ewk_tiled_backing_store_view_cols_end_add (which calls item_add) and _ewk_tiled_backing_store_recalc_renderers (which calls end_add) are good starting points.
I agree with you. In order to reduce the type conversions, tiled_matrix and callers data type are better to be changed. So, I will generate new patch for it soon. In addition, as you know, eina_matrixsparse is now using unsigned long type for both col and row parameter, so, I am thinking that ewk is also better to use same parameter type for col and row.
> Extra space after "and".
Fixed.
> From what I see, the changes made were fairly obvious, so this paragraph should not be needed.
Fixed.
KwangHyuk
Comment 5
2011-08-09 05:39:25 PDT
Shall i get your opinion for the 2nd patch, :-)
Leandro Pereira
Comment 6
2011-08-09 07:34:12 PDT
Comment on
attachment 102242
[details]
Patch Informal r+.
Adam Roben (:aroben)
Comment 7
2011-08-19 05:25:20 PDT
Comment on
attachment 102242
[details]
Patch Hopefully callers never pass negative values to these functions.
WebKit Review Bot
Comment 8
2011-08-19 06:23:51 PDT
Comment on
attachment 102242
[details]
Patch Clearing flags on attachment: 102242 Committed
r93399
: <
http://trac.webkit.org/changeset/93399
>
WebKit Review Bot
Comment 9
2011-08-19 06:23:56 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.
Top of Page
Format For Printing
XML
Clone This Bug