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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTableCol.cpp

Issue 2370673002: Changed EDisplay to an enum class and renamed its members to be keywords (Closed)
Patch Set: Comment Created 4 years, 3 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/LayoutTableCol.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableCol.cpp b/third_party/WebKit/Source/core/layout/LayoutTableCol.cpp
index 9dfb7bccaf9ee0a042e930d25ed5f4d519061ae7..1abb44b8e60df8030358ea7f131c4bd896058fa7 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableCol.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableCol.cpp
@@ -45,7 +45,7 @@ LayoutTableCol::LayoutTableCol(Element* element)
void LayoutTableCol::styleDidChange(StyleDifference diff, const ComputedStyle* oldStyle)
{
- DCHECK(style()->display() == TABLE_COLUMN || style()->display() == TABLE_COLUMN_GROUP);
+ DCHECK(style()->display() == EDisplay::TableColumn || style()->display() == EDisplay::TableColumnGroup);
LayoutTableBoxComponent::styleDidChange(diff, oldStyle);
@@ -98,7 +98,7 @@ void LayoutTableCol::willBeRemovedFromTree()
bool LayoutTableCol::isChildAllowed(LayoutObject* child, const ComputedStyle& style) const
{
// We cannot use isTableColumn here as style() may return 0.
- return child->isLayoutTableCol() && style.display() == TABLE_COLUMN;
+ return child->isLayoutTableCol() && style.display() == EDisplay::TableColumn;
}
bool LayoutTableCol::canHaveChildren() const
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableCol.h ('k') | third_party/WebKit/Source/core/layout/LayoutTableRow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698