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

Unified Diff: sky/engine/core/css/CSSPrimitiveValueMappings.h

Issue 760583004: Remove webkit-margin-collapse (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/css/CSSComputedStyleDeclaration.cpp ('k') | sky/engine/core/css/CSSProperties.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/CSSPrimitiveValueMappings.h
diff --git a/sky/engine/core/css/CSSPrimitiveValueMappings.h b/sky/engine/core/css/CSSPrimitiveValueMappings.h
index 44e5606f3dd4434ddde646571ddf12139f3ee736..a9ca4abdc03eab3d8bdcad49931b5f05fed55a98 100644
--- a/sky/engine/core/css/CSSPrimitiveValueMappings.h
+++ b/sky/engine/core/css/CSSPrimitiveValueMappings.h
@@ -1475,41 +1475,6 @@ template<> inline CSSPrimitiveValue::operator EListStyleType() const
}
}
-template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EMarginCollapse e)
- : CSSValue(PrimitiveClass)
-{
- m_primitiveUnitType = CSS_VALUE_ID;
- switch (e) {
- case MCOLLAPSE:
- m_value.valueID = CSSValueCollapse;
- break;
- case MSEPARATE:
- m_value.valueID = CSSValueSeparate;
- break;
- case MDISCARD:
- m_value.valueID = CSSValueDiscard;
- break;
- }
-}
-
-template<> inline CSSPrimitiveValue::operator EMarginCollapse() const
-{
- ASSERT(isValueID());
- switch (m_value.valueID) {
- case CSSValueCollapse:
- return MCOLLAPSE;
- case CSSValueSeparate:
- return MSEPARATE;
- case CSSValueDiscard:
- return MDISCARD;
- default:
- break;
- }
-
- ASSERT_NOT_REACHED();
- return MCOLLAPSE;
-}
-
template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EOverflow e)
: CSSValue(PrimitiveClass)
{
« no previous file with comments | « sky/engine/core/css/CSSComputedStyleDeclaration.cpp ('k') | sky/engine/core/css/CSSProperties.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698