WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
67569
Rename confirmCompositionWithoutDisturbingSelection to cancelComposition
https://bugs.webkit.org/show_bug.cgi?id=67569
Summary
Rename confirmCompositionWithoutDisturbingSelection to cancelComposition
Ryosuke Niwa
Reported
2011-09-03 16:37:09 PDT
Per discussion on the
bug 67377
, we found that confirmCompositionWithoutDisturbingSelection is only used to cancel composition and the corresponding changeset
http://trac.webkit.org/changeset/94497
made a change that enforces this notion. We should rename this function to match the actual behavior now.
Attachments
cleanup
(16.61 KB, patch)
2011-09-06 12:49 PDT
,
Ryosuke Niwa
tonikitoo
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2011-09-06 12:49:15 PDT
Created
attachment 106469
[details]
cleanup
Kenneth Rohde Christiansen
Comment 2
2011-09-06 13:17:37 PDT
So what if I really want to confirm? We are depending a lot of this method in our slightly outdated branch as we commit the composition instead of cancelling it in many cases (ie. moving from one field to another etc)
Antonio Gomes
Comment 3
2011-09-06 13:20:21 PDT
(In reply to
comment #2
)
> So what if I really want to confirm? We are depending a lot of this method in our slightly outdated branch as we commit the composition instead of cancelling it in many cases (ie. moving from one field to another etc)
r+ upon kenneth's concern is not an issue. I was about to ask the same: if one want to cancel selection without actually disturbing selection.
Kenneth Rohde Christiansen
Comment 4
2011-09-06 13:23:23 PDT
(In reply to
comment #3
)
> (In reply to
comment #2
) > > So what if I really want to confirm? We are depending a lot of this method in our slightly outdated branch as we commit the composition instead of cancelling it in many cases (ie. moving from one field to another etc) > > r+ upon kenneth's concern is not an issue. > > I was about to ask the same: if one want to cancel selection without actually disturbing selection.
We kind of need that. That is how our mobile platform works. We commit when loosing focus (could be just moving the cursor position with a touch in the same input field) and before injecting compositions into our virtual keyboard (used when the user touches a word and it becomes a composition)
Antonio Gomes
Comment 5
2011-09-06 13:25:43 PDT
(In reply to
comment #4
)
> (In reply to
comment #3
) > > (In reply to
comment #2
) > > > So what if I really want to confirm? We are depending a lot of this method in our slightly outdated branch as we commit the composition instead of cancelling it in many cases (ie. moving from one field to another etc) > > > > r+ upon kenneth's concern is not an issue. > > > > I was about to ask the same: if one want to cancel selection without actually disturbing selection. > > We kind of need that. That is how our mobile platform works. We commit when loosing focus (could be just moving the cursor position with a touch in the same input field) and before injecting compositions into our virtual keyboard (used when the user touches a word and it becomes a composition)
Although the patch is not chaning any actual behavior, but cleaning it up instead. So if it is/was broken for us with the patch, it will keep beeing.
Kenneth Rohde Christiansen
Comment 6
2011-09-06 13:28:28 PDT
(In reply to
comment #5
)
> (In reply to
comment #4
) > > (In reply to
comment #3
) > > > (In reply to
comment #2
) > > > > So what if I really want to confirm? We are depending a lot of this method in our slightly outdated branch as we commit the composition instead of cancelling it in many cases (ie. moving from one field to another etc) > > > > > > r+ upon kenneth's concern is not an issue. > > > > > > I was about to ask the same: if one want to cancel selection without actually disturbing selection. > > > > We kind of need that. That is how our mobile platform works. We commit when loosing focus (could be just moving the cursor position with a touch in the same input field) and before injecting compositions into our virtual keyboard (used when the user touches a word and it becomes a composition) > > Although the patch is not chaning any actual behavior, but cleaning it up instead. So if it is/was broken for us with the patch, it will keep beeing.
Sure, but the behavior was changed without me being aware of it. Examples of use:
http://gitorious.org/+qtwebkit-webkit2-dev/webkit/qtwebkit-webkit2-dev/blobs/master/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp
I think we are using it one other place, but I don't have the source handy right now.
Ryosuke Niwa
Comment 7
2011-09-06 14:31:33 PDT
(In reply to
comment #6
)
> Sure, but the behavior was changed without me being aware of it. Examples of use: > >
http://gitorious.org/+qtwebkit-webkit2-dev/webkit/qtwebkit-webkit2-dev/blobs/master/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp
> > I think we are using it one other place, but I don't have the source handy right now.
Kenneth and I chatted over this and he's going to investigate further if he can work-around by using other API. I'm going to land this patch for now because I don't want to leave the function name mismatching to its behavior. We can always add new API for Qt if it's necessary.
Ryosuke Niwa
Comment 8
2011-09-06 15:45:40 PDT
Comment on
attachment 106469
[details]
cleanup View in context:
https://bugs.webkit.org/attachment.cgi?id=106469&action=review
> Source/WebCore/editing/Editor.cpp:1494 > - if (preserveSelection) > + if (mode == ConfirmComposition)
Oops, this obviously needs to be "mode == CancelComposition". Will fix before landing the patch.
Ryosuke Niwa
Comment 9
2011-09-06 16:05:30 PDT
Committed
r94613
: <
http://trac.webkit.org/changeset/94613
>
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