OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/animation/PropertyInterpolationTypesMapping.h" | 5 #include "core/animation/PropertyInterpolationTypesMapping.h" |
6 | 6 |
7 #include "core/HTMLNames.h" | 7 #include "core/HTMLNames.h" |
8 #include "core/animation/CSSBasicShapeInterpolationType.h" | 8 #include "core/animation/CSSBasicShapeInterpolationType.h" |
9 #include "core/animation/CSSBorderImageLengthBoxInterpolationType.h" | 9 #include "core/animation/CSSBorderImageLengthBoxInterpolationType.h" |
10 #include "core/animation/CSSClipInterpolationType.h" | 10 #include "core/animation/CSSClipInterpolationType.h" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 applicableTypes->append( | 150 applicableTypes->append( |
151 makeUnique<CSSLengthInterpolationType>(usedProperty)); | 151 makeUnique<CSSLengthInterpolationType>(usedProperty)); |
152 applicableTypes->append( | 152 applicableTypes->append( |
153 makeUnique<CSSNumberInterpolationType>(usedProperty)); | 153 makeUnique<CSSNumberInterpolationType>(usedProperty)); |
154 break; | 154 break; |
155 case CSSPropertyBackgroundColor: | 155 case CSSPropertyBackgroundColor: |
156 case CSSPropertyBorderBottomColor: | 156 case CSSPropertyBorderBottomColor: |
157 case CSSPropertyBorderLeftColor: | 157 case CSSPropertyBorderLeftColor: |
158 case CSSPropertyBorderRightColor: | 158 case CSSPropertyBorderRightColor: |
159 case CSSPropertyBorderTopColor: | 159 case CSSPropertyBorderTopColor: |
| 160 case CSSPropertyCaretColor: |
160 case CSSPropertyColor: | 161 case CSSPropertyColor: |
161 case CSSPropertyFloodColor: | 162 case CSSPropertyFloodColor: |
162 case CSSPropertyLightingColor: | 163 case CSSPropertyLightingColor: |
163 case CSSPropertyOutlineColor: | 164 case CSSPropertyOutlineColor: |
164 case CSSPropertyStopColor: | 165 case CSSPropertyStopColor: |
165 case CSSPropertyTextDecorationColor: | 166 case CSSPropertyTextDecorationColor: |
166 case CSSPropertyColumnRuleColor: | 167 case CSSPropertyColumnRuleColor: |
167 case CSSPropertyWebkitTextStrokeColor: | 168 case CSSPropertyWebkitTextStrokeColor: |
168 applicableTypes->append( | 169 applicableTypes->append( |
169 makeUnique<CSSColorInterpolationType>(usedProperty)); | 170 makeUnique<CSSColorInterpolationType>(usedProperty)); |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 } | 418 } |
418 | 419 |
419 applicableTypes->append(makeUnique<SVGValueInterpolationType>(attribute)); | 420 applicableTypes->append(makeUnique<SVGValueInterpolationType>(attribute)); |
420 } | 421 } |
421 | 422 |
422 auto addResult = applicableTypesMap.add(property, std::move(applicableTypes)); | 423 auto addResult = applicableTypesMap.add(property, std::move(applicableTypes)); |
423 return *addResult.storedValue->value.get(); | 424 return *addResult.storedValue->value.get(); |
424 } | 425 } |
425 | 426 |
426 } // namespace blink | 427 } // namespace blink |
OLD | NEW |