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

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

Issue 2666483002: Changed ETableLayout to an enum class and renamed its members (Closed)
Patch Set: Use CSS keywords Created 3 years, 11 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/style/ComputedStyle.h » ('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 cef699baa03e00b173ae495dab6a4f82f9034662..4ef594d0ed580eea2f77c27f153e3aaf160967b5 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -2111,10 +2111,10 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(ETableLayout e)
: CSSValue(IdentifierClass) {
switch (e) {
- case TableLayoutAuto:
+ case ETableLayout::kAuto:
m_valueID = CSSValueAuto;
break;
- case TableLayoutFixed:
+ case ETableLayout::kFixed:
m_valueID = CSSValueFixed;
break;
}
@@ -2124,15 +2124,15 @@ template <>
inline ETableLayout CSSIdentifierValue::convertTo() const {
switch (m_valueID) {
case CSSValueFixed:
- return TableLayoutFixed;
+ return ETableLayout::kFixed;
case CSSValueAuto:
- return TableLayoutAuto;
+ return ETableLayout::kAuto;
default:
break;
}
ASSERT_NOT_REACHED();
- return TableLayoutAuto;
+ return ETableLayout::kAuto;
}
template <>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698