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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutCounter.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
Index: third_party/WebKit/Source/core/layout/LayoutCounter.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutCounter.cpp b/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
index 542a70ff669aaf7f9d21a57097770e60df841719..8086a94eae5768719f49b6b39457f9dac91c83e9 100644
--- a/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
@@ -136,14 +136,14 @@ static bool planCounter(LayoutObject& object, const AtomicString& identifier, bo
const ComputedStyle& style = object.styleRef();
switch (style.styleType()) {
- case NOPSEUDO:
+ case PseudoIdNone:
// Sometimes nodes have more then one layoutObject. Only the first one gets the counter
// LayoutTests/http/tests/css/counter-crash.html
if (generatingNode->layoutObject() != &object)
return false;
break;
- case BEFORE:
- case AFTER:
+ case PseudoIdBefore:
+ case PseudoIdAfter:
break;
default:
return false; // Counters are forbidden from all other pseudo elements.
@@ -401,7 +401,7 @@ PassRefPtr<StringImpl> LayoutCounter::originalText() const
if (!beforeAfterContainer->isAnonymous() && !beforeAfterContainer->isPseudoElement())
return nullptr; // LayoutCounters are restricted to before and after pseudo elements
PseudoId containerStyle = beforeAfterContainer->style()->styleType();
- if ((containerStyle == BEFORE) || (containerStyle == AFTER))
+ if ((containerStyle == PseudoIdBefore) || (containerStyle == PseudoIdAfter))
break;
beforeAfterContainer = beforeAfterContainer->parent();
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698