DescriptionHave Node::lastDescendant() return a reference
Have Node::lastDescendant() return a reference instead of a pointer
as it can never return null. It makes the calling code look safer
and gets rid of several unnecessary null checks.
Also get rid of Node::firstDescendant() which is unused.
R=adamk
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161096
Patch Set 1 #Patch Set 2 : Add extra assertion #Patch Set 3 : Update firstDescendant() as well #Patch Set 4 : Kill firstDescendant()! #
Messages
Total messages: 7 (0 generated)
|