[Webkit-unassigned] [Bug 57543] -webkit-visual-word does not work on words separated by multiple spaces
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon May 9 16:37:35 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=57543
--- Comment #13 from Xiaomei Ji <xji at chromium.org> 2011-05-09 16:37:35 PST ---
(In reply to comment #12)
> (In reply to comment #11)
> > We did not expose whether the word break is before a word or after a word in the function names of ....WithSameDirectionality() and ....WithDifferentDirectionality() and their callee.
> > Inside previousWordBreakInBoxInsideBlockWithSameDirectionality() and nextWordBreakInBoxInsideBlockWithDifferentDirectionality(), there is comment saying where the word break should be, those functions and their callees follow the rule.
>
> That's bad :(
s/nextWordBreakInBoxInsideBlockWithDifferentDirectionality/positionAfterWordInBoxInsideBlockWithDifferentDirectionality/ ? (I feel the previous one is better, but I can not say positonAfterNextWord because it could be positonAfterCurrentWord or positionAfterNextWord).
s/visuallyFirstWordBreakInBoxInsideBlockWithDifferentDirectionality/visuallyFirstPositionAfterWordInBoxInsideBlockWithDifferentDirectionality/ ? (maybe inline the function in).
s/previousWordBreakInBoxInsideBlockWithSameDirectionality/positionBeforeWordInBoxInsideBlockWithSameDirectionality/ ?
inline visuallyFirstWordBreakInBoxInsideBlockWithSameDirectionality ?
>
> > > But your condition says box->isLTR() AND box->nextLeafChild(). Under this condition, the box is not the rightmost box.
> >
> > We need to collect the rightmost word break if the box is *not* the rightmost box. And we do *not* need to collect the rightmost word break if the box is the rightmost box.
>
> Why is that?
we do not need to save the rightmost word break (the visually rightmost position in a line). For example,
"abc def", when caret is inside 'def', caret stays the same position when press ctrl-right-arrow (following widnow's native support).
--
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