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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 13 14:22:06 PDT 2014


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





--- Comment #52 from David Gatwood <dgatwood at mac.com>  2014-10-13 14:21:57 PST ---
Created an attachment (id=239746)
 --> (https://bugs.webkit.org/attachment.cgi?id=239746&action=review)
Fix for an occasional hang when walking off the left edge of certain block elements


Walking off the left edge of a block element that contains *only* a single text node caused a hang, because obtaining the inline box and offset for the paragraph returned the node that we already visited, thus making it impossible to reach the position to the left of such an element.  Worse, it resulted in an infinite loop.  This patch shortcuts that infinite loop by checking to see if the position to the left of the element is a candidate right after checking to see if the position to the left of the text node is a candidate.

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