| Index: third_party/WebKit/Source/core/dom/ChildNodeList.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/ChildNodeList.cpp b/third_party/WebKit/Source/core/dom/ChildNodeList.cpp
|
| index 2477ce13bfad8e9bac8cff254184ee67ccdb4c15..10de9adca482e0b6e8446a993cfcc0ec8b4c4208 100644
|
| --- a/third_party/WebKit/Source/core/dom/ChildNodeList.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/ChildNodeList.cpp
|
| @@ -47,7 +47,7 @@ ChildNodeList::~ChildNodeList()
|
|
|
| Node* ChildNodeList::traverseForwardToOffset(unsigned offset, Node& currentNode, unsigned& currentOffset) const
|
| {
|
| - ASSERT(currentOffset < offset);
|
| + DCHECK_LT(currentOffset, offset);
|
| for (Node* next = currentNode.nextSibling(); next; next = next->nextSibling()) {
|
| if (++currentOffset == offset)
|
| return next;
|
| @@ -57,7 +57,7 @@ Node* ChildNodeList::traverseForwardToOffset(unsigned offset, Node& currentNode,
|
|
|
| Node* ChildNodeList::traverseBackwardToOffset(unsigned offset, Node& currentNode, unsigned& currentOffset) const
|
| {
|
| - ASSERT(currentOffset > offset);
|
| + DCHECK_GT(currentOffset, offset);
|
| for (Node* previous = currentNode.previousSibling(); previous; previous = previous->previousSibling()) {
|
| if (--currentOffset == offset)
|
| return previous;
|
|
|