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

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

Issue 1743863002: Rename enums/functions that collide in chromium style in core/svg,xml (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-10: rebase 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
« no previous file with comments | « third_party/WebKit/Source/core/xml/XPathStep.h ('k') | third_party/WebKit/Source/core/xml/XPathValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4ff591582c6a0fb97a9a8a5de11964f0b6bb1f3c..32db6be6a017514173b6c0d0bba202df1f03d57e 100644
--- a/third_party/WebKit/Source/core/xml/XPathStep.cpp
+++ b/third_party/WebKit/Source/core/xml/XPathStep.cpp
@@ -86,7 +86,7 @@ void Step::optimize()
bool optimizeStepPair(Step* first, Step* second)
{
if (first->m_axis == Step::DescendantOrSelfAxis
- && first->nodeTest().kind() == Step::NodeTest::AnyNodeTest
+ && first->nodeTest().getKind() == Step::NodeTest::AnyNodeTest
&& !first->m_predicates.size()
&& !first->nodeTest().mergedPredicates().size()) {
@@ -97,7 +97,7 @@ bool optimizeStepPair(Step* first, Step* second)
// /descendant-or-self::node()/child::NodeTest to /descendant::NodeTest.
if (second->m_axis == Step::ChildAxis && second->predicatesAreContextListInsensitive()) {
first->m_axis = Step::DescendantAxis;
- first->nodeTest() = Step::NodeTest(second->nodeTest().kind(), second->nodeTest().data(), second->nodeTest().namespaceURI());
+ first->nodeTest() = Step::NodeTest(second->nodeTest().getKind(), second->nodeTest().data(), second->nodeTest().namespaceURI());
swap(second->nodeTest().mergedPredicates(), first->nodeTest().mergedPredicates());
swap(second->m_predicates, first->m_predicates);
first->optimize();
@@ -167,7 +167,7 @@ static inline Node::NodeType primaryNodeType(Step::Axis axis)
// Evaluate NodeTest without considering merged predicates.
static inline bool nodeMatchesBasicTest(Node* node, Step::Axis axis, const Step::NodeTest& nodeTest)
{
- switch (nodeTest.kind()) {
+ switch (nodeTest.getKind()) {
case Step::NodeTest::TextNodeTest: {
Node::NodeType type = node->getNodeType();
return type == Node::TEXT_NODE || type == Node::CDATA_SECTION_NODE;
@@ -370,7 +370,7 @@ void Step::nodesInAxis(EvaluationContext& evaluationContext, Node* context, Node
Element* contextElement = toElement(context);
// Avoid lazily creating attribute nodes for attributes that we do not
// need anyway.
- if (nodeTest().kind() == NodeTest::NameTest && nodeTest().data() != starAtom) {
+ if (nodeTest().getKind() == NodeTest::NameTest && nodeTest().data() != starAtom) {
RefPtrWillBeRawPtr<Attr> attr = contextElement->getAttributeNodeNS(nodeTest().namespaceURI(), nodeTest().data());
// In XPath land, namespace nodes are not accessible on the attribute axis.
if (attr && attr->namespaceURI() != XMLNSNames::xmlnsNamespaceURI) {
« no previous file with comments | « third_party/WebKit/Source/core/xml/XPathStep.h ('k') | third_party/WebKit/Source/core/xml/XPathValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698