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

Unified Diff: third_party/WebKit/Source/core/xml/XPathStep.cpp

Issue 1738613002: Rename enums/functions that collide in chromium style in core/dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-3
Patch Set: get-names-4: Created 4 years, 10 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/xml/XPathStep.cpp
diff --git a/third_party/WebKit/Source/core/xml/XPathStep.cpp b/third_party/WebKit/Source/core/xml/XPathStep.cpp
index 043fc3b1f80d86911d42c308d1b83ad7a83a2afb..4ff591582c6a0fb97a9a8a5de11964f0b6bb1f3c 100644
--- a/third_party/WebKit/Source/core/xml/XPathStep.cpp
+++ b/third_party/WebKit/Source/core/xml/XPathStep.cpp
@@ -169,14 +169,14 @@ static inline bool nodeMatchesBasicTest(Node* node, Step::Axis axis, const Step:
{
switch (nodeTest.kind()) {
case Step::NodeTest::TextNodeTest: {
- Node::NodeType type = node->nodeType();
+ Node::NodeType type = node->getNodeType();
return type == Node::TEXT_NODE || type == Node::CDATA_SECTION_NODE;
}
case Step::NodeTest::CommentNodeTest:
- return node->nodeType() == Node::COMMENT_NODE;
+ return node->getNodeType() == Node::COMMENT_NODE;
case Step::NodeTest::ProcessingInstructionNodeTest: {
const AtomicString& name = nodeTest.data();
- return node->nodeType() == Node::PROCESSING_INSTRUCTION_NODE && (name.isEmpty() || node->nodeName() == name);
+ return node->getNodeType() == Node::PROCESSING_INSTRUCTION_NODE && (name.isEmpty() || node->nodeName() == name);
}
case Step::NodeTest::AnyNodeTest:
return true;
@@ -307,7 +307,7 @@ void Step::nodesInAxis(EvaluationContext& evaluationContext, Node* context, Node
}
case FollowingSiblingAxis:
- if (context->nodeType() == Node::ATTRIBUTE_NODE)
+ if (context->getNodeType() == Node::ATTRIBUTE_NODE)
return;
for (Node* n = context->nextSibling(); n; n = n->nextSibling()) {
@@ -317,7 +317,7 @@ void Step::nodesInAxis(EvaluationContext& evaluationContext, Node* context, Node
return;
case PrecedingSiblingAxis:
- if (context->nodeType() == Node::ATTRIBUTE_NODE)
+ if (context->getNodeType() == Node::ATTRIBUTE_NODE)
return;
for (Node* n = context->previousSibling(); n; n = n->previousSibling()) {

Powered by Google App Engine
This is Rietveld 408576698