Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Unified Diff: third_party/WebKit/Source/core/dom/NodeIterator.cpp

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/NodeIterator.cpp
diff --git a/third_party/WebKit/Source/core/dom/NodeIterator.cpp b/third_party/WebKit/Source/core/dom/NodeIterator.cpp
index b39c8701bd804f11acc5ddd8343dffdce1ff171b..1833469b95daf350dfa6521ac7f2276b0a4fec88 100644
--- a/third_party/WebKit/Source/core/dom/NodeIterator.cpp
+++ b/third_party/WebKit/Source/core/dom/NodeIterator.cpp
@@ -86,10 +86,10 @@ Node* NodeIterator::nextNode(ExceptionState& exceptionState)
m_candidateNode = m_referenceNode;
while (m_candidateNode.moveToNext(root())) {
// NodeIterators treat the DOM tree as a flat list of nodes.
- // In other words, FILTER_REJECT does not pass over descendants
- // of the rejected node. Hence, FILTER_REJECT is the same as FILTER_SKIP.
+ // In other words, kFilterReject does not pass over descendants
+ // of the rejected node. Hence, kFilterReject is the same as kFilterSkip.
Node* provisionalResult = m_candidateNode.node;
- bool nodeWasAccepted = acceptNode(provisionalResult, exceptionState) == NodeFilter::FILTER_ACCEPT;
+ bool nodeWasAccepted = acceptNode(provisionalResult, exceptionState) == NodeFilter::kFilterAccept;
if (exceptionState.hadException())
break;
if (nodeWasAccepted) {
@@ -110,10 +110,10 @@ Node* NodeIterator::previousNode(ExceptionState& exceptionState)
m_candidateNode = m_referenceNode;
while (m_candidateNode.moveToPrevious(root())) {
// NodeIterators treat the DOM tree as a flat list of nodes.
- // In other words, FILTER_REJECT does not pass over descendants
- // of the rejected node. Hence, FILTER_REJECT is the same as FILTER_SKIP.
+ // In other words, kFilterReject does not pass over descendants
+ // of the rejected node. Hence, kFilterReject is the same as kFilterSkip.
Node* provisionalResult = m_candidateNode.node;
- bool nodeWasAccepted = acceptNode(provisionalResult, exceptionState) == NodeFilter::FILTER_ACCEPT;
+ bool nodeWasAccepted = acceptNode(provisionalResult, exceptionState) == NodeFilter::kFilterAccept;
if (exceptionState.hadException())
break;
if (nodeWasAccepted) {
« no previous file with comments | « third_party/WebKit/Source/core/dom/NodeFilter.cpp ('k') | third_party/WebKit/Source/core/dom/NodeIteratorBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698