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

Unified Diff: third_party/WebKit/Source/core/xml/XPathFunctions.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/xml/XPathFunctions.cpp
diff --git a/third_party/WebKit/Source/core/xml/XPathFunctions.cpp b/third_party/WebKit/Source/core/xml/XPathFunctions.cpp
index bed72400fc2283e11ace01d9a7b2beb00d452bae..ddce197087d2dde21b5d030d576a74e37d992859 100644
--- a/third_party/WebKit/Source/core/xml/XPathFunctions.cpp
+++ b/third_party/WebKit/Source/core/xml/XPathFunctions.cpp
@@ -365,11 +365,11 @@ static inline String expandedNameLocalPart(Node* node)
// The local part of an XPath expanded-name matches DOM local name for most node types, except for namespace nodes and processing instruction nodes.
// But note that Blink does not support namespace nodes.
switch (node->getNodeType()) {
- case Node::ELEMENT_NODE:
+ case Node::kElementNode:
return toElement(node)->localName();
- case Node::ATTRIBUTE_NODE:
+ case Node::kAttributeNode:
return toAttr(node)->localName();
- case Node::PROCESSING_INSTRUCTION_NODE:
+ case Node::kProcessingInstructionNode:
return toProcessingInstruction(node)->target();
default:
return String();
@@ -379,9 +379,9 @@ static inline String expandedNameLocalPart(Node* node)
static inline String expandedNamespaceURI(Node* node)
{
switch (node->getNodeType()) {
- case Node::ELEMENT_NODE:
+ case Node::kElementNode:
return toElement(node)->namespaceURI();
- case Node::ATTRIBUTE_NODE:
+ case Node::kAttributeNode:
return toAttr(node)->namespaceURI();
default:
return String();
@@ -393,10 +393,10 @@ static inline String expandedName(Node* node)
AtomicString prefix;
switch (node->getNodeType()) {
- case Node::ELEMENT_NODE:
+ case Node::kElementNode:
prefix = toElement(node)->prefix();
break;
- case Node::ATTRIBUTE_NODE:
+ case Node::kAttributeNode:
prefix = toAttr(node)->prefix();
break;
default:
« no previous file with comments | « third_party/WebKit/Source/core/xml/XPathExpression.cpp ('k') | third_party/WebKit/Source/core/xml/XPathPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698