| Index: Source/core/dom/Node.cpp
|
| diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
|
| index 89f80b54a0abb8e03fe2d50d433194f6fae29cd6..523f80ecbbd9ad62532a2b85058ff76ee876b3b2 100644
|
| --- a/Source/core/dom/Node.cpp
|
| +++ b/Source/core/dom/Node.cpp
|
| @@ -383,20 +383,13 @@ PassRefPtr<NodeList> Node::childNodes()
|
| return ensureRareData().ensureNodeLists().ensureChildNodeList(this);
|
| }
|
|
|
| -Node *Node::lastDescendant() const
|
| +Node& Node::lastDescendant() const
|
| {
|
| - Node *n = const_cast<Node *>(this);
|
| + Node* n = const_cast<Node*>(this);
|
| while (n && n->lastChild())
|
| n = n->lastChild();
|
| - return n;
|
| -}
|
| -
|
| -Node* Node::firstDescendant() const
|
| -{
|
| - Node *n = const_cast<Node *>(this);
|
| - while (n && n->firstChild())
|
| - n = n->firstChild();
|
| - return n;
|
| + ASSERT(n);
|
| + return *n;
|
| }
|
|
|
| Node* Node::pseudoAwarePreviousSibling() const
|
|
|