WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
64260
[EFL] ewk_frame_hit_test_new enhancement
https://bugs.webkit.org/show_bug.cgi?id=64260
Summary
[EFL] ewk_frame_hit_test_new enhancement
Michal Pakula vel Rutka
Reported
2011-07-11 04:28:17 PDT
This patch enhances Ewk_Hit_Test structure by replacing structure flags with enum Ewk_Hit_Test_Result_Context and adding two fields containing image and media uri. Respective changes are also made in EWebLauncher.
Attachments
proposed patch
(6.29 KB, patch)
2011-07-11 04:29 PDT
,
Michal Pakula vel Rutka
no flags
Details
Formatted Diff
Diff
fixed patch
(6.19 KB, patch)
2011-07-11 06:04 PDT
,
Michal Pakula vel Rutka
no flags
Details
Formatted Diff
Diff
fixed patch
(6.19 KB, patch)
2011-07-11 06:13 PDT
,
Michal Pakula vel Rutka
no flags
Details
Formatted Diff
Diff
changed C-cast to static_cast + code style according to Raphael's suggestions
(6.21 KB, patch)
2011-07-11 07:14 PDT
,
Michal Pakula vel Rutka
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Michal Pakula vel Rutka
Comment 1
2011-07-11 04:29:48 PDT
Created
attachment 100263
[details]
proposed patch
Michal Pakula vel Rutka
Comment 2
2011-07-11 06:04:08 PDT
Created
attachment 100284
[details]
fixed patch
Michal Pakula vel Rutka
Comment 3
2011-07-11 06:13:10 PDT
Created
attachment 100285
[details]
fixed patch
Raphael Kubo da Costa (:rakuco)
Comment 4
2011-07-11 06:32:14 PDT
When you update the patch, please describe briefly what has changed in the new version, otherwise one needs to use "Diff" -> "Differences between" to find out.
> Source/WebKit/efl/ewk/ewk_frame.cpp:1068 > + hit_test->context = (Ewk_Hit_Test_Result_Context)context;
Do you really need this cast? If so, please use a C++ cast.
> Tools/EWebLauncher/main.c:558 > + "%s"
Perhaps indent the lines here instead of below? This way you'd have " %s\n" /* code */ ht->context & EWK_HIT_TEST_RESULT_FOO ? "FOO" : "",
> Tools/EWebLauncher/main.c:573 > + ht->context & EWK_HIT_TEST_RESULT_CONTEXT_LINK ? " LINK\n": "",
Pleas add a space before the ":"
Michal Pakula vel Rutka
Comment 5
2011-07-11 06:56:57 PDT
(In reply to
comment #4
)
> When you update the patch, please describe briefly what has changed in the new version, otherwise one needs to use "Diff" -> "Differences between" to find out. >
OK
> > Source/WebKit/efl/ewk/ewk_frame.cpp:1068 > > + hit_test->context = (Ewk_Hit_Test_Result_Context)context; > > Do you really need this cast? If so, please use a C++ cast. >
Yes, I think is needed here, anyway I will change it to static_cast.
> > Tools/EWebLauncher/main.c:558 > > + "%s" > > Perhaps indent the lines here instead of below? This way you'd have > > " %s\n" > /* code */ > ht->context & EWK_HIT_TEST_RESULT_FOO ? "FOO" : "", >
But then when ht->context & EWK_HIT_TEST_RESULT_FOO will be false we will get two spaces and there will be problem with aligning contexts.
> > Tools/EWebLauncher/main.c:573 > > + ht->context & EWK_HIT_TEST_RESULT_CONTEXT_LINK ? " LINK\n": "", > > Pleas add a space before the ":"
OK
Raphael Kubo da Costa (:rakuco)
Comment 6
2011-07-11 07:01:37 PDT
(In reply to
comment #5
)
> > > Tools/EWebLauncher/main.c:558 > > > + "%s" > > > > Perhaps indent the lines here instead of below? This way you'd have > > > > " %s\n" > > /* code */ > > ht->context & EWK_HIT_TEST_RESULT_FOO ? "FOO" : "", > > > > But then when ht->context & EWK_HIT_TEST_RESULT_FOO will be false we will get two spaces and there will be problem with aligning contexts.
Oh, you're right. Sorry.
Michal Pakula vel Rutka
Comment 7
2011-07-11 07:14:35 PDT
Created
attachment 100296
[details]
changed C-cast to static_cast + code style according to Raphael's suggestions
Raphael Kubo da Costa (:rakuco)
Comment 8
2011-07-11 08:41:09 PDT
LGTM.
Gyuyoung Kim
Comment 9
2011-07-11 17:48:18 PDT
LGTM too.
WebKit Review Bot
Comment 10
2011-07-22 10:31:17 PDT
Comment on
attachment 100296
[details]
changed C-cast to static_cast + code style according to Raphael's suggestions Clearing flags on attachment: 100296 Committed
r91572
: <
http://trac.webkit.org/changeset/91572
>
WebKit Review Bot
Comment 11
2011-07-22 10:31:22 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