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

Side by Side 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, 5 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 unified diff | Download patch
« no previous file with comments | « Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | Source/core/css/CSSProperties.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Alexey Proskuryakov <ap@nypop.com>. 2 * Copyright (C) 2007 Alexey Proskuryakov <ap@nypop.com>.
3 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 4 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
5 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> 5 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com>
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
(...skipping 4063 matching lines...) Expand 10 before | Expand all | Expand 10 after
4074 case CSSValuePreserve3d: 4074 case CSSValuePreserve3d:
4075 return TransformStyle3DPreserve3D; 4075 return TransformStyle3DPreserve3D;
4076 default: 4076 default:
4077 break; 4077 break;
4078 } 4078 }
4079 4079
4080 ASSERT_NOT_REACHED(); 4080 ASSERT_NOT_REACHED();
4081 return TransformStyle3DFlat; 4081 return TransformStyle3DFlat;
4082 } 4082 }
4083 4083
4084 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(WrapFlow wrapFlow)
4085 : CSSValue(PrimitiveClass)
4086 {
4087 m_primitiveUnitType = CSS_VALUE_ID;
4088 switch (wrapFlow) {
4089 case WrapFlowAuto:
4090 m_value.valueID = CSSValueAuto;
4091 break;
4092 case WrapFlowBoth:
4093 m_value.valueID = CSSValueBoth;
4094 break;
4095 case WrapFlowStart:
4096 m_value.valueID = CSSValueStart;
4097 break;
4098 case WrapFlowEnd:
4099 m_value.valueID = CSSValueEnd;
4100 break;
4101 case WrapFlowMaximum:
4102 m_value.valueID = CSSValueMaximum;
4103 break;
4104 case WrapFlowClear:
4105 m_value.valueID = CSSValueClear;
4106 break;
4107 }
4108 }
4109
4110 template<> inline CSSPrimitiveValue::operator WrapFlow() const
4111 {
4112 ASSERT(isValueID());
4113 switch (m_value.valueID) {
4114 case CSSValueAuto:
4115 return WrapFlowAuto;
4116 case CSSValueBoth:
4117 return WrapFlowBoth;
4118 case CSSValueStart:
4119 return WrapFlowStart;
4120 case CSSValueEnd:
4121 return WrapFlowEnd;
4122 case CSSValueMaximum:
4123 return WrapFlowMaximum;
4124 case CSSValueClear:
4125 return WrapFlowClear;
4126 default:
4127 break;
4128 }
4129
4130 ASSERT_NOT_REACHED();
4131 return WrapFlowAuto;
4132 }
4133
4134 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(WrapThrough wrapThrough)
4135 : CSSValue(PrimitiveClass)
4136 {
4137 m_primitiveUnitType = CSS_VALUE_ID;
4138 switch (wrapThrough) {
4139 case WrapThroughWrap:
4140 m_value.valueID = CSSValueWrap;
4141 break;
4142 case WrapThroughNone:
4143 m_value.valueID = CSSValueNone;
4144 break;
4145 }
4146 }
4147
4148 template<> inline CSSPrimitiveValue::operator WrapThrough() const
4149 {
4150 ASSERT(isValueID());
4151 switch (m_value.valueID) {
4152 case CSSValueWrap:
4153 return WrapThroughWrap;
4154 case CSSValueNone:
4155 return WrapThroughNone;
4156 default:
4157 break;
4158 }
4159
4160 ASSERT_NOT_REACHED();
4161 return WrapThroughWrap;
4162 }
4163
4164 template<> inline CSSPrimitiveValue::operator GridAutoFlow() const 4084 template<> inline CSSPrimitiveValue::operator GridAutoFlow() const
4165 { 4085 {
4166 ASSERT(isValueID()); 4086 ASSERT(isValueID());
4167 switch (m_value.valueID) { 4087 switch (m_value.valueID) {
4168 case CSSValueNone: 4088 case CSSValueNone:
4169 return AutoFlowNone; 4089 return AutoFlowNone;
4170 case CSSValueColumn: 4090 case CSSValueColumn:
4171 return AutoFlowColumn; 4091 return AutoFlowColumn;
4172 case CSSValueRow: 4092 case CSSValueRow:
4173 return AutoFlowRow; 4093 return AutoFlowRow;
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
4886 default: 4806 default:
4887 break; 4807 break;
4888 } 4808 }
4889 ASSERT_NOT_REACHED(); 4809 ASSERT_NOT_REACHED();
4890 return ScrollBehaviorInstant; 4810 return ScrollBehaviorInstant;
4891 } 4811 }
4892 4812
4893 } 4813 }
4894 4814
4895 #endif 4815 #endif
OLDNEW
« 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