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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.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/layout/LayoutObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index 04ae2f672ed363e1122345e6957fbc0b60a72e37..3fae9af61227628c4cf1c2fc2729b73c020f5be4 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -635,7 +635,7 @@ public:
// LayoutBlock::createAnonymousBlock(). This includes creating an anonymous
// LayoutBlock having a BLOCK or BOX display. Other classes such as LayoutTextFragment
// are not LayoutBlocks and will return false. See https://bugs.webkit.org/show_bug.cgi?id=56709.
- return isAnonymous() && (style()->display() == BLOCK || style()->display() == BOX) && style()->styleType() == NOPSEUDO && isLayoutBlock() && !isListMarker() && !isLayoutFlowThread() && !isLayoutMultiColumnSet()
+ return isAnonymous() && (style()->display() == BLOCK || style()->display() == BOX) && style()->styleType() == PseudoIdNone && isLayoutBlock() && !isListMarker() && !isLayoutFlowThread() && !isLayoutMultiColumnSet()
&& !isLayoutFullScreen()
&& !isLayoutFullScreenPlaceholder();
}
@@ -1955,7 +1955,7 @@ inline bool LayoutObject::documentBeingDestroyed() const
inline bool LayoutObject::isBeforeContent() const
{
- if (style()->styleType() != BEFORE)
+ if (style()->styleType() != PseudoIdBefore)
return false;
// Text nodes don't have their own styles, so ignore the style on a text node.
if (isText() && !isBR())
@@ -1965,7 +1965,7 @@ inline bool LayoutObject::isBeforeContent() const
inline bool LayoutObject::isAfterContent() const
{
- if (style()->styleType() != AFTER)
+ if (style()->styleType() != PseudoIdAfter)
return false;
// Text nodes don't have their own styles, so ignore the style on a text node.
if (isText() && !isBR())
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutCounter.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698