[Webkit-unassigned] [Bug 53787] REGRESSION: Caret is rendered at wrong location when editable region ends with a non-editable region

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 15 16:56:39 PST 2011


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





--- Comment #5 from Levi Weintraub <leviw at chromium.org>  2011-02-15 16:56:39 PST ---
The bug where a line break is inserted when backspacing the whitespace following a button is similarly related to legacy positions. DeleteSelectionCommand uses mergeParagraph to handle selections that span paragraph boundaries, and because it upstreams the resulting position after the deletion into [button, 1], the code falsely believes the position to be inside the inline-block element and inserts a placeholder.

The "right" fix for this would be to make Position::upstream() return a position at [button, PositionIsAfterAnchor] and have DeleteSelectionCommand then correctly handle positions after Inline-Block flow elements (where positions before/after treat them like inline nodes and positions inside them like blocks).

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