[Webkit-unassigned] [Bug 64140] REGRESSION: Pressing return in a particular document sends the cursor to the end of the document

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jul 16 17:28:45 PDT 2011


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





--- Comment #8 from Enrica Casucci <enrica at apple.com>  2011-07-16 17:28:45 PST ---
(In reply to comment #7)
> (From update of attachment 101105 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=101105&action=review
> 
> > Source/WebCore/ChangeLog:9
> > +        The fix consists in detecting that the insertion point is a break element and simply insert another
> 
> insert -> inserting
> 
> > Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp:307
> > +        if (visiblePos.deepEquivalent().anchorNode()->renderer()->isBR()) {
> 
> Is anchorNode() guaranteed to have a renderer?

Yes, because is from a visibleposition.
thanks for the review!

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