DescriptionAvoid duplicate null check in ReplaceSelectionCommand::pastLastLeaf()
Avoid duplicate null check in ReplaceSelectionCommand::pastLastLeaf() by
calling m_lastNodeInserted->lastDescendant() directly instead of
lastLeafInserted(). This also makes it clearer by we are checking that
m_lastNodeInserted is not null as it is now explicitly use right after.
This avoid avoids dereferencing a pointer as we now get a reference
directly.
R=adamk
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168848
Patch Set 1 #
Messages
Total messages: 5 (0 generated)
|