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

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

Issue 689743002: First past at removing writing mode. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « 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 f34c1cb829b53b2e272784a68781050e98fb6531..36dd226c564aea8388b359c0a65fa16cdad6063a 100644
--- a/sky/engine/core/css/CSSPrimitiveValueMappings.h
+++ b/sky/engine/core/css/CSSPrimitiveValueMappings.h
@@ -2442,46 +2442,6 @@ template<> inline CSSPrimitiveValue::operator TextDirection() const
return LTR;
}
-template<> inline CSSPrimitiveValue::CSSPrimitiveValue(WritingMode e)
- : CSSValue(PrimitiveClass)
-{
- m_primitiveUnitType = CSS_VALUE_ID;
- switch (e) {
- case TopToBottomWritingMode:
- m_value.valueID = CSSValueHorizontalTb;
- break;
- case RightToLeftWritingMode:
- m_value.valueID = CSSValueVerticalRl;
- break;
- case LeftToRightWritingMode:
- m_value.valueID = CSSValueVerticalLr;
- break;
- case BottomToTopWritingMode:
- m_value.valueID = CSSValueHorizontalBt;
- break;
- }
-}
-
-template<> inline CSSPrimitiveValue::operator WritingMode() const
-{
- ASSERT(isValueID());
- switch (m_value.valueID) {
- case CSSValueHorizontalTb:
- return TopToBottomWritingMode;
- case CSSValueVerticalRl:
- return RightToLeftWritingMode;
- case CSSValueVerticalLr:
- return LeftToRightWritingMode;
- case CSSValueHorizontalBt:
- return BottomToTopWritingMode;
- default:
- break;
- }
-
- ASSERT_NOT_REACHED();
- return TopToBottomWritingMode;
-}
-
template<> inline CSSPrimitiveValue::CSSPrimitiveValue(TextCombine 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