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

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

Issue 359023002: Remove CSS Exclusions leftovers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase against ToT Created 6 years, 6 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 | « Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | Source/core/css/CSSProperties.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSPrimitiveValueMappings.h
diff --git a/Source/core/css/CSSPrimitiveValueMappings.h b/Source/core/css/CSSPrimitiveValueMappings.h
index 5502a171775564bd46bc3dd61a5443a5e63b4e71..bd73debcf3b41f1f4b3e0bc5f96dc8a21bcf0993 100644
--- a/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/Source/core/css/CSSPrimitiveValueMappings.h
@@ -4081,86 +4081,6 @@ template<> inline CSSPrimitiveValue::operator ETransformStyle3D() const
return TransformStyle3DFlat;
}
-template<> inline CSSPrimitiveValue::CSSPrimitiveValue(WrapFlow wrapFlow)
-: CSSValue(PrimitiveClass)
-{
- m_primitiveUnitType = CSS_VALUE_ID;
- switch (wrapFlow) {
- case WrapFlowAuto:
- m_value.valueID = CSSValueAuto;
- break;
- case WrapFlowBoth:
- m_value.valueID = CSSValueBoth;
- break;
- case WrapFlowStart:
- m_value.valueID = CSSValueStart;
- break;
- case WrapFlowEnd:
- m_value.valueID = CSSValueEnd;
- break;
- case WrapFlowMaximum:
- m_value.valueID = CSSValueMaximum;
- break;
- case WrapFlowClear:
- m_value.valueID = CSSValueClear;
- break;
- }
-}
-
-template<> inline CSSPrimitiveValue::operator WrapFlow() const
-{
- ASSERT(isValueID());
- switch (m_value.valueID) {
- case CSSValueAuto:
- return WrapFlowAuto;
- case CSSValueBoth:
- return WrapFlowBoth;
- case CSSValueStart:
- return WrapFlowStart;
- case CSSValueEnd:
- return WrapFlowEnd;
- case CSSValueMaximum:
- return WrapFlowMaximum;
- case CSSValueClear:
- return WrapFlowClear;
- default:
- break;
- }
-
- ASSERT_NOT_REACHED();
- return WrapFlowAuto;
-}
-
-template<> inline CSSPrimitiveValue::CSSPrimitiveValue(WrapThrough wrapThrough)
-: CSSValue(PrimitiveClass)
-{
- m_primitiveUnitType = CSS_VALUE_ID;
- switch (wrapThrough) {
- case WrapThroughWrap:
- m_value.valueID = CSSValueWrap;
- break;
- case WrapThroughNone:
- m_value.valueID = CSSValueNone;
- break;
- }
-}
-
-template<> inline CSSPrimitiveValue::operator WrapThrough() const
-{
- ASSERT(isValueID());
- switch (m_value.valueID) {
- case CSSValueWrap:
- return WrapThroughWrap;
- case CSSValueNone:
- return WrapThroughNone;
- default:
- break;
- }
-
- ASSERT_NOT_REACHED();
- return WrapThroughWrap;
-}
-
template<> inline CSSPrimitiveValue::operator GridAutoFlow() const
{
ASSERT(isValueID());
« no previous file with comments | « Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | Source/core/css/CSSProperties.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698