[Webkit-unassigned] [Bug 55650] VisiblePosition could be an upstream position even if its affinity is downstream

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 3 11:00:33 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=55650





--- Comment #1 from Levi Weintraub <leviw at chromium.org>  2011-03-03 11:00:33 PST ---
I believe you're mixing your concepts here. Position's upstream/downstream concepts are not the same as VisiblePosition's; Upstream and downstream Positions are meant to be visually equivalent while upstream and downstream VisiblePositions explicitly are not.

In other words, in the following scenario:

<div>foo<br/>
<span>bar</span>
</div>

A Position at the beginning of the second line would upstream to [span, 0] and downstream to ["bar", 0], but a VisiblePosition would jump from a downstream of [span, 0] to [br, 0].

-- 
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