[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
Fri Feb 4 11:54:03 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=53787
--- Comment #2 from Levi Weintraub <leviw at chromium.org> 2011-02-04 11:54:03 PST ---
This unfortunate bug is non-trivial to solve. Editing creates canonical positions that are eventually sent to Render____::localCaretRect to have the rect determined. In certain cases like this, the canonical position editing would *normally* create, ["foo", 3], doesn't work (in this case because it's in non-editable content). There are 2 problems with this:
1) RenderBlock uses RenderBox to determine the caret rect, but for RenderBox, any offset > 0 equates to drawing the caret after the content, even if it's an offset between children.
2) A RenderBlock and offset isn't enough information to determine the correct position for the caret. [DIV, 2] in this case could be interpreted to the position after "foo" or the position after the DIV! I think localCaretRect needs to take a type (offset into children, or position before/after renderer e.g. Position::AnchorType).
--
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