WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
100969
[EFL][WK2] Remove redundant internal function
https://bugs.webkit.org/show_bug.cgi?id=100969
Summary
[EFL][WK2] Remove redundant internal function
Jinwoo Song
Reported
2012-11-01 10:05:22 PDT
ewk_view_text_found() in ewk_view.cpp is not used anymore, so we can remove it.
Attachments
Patch
(1.53 KB, patch)
2012-11-01 10:08 PDT
,
Jinwoo Song
no flags
Details
Formatted Diff
Diff
Patch
(1.68 KB, patch)
2012-11-01 22:54 PDT
,
Jinwoo Song
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Jinwoo Song
Comment 1
2012-11-01 10:08:43 PDT
Created
attachment 171883
[details]
Patch
Gyuyoung Kim
Comment 2
2012-11-01 21:56:52 PDT
Comment on
attachment 171883
[details]
Patch In ewk_view_text_matches_count(), there is below comment. Don't you need to send this signal rather than to remove this ? * The "text,found" callback will be called with the number of matched string. EAPI Eina_Bool ewk_view_text_matches_count(Evas_Object *o, const char *text, Ewk_Find_Options options, unsigned max_match_count);
Jinwoo Song
Comment 3
2012-11-01 22:38:13 PDT
"text,found" callback is emitted from didFindString in FindClientEfl.cpp. void FindClientEfl::didFindString(WKPageRef, WKStringRef, unsigned matchCount, const void* clientInfo) { FindClientEfl* findClient = toFindClientEfl(clientInfo); findClient->m_viewImpl->smartCallback<TextFound>().call(&matchCount); } FindClientEfl::FindClientEfl(EwkViewImpl* viewImpl) : m_viewImpl(viewImpl) { ... findClient.didCountStringMatches = didFindString; ... } As you know, smart callback call has been refactored, so ewk_view_text_found() is not used anymore.
Gyuyoung Kim
Comment 4
2012-11-01 22:45:57 PDT
Comment on
attachment 171883
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=171883&action=review
Yes, right. Thanks.
> Source/WebKit2/ChangeLog:8 > + Remove ewk_view_text_found() in ewk_view.cpp which is not used anymore.
It would be good if you say this signal is emitted by DECLARE_EWK_VIEW_CALLBACK(TextFound, "text,found", unsigned) in EwkViewCallback.h instead.
Chris Dumez
Comment 5
2012-11-01 22:49:00 PDT
Comment on
attachment 171883
[details]
Patch Right, we missed this one. Thanks. LGTM.
Jinwoo Song
Comment 6
2012-11-01 22:53:51 PDT
(In reply to
comment #4
)
> (From update of
attachment 171883
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=171883&action=review
> > Yes, right. Thanks. > > > Source/WebKit2/ChangeLog:8 > > + Remove ewk_view_text_found() in ewk_view.cpp which is not used anymore. > > It would be good if you say this signal is emitted by DECLARE_EWK_VIEW_CALLBACK(TextFound, "text,found", unsigned) in EwkViewCallback.h instead.
I'll update the ChangeLog as your advice.
Jinwoo Song
Comment 7
2012-11-01 22:54:39 PDT
Created
attachment 171987
[details]
Patch
WebKit Review Bot
Comment 8
2012-11-02 00:16:00 PDT
Comment on
attachment 171987
[details]
Patch Clearing flags on attachment: 171987 Committed
r133269
: <
http://trac.webkit.org/changeset/133269
>
WebKit Review Bot
Comment 9
2012-11-02 00:16:05 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