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

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

Issue 2354843002: Changed EFloat to an enum class (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/css/resolver/StyleAdjuster.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 76d39db395d3d974c96fb18eb790e984d45ffb84..f1937e04064d5d8a61647cb6cb771eac5d4eff80 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -1369,13 +1369,13 @@ template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EFloat e)
{
init(UnitType::ValueID);
switch (e) {
- case NoFloat:
+ case EFloat::NoFloat:
m_value.valueID = CSSValueNone;
break;
- case LeftFloat:
+ case EFloat::LeftFloat:
m_value.valueID = CSSValueLeft;
break;
- case RightFloat:
+ case EFloat::RightFloat:
m_value.valueID = CSSValueRight;
break;
}
@@ -1386,17 +1386,17 @@ template<> inline EFloat CSSPrimitiveValue::convertTo() const
ASSERT(isValueID());
switch (m_value.valueID) {
case CSSValueLeft:
- return LeftFloat;
+ return EFloat::LeftFloat;
case CSSValueRight:
- return RightFloat;
+ return EFloat::RightFloat;
case CSSValueNone:
- return NoFloat;
+ return EFloat::NoFloat;
default:
break;
}
ASSERT_NOT_REACHED();
- return NoFloat;
+ return EFloat::NoFloat;
}
template<> inline CSSPrimitiveValue::CSSPrimitiveValue(Hyphens e)
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698