| Index: third_party/WebKit/Source/core/dom/Document.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
|
| index 5163577596583956aac44fb63d5c25e8caec1774..0cc44f60b21f2872ff86d80a2a5474493aff3c52 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -1462,15 +1462,15 @@ PassRefPtrWillBeRawPtr<Range> Document::createRange()
|
| return Range::create(*this);
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<NodeIterator> Document::createNodeIterator(Node* root, unsigned whatToShow, PassRefPtrWillBeRawPtr<NodeFilter> filter, ExceptionState& exceptionState)
|
| +PassRefPtrWillBeRawPtr<NodeIterator> Document::createNodeIterator(Node* root, unsigned whatToShow, PassRefPtrWillBeRawPtr<NodeFilter> filter)
|
| {
|
| - // FIXME: It might be a good idea to emit a warning if |whatToShow| contains a bit that is not defined in
|
| - // NodeFilter.
|
| + ASSERT(root);
|
| return NodeIterator::create(root, whatToShow, filter);
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<TreeWalker> Document::createTreeWalker(Node* root, unsigned whatToShow, PassRefPtrWillBeRawPtr<NodeFilter> filter, ExceptionState& exceptionState)
|
| +PassRefPtrWillBeRawPtr<TreeWalker> Document::createTreeWalker(Node* root, unsigned whatToShow, PassRefPtrWillBeRawPtr<NodeFilter> filter)
|
| {
|
| + ASSERT(root);
|
| return TreeWalker::create(root, whatToShow, filter);
|
| }
|
|
|
|
|