RESOLVED FIXED 68874
Replace m_firstNodeInserted and m_lastLeafInserted in ReplaceSelectionCommand by positions
https://bugs.webkit.org/show_bug.cgi?id=68874
Summary Replace m_firstNodeInserted and m_lastLeafInserted in ReplaceSelectionCommand...
Ryosuke Niwa
Reported 2011-09-27 00:23:51 PDT
As mentioned in several FIXMEs in ReplaceSelectionCommand, m_firstNodeInserted and m_lastLeafInserted should be replaced by real positions.
Attachments
Patch (21.24 KB, patch)
2011-09-30 14:32 PDT, Ryosuke Niwa
no flags
Patch (21.26 KB, patch)
2011-09-30 14:34 PDT, Ryosuke Niwa
no flags
Ryosuke Niwa
Comment 1 2011-09-30 14:32:36 PDT
Ryosuke Niwa
Comment 2 2011-09-30 14:34:41 PDT
WebKit Review Bot
Comment 3 2011-09-30 14:35:56 PDT
Attachment 109349 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/ChangeLog:20: Line contains tab character. [whitespace/tab] [5] Source/WebCore/ChangeLog:21: Line contains tab character. [whitespace/tab] [5] Total errors found: 2 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Ryosuke Niwa
Comment 4 2011-09-30 14:36:01 PDT
Comment on attachment 109350 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=109350&action=review > Source/WebCore/editing/ReplaceSelectionCommand.cpp:1001 > + // Setup m_startOfInsertedContent and m_endOfInsertedContent. This should be the last two lines of code that access insertedNodes. We can do a follow up patch that puts the entire section that uses insertedNodes in a block to enforce this.
Ryosuke Niwa
Comment 5 2011-10-03 14:38:48 PDT
Any reviewers?
Enrica Casucci
Comment 6 2011-10-03 15:53:14 PDT
Comment on attachment 109350 [details] Patch Looks good to me.
Ryosuke Niwa
Comment 7 2011-10-03 16:04:35 PDT
Comment on attachment 109350 [details] Patch Clearing flags on attachment: 109350 Committed r96553: <http://trac.webkit.org/changeset/96553>
Ryosuke Niwa
Comment 8 2011-10-03 16:04:39 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.