[Webkit-unassigned] [Bug 15256] Impossible to place an editable selection inside empty elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 11 16:21:28 PDT 2014


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





--- Comment #51 from David Gatwood <dgatwood at mac.com>  2014-10-11 16:21:20 PST ---
Created an attachment (id=239689)
 --> (https://bugs.webkit.org/attachment.cgi?id=239689&action=review)
Fix for an additional case where cursor can't be placed after the last child element


In VisiblePosition::canonicalPosition(), the code first checks to see if the upstream or downstream candidate is a match.  However, in some circumstances, the upstream/downstream methods return a Position that is set to "after all children" rather than a Position whose numerical offset is actually after the last child.  This patch to isCandidate() makes it correctly detect and handle those Position objects.

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