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 205716
[GTK][WPE] Add API to retrieve and delete surrounding text for input methods
https://bugs.webkit.org/show_bug.cgi?id=205716
Summary
[GTK][WPE] Add API to retrieve and delete surrounding text for input methods
Carlos Garcia Campos
Reported
2020-01-03 05:07:35 PST
.
Attachments
Patch
(48.59 KB, patch)
2020-01-03 05:19 PST
,
Carlos Garcia Campos
zan
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2020-01-03 05:19:21 PST
Created
attachment 386674
[details]
Patch
Zan Dobersek
Comment 2
2020-01-07 02:37:43 PST
Comment on
attachment 386674
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=386674&action=review
> Source/WebKit/UIProcess/API/gtk/WebKitInputMethodContextImplGtk.cpp:32 > + unsigned surroundingCursorIndex;
Maybe explicitly initialize this to 0.
> Source/WebKit/UIProcess/WebPageProxy.cpp:8213 > +void WebPageProxy::deleteSurrounding(int offset, unsigned characterCount)
Should this be an int64_t, to match the WebPage::deleteSurrounding()?
> Tools/TestWebKitAPI/Tests/WebKitGLib/TestInputMethodContext.cpp:45 > + unsigned surroundingCursorIndex;
Maybe initialize this too, if needed.
Carlos Garcia Campos
Comment 3
2020-01-07 02:43:01 PST
Comment on
attachment 386674
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=386674&action=review
>> Source/WebKit/UIProcess/API/gtk/WebKitInputMethodContextImplGtk.cpp:32 >> + unsigned surroundingCursorIndex; > > Maybe explicitly initialize this to 0.
We don't do explicit initializations in GObject private structs because they are always zero-filled on allocation by GLib.
>> Source/WebKit/UIProcess/WebPageProxy.cpp:8213 >> +void WebPageProxy::deleteSurrounding(int offset, unsigned characterCount) > > Should this be an int64_t, to match the WebPage::deleteSurrounding()?
Yes, I forgot to change this one
>> Tools/TestWebKitAPI/Tests/WebKitGLib/TestInputMethodContext.cpp:45 >> + unsigned surroundingCursorIndex; > > Maybe initialize this too, if needed.
It's not needed, it's already zero-filled on allocation.
Carlos Garcia Campos
Comment 4
2020-01-07 03:00:05 PST
Committed
r254122
: <
https://trac.webkit.org/changeset/254122
>
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