[webkit-reviews] review denied: [Bug 161947] null m_lastNodeInserted dereference at ReplaceSelectionCommand::InsertedNodes::lastLeafInserted : [Attachment 334010] Patch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Feb 16 20:30:09 PST 2018
Ryosuke Niwa <rniwa at webkit.org> has denied Fujii Hironori
<Hironori.Fujii at sony.com>'s request for review:
Bug 161947: null m_lastNodeInserted dereference at
ReplaceSelectionCommand::InsertedNodes::lastLeafInserted
https://bugs.webkit.org/show_bug.cgi?id=161947
Attachment 334010: Patch
https://bugs.webkit.org/attachment.cgi?id=334010&action=review
--- Comment #22 from Ryosuke Niwa <rniwa at webkit.org> ---
Comment on attachment 334010
--> https://bugs.webkit.org/attachment.cgi?id=334010
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=334010&action=review
> Source/WebCore/editing/ReplaceSelectionCommand.h:72
> + bool isEmpty() { return !m_firstNodeInserted; }
This is not right. m_firstNodeInserted should never be null because we keep
updating m_firstNodeInserted in willRemoveNode and didReplaceNode.
If m_firstNodeInserted is null, that's a bug elsewhere.
More information about the webkit-reviews
mailing list