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

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

Issue 689283003: Remove scroll corners and resizers. (Closed) Base URL: git@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 3179fb5fa4891b5f3e407ea3f2e3ae77cde97dca..6839482cc004fb2e2158565e935cd6f80f91a9c1 100644
--- a/sky/engine/core/css/CSSPrimitiveValueMappings.h
+++ b/sky/engine/core/css/CSSPrimitiveValueMappings.h
@@ -1654,49 +1654,6 @@ template<> inline CSSPrimitiveValue::operator EPosition() const
return StaticPosition;
}
-template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EResize e)
- : CSSValue(PrimitiveClass)
-{
- m_primitiveUnitType = CSS_VALUE_ID;
- switch (e) {
- case RESIZE_BOTH:
- m_value.valueID = CSSValueBoth;
- break;
- case RESIZE_HORIZONTAL:
- m_value.valueID = CSSValueHorizontal;
- break;
- case RESIZE_VERTICAL:
- m_value.valueID = CSSValueVertical;
- break;
- case RESIZE_NONE:
- m_value.valueID = CSSValueNone;
- break;
- }
-}
-
-template<> inline CSSPrimitiveValue::operator EResize() const
-{
- ASSERT(isValueID());
- switch (m_value.valueID) {
- case CSSValueBoth:
- return RESIZE_BOTH;
- case CSSValueHorizontal:
- return RESIZE_HORIZONTAL;
- case CSSValueVertical:
- return RESIZE_VERTICAL;
- case CSSValueAuto:
- ASSERT_NOT_REACHED(); // Depends on settings, thus should be handled by the caller.
- return RESIZE_NONE;
- case CSSValueNone:
- return RESIZE_NONE;
- default:
- break;
- }
-
- ASSERT_NOT_REACHED();
- return RESIZE_NONE;
-}
-
template<> inline CSSPrimitiveValue::CSSPrimitiveValue(ETableLayout 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