Summary: | An arrow key collapses directionless selection range in the wrong direction in BiDi | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> | ||||
Component: | HTML Editing | Assignee: | Ryosuke Niwa <rniwa> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | darin, dglazkov, enrica, eric, hyatt, leviw, mitz, playmobil, webkit.review.bot, xji | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | 66431 | ||||||
Bug Blocks: | 57340 | ||||||
Attachments: |
|
Description
Ryosuke Niwa
2011-07-15 14:13:14 PDT
currently, when pressing left arrow, webkit collapses the selection to the logical beginning in LTR context, and collapse the selection to the logical end in RTL context. Amnon, Jeremy, and Aharon all agree that: collapsing the selection in the visual direction is what is expected to happen. Created attachment 101075 [details]
fixes the bug
Comment on attachment 101075 [details] fixes the bug Attachment 101075 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/9092544 New failing tests: editing/selection/collapse-selection-in-bidi.html Ping reviewers Ping reviewers. Comment on attachment 101075 [details] fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=101075&action=review Seems fine. > Source/WebCore/editing/FrameSelection.cpp:379 > + int offset = 0; Seems non-helpful to initialize this to 0. Committed r93221: <http://trac.webkit.org/changeset/93221> |