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

Unified Diff: third_party/WebKit/Source/core/xml/XPathUtil.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/XPathUtil.cpp
diff --git a/third_party/WebKit/Source/core/xml/XPathUtil.cpp b/third_party/WebKit/Source/core/xml/XPathUtil.cpp
index 66229f2662c83d05850700678522151ba2e24c2f..80e3b9da068dd06cae636bfc6cb408a6dfbdc0b3 100644
--- a/third_party/WebKit/Source/core/xml/XPathUtil.cpp
+++ b/third_party/WebKit/Source/core/xml/XPathUtil.cpp
@@ -41,11 +41,11 @@ bool isRootDomNode(Node* node)
String stringValue(Node* node)
{
switch (node->getNodeType()) {
- case Node::ATTRIBUTE_NODE:
- case Node::PROCESSING_INSTRUCTION_NODE:
- case Node::COMMENT_NODE:
- case Node::TEXT_NODE:
- case Node::CDATA_SECTION_NODE:
+ case Node::kAttributeNode:
+ case Node::kProcessingInstructionNode:
+ case Node::kCommentNode:
+ case Node::kTextNode:
+ case Node::kCdataSectionNode:
return node->nodeValue();
default:
if (isRootDomNode(node) || node->isElementNode()) {
@@ -71,17 +71,17 @@ bool isValidContextNode(Node* node)
if (!node)
return false;
switch (node->getNodeType()) {
- case Node::ATTRIBUTE_NODE:
- case Node::CDATA_SECTION_NODE:
- case Node::COMMENT_NODE:
- case Node::DOCUMENT_NODE:
- case Node::ELEMENT_NODE:
- case Node::PROCESSING_INSTRUCTION_NODE:
+ case Node::kAttributeNode:
+ case Node::kCdataSectionNode:
+ case Node::kCommentNode:
+ case Node::kDocumentNode:
+ case Node::kElementNode:
+ case Node::kProcessingInstructionNode:
return true;
- case Node::DOCUMENT_FRAGMENT_NODE:
- case Node::DOCUMENT_TYPE_NODE:
+ case Node::kDocumentFragmentNode:
+ case Node::kDocumentTypeNode:
return false;
- case Node::TEXT_NODE:
+ case Node::kTextNode:
return !(node->parentNode() && node->parentNode()->isAttributeNode());
}
ASSERT_NOT_REACHED();
« no previous file with comments | « third_party/WebKit/Source/core/xml/XPathStep.cpp ('k') | third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698