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

Unified Diff: third_party/WebKit/Source/core/dom/Text.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/Text.cpp
diff --git a/third_party/WebKit/Source/core/dom/Text.cpp b/third_party/WebKit/Source/core/dom/Text.cpp
index 5ca585d0bfe43b1a7c08c1ed3e7a71d11e3a1fbb..af00c484795e00df05d0a1569b8e82ff6cddbc4e 100644
--- a/third_party/WebKit/Source/core/dom/Text.cpp
+++ b/third_party/WebKit/Source/core/dom/Text.cpp
@@ -67,7 +67,7 @@ Node* Text::mergeNextSiblingNodesIfPossible()
// Merge text nodes.
while (Node* nextSibling = this->nextSibling()) {
- if (nextSibling->getNodeType() != TEXT_NODE)
+ if (nextSibling->getNodeType() != kTextNode)
break;
Text* nextText = toText(nextSibling);
@@ -141,7 +141,7 @@ static const Text* earliestLogicallyAdjacentTextNode(const Text* t)
{
for (const Node* n = t->previousSibling(); n; n = n->previousSibling()) {
Node::NodeType type = n->getNodeType();
- if (type == Node::TEXT_NODE || type == Node::CDATA_SECTION_NODE) {
+ if (type == Node::kTextNode || type == Node::kCdataSectionNode) {
t = toText(n);
continue;
}
@@ -155,7 +155,7 @@ static const Text* latestLogicallyAdjacentTextNode(const Text* t)
{
for (const Node* n = t->nextSibling(); n; n = n->nextSibling()) {
Node::NodeType type = n->getNodeType();
- if (type == Node::TEXT_NODE || type == Node::CDATA_SECTION_NODE) {
+ if (type == Node::kTextNode || type == Node::kCdataSectionNode) {
t = toText(n);
continue;
}
@@ -233,7 +233,7 @@ String Text::nodeName() const
Node::NodeType Text::getNodeType() const
{
- return TEXT_NODE;
+ return kTextNode;
}
Node* Text::cloneNode(bool /*deep*/)
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp ('k') | third_party/WebKit/Source/core/dom/TreeScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698