[Webkit-unassigned] [Bug 57806] continue experiment with moving caret by word in visual order
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 6 14:39:56 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=57806
--- Comment #12 from Ryosuke Niwa <rniwa at webkit.org> 2011-04-06 14:39:56 PST ---
(From update of attachment 88319)
View in context: https://bugs.webkit.org/attachment.cgi?id=88319&action=review
> Source/WebCore/editing/visible_units.cpp:1272
> + // Given RTL box "ABC DEF" either follows a LTR box or is the first visual box in an LTR block as an example,
> + // the visual display of the RTL box is: "(0)J(10)I(9)H(8) (7)F(6)E(5)D(4) (3)C(2)B(1)A(11)",
> + // where the number in parenthesis represents offset in visiblePosition.
> + // Start at offset 0, the first word break is at offset 3, the 2nd word break is at offset 7, and the 3rd word break should be at offset 0.
> + // But nextWordPosition() of offset 7 is offset 11, which should be ignored,
> + // and the position at offset 0 should be manually added as the last word break within the box.
> + if (positionIsVisuallyOrderedInBox(wordBreak, box, offsetOfWordBreak))
It's not great that we need this giant chunk of comment to explain what's happening here. positionIsVisuallyOrderedInBox should be named such that you can reduce the amount of comment here.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list