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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTableCell.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/LayoutTableCell.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp b/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
index 98304416f805ff42bc95c6f30679aec39cac0f59..f2174b0c36cee9fece2cc2c9331032cee579fe7f 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
@@ -392,7 +392,7 @@ int LayoutTableCell::cellBaselinePosition() const
void LayoutTableCell::styleDidChange(StyleDifference diff, const ComputedStyle* oldStyle)
{
- ASSERT(style()->display() == TABLE_CELL);
+ DCHECK_EQ(style()->display(), EDisplay::TableCell);
LayoutBlockFlow::styleDidChange(diff, oldStyle);
setHasBoxDecorationBackground(true);
@@ -1027,7 +1027,7 @@ LayoutTableCell* LayoutTableCell::createAnonymous(Document* document)
LayoutTableCell* LayoutTableCell::createAnonymousWithParent(const LayoutObject* parent)
{
LayoutTableCell* newCell = LayoutTableCell::createAnonymous(&parent->document());
- RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWithDisplay(parent->styleRef(), TABLE_CELL);
+ RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWithDisplay(parent->styleRef(), EDisplay::TableCell);
newCell->setStyle(newStyle.release());
return newCell;
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableCol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698