RESOLVED FIXED 54392
[EFL] Adjust functions of RenderThemeEfl.cpp to WebKit parameter style
https://bugs.webkit.org/show_bug.cgi?id=54392
Summary [EFL] Adjust functions of RenderThemeEfl.cpp to WebKit parameter style
Gyuyoung Kim
Reported Monday, February 14, 2011 4:01:19 PM UTC
In Bug 53906, I add dummy functions to RenderThemeEFl.cpp. But, the added function's parameter is different from other's. Other function : bool RenderThemeEfl::paintSearchFieldResultsButton(RenderObject* o, const PaintInfo& i, const IntRect& rect) bool RenderThemeEfl::paintSearchFieldResultsDecoration(RenderObject* o, const PaintInfo& i, const IntRect& rect) bool RenderThemeEfl::paintSearchFieldCancelButton(RenderObject* o, const PaintInfo& i, const IntRect& rect) ... Added functions : bool RenderThemeEfl::paintMediaMuteButton(RenderObject* renderObject, const PaintInfo& paintInfo, const IntRect& re ct) bool RenderThemeEfl::paintMediaPlayButton(RenderObject* renderObject, const PaintInfo& paintInfo, const IntRect& rect) ... I'd like to change "paintInfo" with "i" in order to sync with other functions.
Attachments
Patch (4.74 KB, patch)
2011-02-14 08:07 PST, Gyuyoung Kim
tonikitoo: review+
gyuyoung.kim: commit-queue-
Patch (4.66 KB, patch)
2011-02-14 14:13 PST, Gyuyoung Kim
mrobinson: review-
Patch (42.26 KB, patch)
2011-03-03 16:21 PST, Gyuyoung Kim
no flags
Gyuyoung Kim
Comment 1 Monday, February 14, 2011 4:07:02 PM UTC
Antonio Gomes
Comment 2 Monday, February 14, 2011 4:36:57 PM UTC
Comment on attachment 82316 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=82316&action=review > Source/WebCore/ChangeLog:9 > + Change pamater name of new functions. type: pamater
Antonio Gomes
Comment 3 Monday, February 14, 2011 4:37:32 PM UTC
(In reply to comment #2) > (From update of attachment 82316 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=82316&action=review > > > Source/WebCore/ChangeLog:9 > > + Change pamater name of new functions. > > type: pamater typo even :)
Gyuyoung Kim
Comment 4 Monday, February 14, 2011 10:13:33 PM UTC
Gyuyoung Kim
Comment 5 Monday, February 14, 2011 11:41:35 PM UTC
Hello Antonio :-) Thank you for your review. I fix wrong spelling. And, I change parameter name one more thing. Other functions are using "o" for RenderObject* parameter. So, I change renderObject with o as well.
Antonio Gomes
Comment 6 Thursday, February 17, 2011 2:09:49 PM UTC
Comment on attachment 82360 [details] Patch After thinking a bit more about this, we try to avoid abreviations in the source code. Maybe we should renamed it the other way around? Also, most of the parameters are ununsed anyways. I know other ports also abreviate variable names in their respective RenderThemeXXX methods, but ...
Kent Tamura
Comment 7 Thursday, February 17, 2011 2:43:18 PM UTC
I like the original code. Abbreviations are not good.
Martin Robinson
Comment 8 Thursday, February 17, 2011 11:23:23 PM UTC
Comment on attachment 82360 [details] Patch Moving to abbreviations is not the right way to go here. :)
Gyuyoung Kim
Comment 9 Friday, March 4, 2011 12:21:04 AM UTC
Created attachment 84649 [details] Patch Functions of RenderThemeEfl.cpp have efl coding style. But, WebCore's functions should adhere WebKit coding style. So, I modify the efl style parameter as below, - EvasObject* o -> EvasObject* object - ThemePartCacheEntry* ce -> ThemePartCacheEntry* entry - PaintInfo& i -> PaintInfo& info - RenderObject* o -> RenderObject* object
Eric Seidel (no email)
Comment 10 Friday, March 4, 2011 12:24:06 AM UTC
Comment on attachment 84649 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=84649&action=review Yay! LGTM. > Source/WebCore/platform/efl/RenderThemeEfl.cpp:1119 > +bool RenderThemeEfl::paintMediaCurrentTime(RenderObject* object, const PaintInfo& info, const IntRect& rect) Why info instead of paintInfo?
Kent Tamura
Comment 11 Friday, March 4, 2011 12:30:28 AM UTC
Comment on attachment 84649 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=84649&action=review > Source/WebCore/platform/efl/RenderThemeEfl.cpp:119 > + struct ThemePartCacheEntry *entry = new struct ThemePartCacheEntry; nit: We had better use OwnPtr<ThemePartCacheEntry> to avoid 'delete'.
Gyuyoung Kim
Comment 12 Friday, March 4, 2011 12:38:39 AM UTC
(In reply to comment #10) > (From update of attachment 84649 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=84649&action=review > > Yay! LGTM. > > > Source/WebCore/platform/efl/RenderThemeEfl.cpp:1119 > > +bool RenderThemeEfl::paintMediaCurrentTime(RenderObject* object, const PaintInfo& info, const IntRect& rect) > > Why info instead of paintInfo? I'd like to keep sync with other parameters. Other parameters use last name of data type.
Gyuyoung Kim
Comment 13 Friday, March 4, 2011 12:39:56 AM UTC
(In reply to comment #12) > (In reply to comment #10) > > (From update of attachment 84649 [details] [details]) > > View in context: https://bugs.webkit.org/attachment.cgi?id=84649&action=review > > > > Yay! LGTM. > > > > > Source/WebCore/platform/efl/RenderThemeEfl.cpp:1119 > > > +bool RenderThemeEfl::paintMediaCurrentTime(RenderObject* object, const PaintInfo& info, const IntRect& rect) > > > > Why info instead of paintInfo? > > I'd like to keep sync with other parameters. Other parameters use last name of data type. Thank you for your comment. (In reply to comment #11) > (From update of attachment 84649 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=84649&action=review > > > Source/WebCore/platform/efl/RenderThemeEfl.cpp:119 > > + struct ThemePartCacheEntry *entry = new struct ThemePartCacheEntry; > > nit: We had better use OwnPtr<ThemePartCacheEntry> to avoid 'delete'. Thank you for your guidance. This seem to be processed by new bug. I will make a bug for it.
WebKit Commit Bot
Comment 14 Friday, March 4, 2011 5:51:04 AM UTC
Comment on attachment 84649 [details] Patch Clearing flags on attachment: 84649 Committed r80324: <http://trac.webkit.org/changeset/80324>
WebKit Commit Bot
Comment 15 Friday, March 4, 2011 5:51:11 AM UTC
All reviewed patches have been landed. Closing bug.
WebKit Review Bot
Comment 16 Friday, March 4, 2011 6:05:51 AM UTC
http://trac.webkit.org/changeset/80324 might have broken EFL Linux Release (Build)
Note You need to log in before you can comment on or make changes to this bug.