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

Unified Diff: third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h

Issue 2367273003: Changed EEmptyCells to an enum class and renamed its members to keywords (Closed)
Patch Set: Rebase 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/TableCellPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
index 48ecabd483dc1aa8b4f4a6acf92289df01a77a12..33e1795472c206e786d19a1357d56f078c4c2c1a 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -1264,10 +1264,10 @@ template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EEmptyCells e)
{
init(UnitType::ValueID);
switch (e) {
- case EmptyCellsShow:
+ case EEmptyCells::Show:
m_value.valueID = CSSValueShow;
break;
- case EmptyCellsHide:
+ case EEmptyCells::Hide:
m_value.valueID = CSSValueHide;
break;
}
@@ -1278,15 +1278,15 @@ template<> inline EEmptyCells CSSPrimitiveValue::convertTo() const
ASSERT(isValueID());
switch (m_value.valueID) {
case CSSValueShow:
- return EmptyCellsShow;
+ return EEmptyCells::Show;
case CSSValueHide:
- return EmptyCellsHide;
+ return EEmptyCells::Hide;
default:
break;
}
ASSERT_NOT_REACHED();
- return EmptyCellsShow;
+ return EEmptyCells::Show;
}
template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EFlexDirection e)
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/TableCellPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698