WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
196671
On iOS, moving by word granularity would move caret to a blank line
https://bugs.webkit.org/show_bug.cgi?id=196671
Summary
On iOS, moving by word granularity would move caret to a blank line
Ryosuke Niwa
Reported
2019-04-05 23:09:27 PDT
After the
bug 196670
, we can move the caret by word granularity but we'd incorrectly identify a blank line as a word boundary.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-04-05 23:10:08 PDT
<
rdar://problem/49666652
>
Ryosuke Niwa
Comment 2
2019-04-05 23:14:11 PDT
This really boils down to findNextWordFromIndex in
https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/platform/text/mac/TextBoundaries.mm
I wonder if we should just always use NSAttributedString's nextWordFromIndex to find a word boundary. Does anyone remember / know why we're calling into ICU directly? Maybe NSAttributedString wasn't available in iOS at the time?
mitz
Comment 3
2019-04-05 23:22:06 PDT
(In reply to Ryosuke Niwa from
comment #2
)
> Maybe NSAttributedString wasn't available in iOS at the time?
NSAttributedString was available, but -nextWordFromIndex:forward: wasn’t, because it was implemented in AppKit at the time.
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