[Webkit-unassigned] [Bug 50481] Caret is incorrectly painted if the final position follows non-editable content.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 6 15:13:08 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=50481
--- Comment #2 from Levi Weintraub <leviw at google.com> 2011-01-06 15:13:08 PST ---
The bug actually appears to be in Position::getInlineBoxAndOffset. The check here: http://trac.webkit.org/browser/trunk/WebCore/dom/Position.cpp?annotate=blame&rev=72777#L1038
which is intended to prevent infinite recursion also has the side effect of not actually checking the upstream position when *this is the downstream position. Changing the line to
if (equivalent == *this || (canHaveChildrenForEditing(equivalent.node()) && equivalent.node()->renderer()->isBlockFlow()
&& hasRenderedNonAnonymousDescendantsWithHeight(equivalent.node()->renderer())))
solves the problem but isn't pretty.
--
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