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

Unified Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 1765933003: style: Rename the PseudoId enum values to CamelCase and prefix them. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enum-clash-PseudoId: none Created 4 years, 9 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/dom/Node.h ('k') | third_party/WebKit/Source/core/dom/PseudoElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 604f1c75a77fbd22f1d6da3446cabb9eec8be30b..216902589bf7e84cf4f880bf6f20f94ea89e2c30 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -405,7 +405,7 @@ Node* Node::pseudoAwarePreviousSibling() const
if (isAfterPseudoElement() && parent->lastChild())
return parent->lastChild();
if (!isBeforePseudoElement())
- return parent->pseudoElement(BEFORE);
+ return parent->pseudoElement(PseudoIdBefore);
}
return previousSibling();
}
@@ -417,7 +417,7 @@ Node* Node::pseudoAwareNextSibling() const
if (isBeforePseudoElement() && parent->hasChildren())
return parent->firstChild();
if (!isAfterPseudoElement())
- return parent->pseudoElement(AFTER);
+ return parent->pseudoElement(PseudoIdAfter);
}
return nextSibling();
}
@@ -426,12 +426,12 @@ Node* Node::pseudoAwareFirstChild() const
{
if (isElementNode()) {
const Element* currentElement = toElement(this);
- Node* first = currentElement->pseudoElement(BEFORE);
+ Node* first = currentElement->pseudoElement(PseudoIdBefore);
if (first)
return first;
first = currentElement->firstChild();
if (!first)
- first = currentElement->pseudoElement(AFTER);
+ first = currentElement->pseudoElement(PseudoIdAfter);
return first;
}
@@ -442,12 +442,12 @@ Node* Node::pseudoAwareLastChild() const
{
if (isElementNode()) {
const Element* currentElement = toElement(this);
- Node* last = currentElement->pseudoElement(AFTER);
+ Node* last = currentElement->pseudoElement(PseudoIdAfter);
if (last)
return last;
last = currentElement->lastChild();
if (!last)
- last = currentElement->pseudoElement(BEFORE);
+ last = currentElement->pseudoElement(PseudoIdBefore);
return last;
}
@@ -1645,13 +1645,13 @@ static void traverseTreeAndMark(const String& baseIndent, const Node* rootNode,
if (node.isElementNode()) {
const Element& element = toElement(node);
- if (Element* pseudo = element.pseudoElement(BEFORE))
+ if (Element* pseudo = element.pseudoElement(PseudoIdBefore))
traverseTreeAndMark(indent.toString(), pseudo, markedNode1, markedLabel1, markedNode2, markedLabel2);
- if (Element* pseudo = element.pseudoElement(AFTER))
+ if (Element* pseudo = element.pseudoElement(PseudoIdAfter))
traverseTreeAndMark(indent.toString(), pseudo, markedNode1, markedLabel1, markedNode2, markedLabel2);
- if (Element* pseudo = element.pseudoElement(FIRST_LETTER))
+ if (Element* pseudo = element.pseudoElement(PseudoIdFirstLetter))
traverseTreeAndMark(indent.toString(), pseudo, markedNode1, markedLabel1, markedNode2, markedLabel2);
- if (Element* pseudo = element.pseudoElement(BACKDROP))
+ if (Element* pseudo = element.pseudoElement(PseudoIdBackdrop))
traverseTreeAndMark(indent.toString(), pseudo, markedNode1, markedLabel1, markedNode2, markedLabel2);
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.h ('k') | third_party/WebKit/Source/core/dom/PseudoElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698