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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

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/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 49ee65be700efd706d1a591a79fbaa02bfaf88a0..a9ebb4ae05069cb05ccd325dc34ffd4667bc15fc 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -335,7 +335,7 @@ protected:
noninherited_flags.breakBefore = initialBreakBefore();
noninherited_flags.breakAfter = initialBreakAfter();
noninherited_flags.breakInside = initialBreakInside();
- noninherited_flags.styleType = NOPSEUDO;
+ noninherited_flags.styleType = PseudoIdNone;
noninherited_flags.pseudoBits = 0;
noninherited_flags.explicitInheritance = false;
noninherited_flags.variableReference = false;
@@ -2011,26 +2011,26 @@ inline bool ComputedStyle::setTextOrientation(TextOrientation textOrientation)
inline bool ComputedStyle::hasAnyPublicPseudoStyles() const
{
- return PUBLIC_PSEUDOID_MASK & noninherited_flags.pseudoBits;
+ return PublicPseudoIdMask & noninherited_flags.pseudoBits;
}
inline bool ComputedStyle::hasPseudoStyle(PseudoId pseudo) const
{
- ASSERT(pseudo > NOPSEUDO);
- ASSERT(pseudo < FIRST_INTERNAL_PSEUDOID);
+ ASSERT(pseudo > PseudoIdNone);
+ ASSERT(pseudo < FirstInternalPseudoId);
return (1 << (pseudo - 1)) & noninherited_flags.pseudoBits;
}
inline void ComputedStyle::setHasPseudoStyle(PseudoId pseudo)
{
- ASSERT(pseudo > NOPSEUDO);
- ASSERT(pseudo < FIRST_INTERNAL_PSEUDOID);
+ ASSERT(pseudo > PseudoIdNone);
+ ASSERT(pseudo < FirstInternalPseudoId);
noninherited_flags.pseudoBits |= 1 << (pseudo - 1);
}
inline bool ComputedStyle::hasPseudoElementStyle() const
{
- return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
+ return noninherited_flags.pseudoBits & ElementPseudoIdMask;
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/paint/TextPainter.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698