[Webkit-unassigned] [Bug 24981] Crazy backspace/delete behavior

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 19 00:10:33 PDT 2009


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





------- Comment #2 from swetha.shadow at gmail.com  2009-05-19 00:10 PDT -------
Hi,
I have been analysing the code for this bug, these are the observation made
In Webkit\WebCore\editing\deleteselectioncommand.cpp
-CompositeEditCommand::deleteTextFromNode(node, offset, count) method will
remove the white-space from the string="   other text" and gives us
string="other text", without space.

but still the offSet value will be '3', which should be made to '0' before the
call to 
VisiblePosition startOfParagraphToMove(m_downstreamEnd) method in 
mergeParagraphs()

else from the 3rd postion of "other text" which is from 'h' it will merge with
heading.
so to reset the offset to zero , call m_upstreamStart =
m_selectionToDelete.start() and 
    m_downstreamEnd = m_selectionToDelete.end() method before making a call to
VisiblePosition startOfParagraphToMove(m_downstreamEnd) in mergeParagraphs()


this would eliminate the problem due to white-space. 


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list