| 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/CSSClipInterpolationType.h" | 8 #include "core/animation/CSSClipInterpolationType.h" |
| 9 #include "core/animation/CSSColorInterpolationType.h" | 9 #include "core/animation/CSSColorInterpolationType.h" |
| 10 #include "core/animation/CSSFontWeightInterpolationType.h" | 10 #include "core/animation/CSSFontWeightInterpolationType.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 case CSSPropertyRight: | 86 case CSSPropertyRight: |
| 87 case CSSPropertyRx: | 87 case CSSPropertyRx: |
| 88 case CSSPropertyRy: | 88 case CSSPropertyRy: |
| 89 case CSSPropertyShapeMargin: | 89 case CSSPropertyShapeMargin: |
| 90 case CSSPropertyStrokeDashoffset: | 90 case CSSPropertyStrokeDashoffset: |
| 91 case CSSPropertyStrokeWidth: | 91 case CSSPropertyStrokeWidth: |
| 92 case CSSPropertyTop: | 92 case CSSPropertyTop: |
| 93 case CSSPropertyVerticalAlign: | 93 case CSSPropertyVerticalAlign: |
| 94 case CSSPropertyWebkitBorderHorizontalSpacing: | 94 case CSSPropertyWebkitBorderHorizontalSpacing: |
| 95 case CSSPropertyWebkitBorderVerticalSpacing: | 95 case CSSPropertyWebkitBorderVerticalSpacing: |
| 96 case CSSPropertyWebkitColumnGap: | 96 case CSSPropertyColumnGap: |
| 97 case CSSPropertyWebkitColumnRuleWidth: | 97 case CSSPropertyColumnRuleWidth: |
| 98 case CSSPropertyWebkitColumnWidth: | 98 case CSSPropertyColumnWidth: |
| 99 case CSSPropertyWebkitPerspectiveOriginX: | 99 case CSSPropertyWebkitPerspectiveOriginX: |
| 100 case CSSPropertyWebkitPerspectiveOriginY: | 100 case CSSPropertyWebkitPerspectiveOriginY: |
| 101 case CSSPropertyWebkitTransformOriginX: | 101 case CSSPropertyWebkitTransformOriginX: |
| 102 case CSSPropertyWebkitTransformOriginY: | 102 case CSSPropertyWebkitTransformOriginY: |
| 103 case CSSPropertyWebkitTransformOriginZ: | 103 case CSSPropertyWebkitTransformOriginZ: |
| 104 case CSSPropertyWidth: | 104 case CSSPropertyWidth: |
| 105 case CSSPropertyWordSpacing: | 105 case CSSPropertyWordSpacing: |
| 106 case CSSPropertyX: | 106 case CSSPropertyX: |
| 107 case CSSPropertyY: | 107 case CSSPropertyY: |
| 108 applicableTypes->append(adoptPtr(new CSSLengthInterpolationType(cssP
roperty))); | 108 applicableTypes->append(adoptPtr(new CSSLengthInterpolationType(cssP
roperty))); |
| 109 break; | 109 break; |
| 110 case CSSPropertyFlexGrow: | 110 case CSSPropertyFlexGrow: |
| 111 case CSSPropertyFlexShrink: | 111 case CSSPropertyFlexShrink: |
| 112 case CSSPropertyFillOpacity: | 112 case CSSPropertyFillOpacity: |
| 113 case CSSPropertyFloodOpacity: | 113 case CSSPropertyFloodOpacity: |
| 114 case CSSPropertyFontSizeAdjust: | 114 case CSSPropertyFontSizeAdjust: |
| 115 case CSSPropertyOpacity: | 115 case CSSPropertyOpacity: |
| 116 case CSSPropertyOrphans: | 116 case CSSPropertyOrphans: |
| 117 case CSSPropertyShapeImageThreshold: | 117 case CSSPropertyShapeImageThreshold: |
| 118 case CSSPropertyStopOpacity: | 118 case CSSPropertyStopOpacity: |
| 119 case CSSPropertyStrokeMiterlimit: | 119 case CSSPropertyStrokeMiterlimit: |
| 120 case CSSPropertyStrokeOpacity: | 120 case CSSPropertyStrokeOpacity: |
| 121 case CSSPropertyWebkitColumnCount: | 121 case CSSPropertyColumnCount: |
| 122 case CSSPropertyWidows: | 122 case CSSPropertyWidows: |
| 123 case CSSPropertyZIndex: | 123 case CSSPropertyZIndex: |
| 124 applicableTypes->append(adoptPtr(new CSSNumberInterpolationType(cssP
roperty))); | 124 applicableTypes->append(adoptPtr(new CSSNumberInterpolationType(cssP
roperty))); |
| 125 break; | 125 break; |
| 126 case CSSPropertyLineHeight: | 126 case CSSPropertyLineHeight: |
| 127 applicableTypes->append(adoptPtr(new CSSLengthInterpolationType(cssP
roperty))); | 127 applicableTypes->append(adoptPtr(new CSSLengthInterpolationType(cssP
roperty))); |
| 128 applicableTypes->append(adoptPtr(new CSSNumberInterpolationType(cssP
roperty))); | 128 applicableTypes->append(adoptPtr(new CSSNumberInterpolationType(cssP
roperty))); |
| 129 break; | 129 break; |
| 130 case CSSPropertyBackgroundColor: | 130 case CSSPropertyBackgroundColor: |
| 131 case CSSPropertyBorderBottomColor: | 131 case CSSPropertyBorderBottomColor: |
| 132 case CSSPropertyBorderLeftColor: | 132 case CSSPropertyBorderLeftColor: |
| 133 case CSSPropertyBorderRightColor: | 133 case CSSPropertyBorderRightColor: |
| 134 case CSSPropertyBorderTopColor: | 134 case CSSPropertyBorderTopColor: |
| 135 case CSSPropertyColor: | 135 case CSSPropertyColor: |
| 136 case CSSPropertyFloodColor: | 136 case CSSPropertyFloodColor: |
| 137 case CSSPropertyLightingColor: | 137 case CSSPropertyLightingColor: |
| 138 case CSSPropertyOutlineColor: | 138 case CSSPropertyOutlineColor: |
| 139 case CSSPropertyStopColor: | 139 case CSSPropertyStopColor: |
| 140 case CSSPropertyTextDecorationColor: | 140 case CSSPropertyTextDecorationColor: |
| 141 case CSSPropertyWebkitColumnRuleColor: | 141 case CSSPropertyColumnRuleColor: |
| 142 case CSSPropertyWebkitTextStrokeColor: | 142 case CSSPropertyWebkitTextStrokeColor: |
| 143 applicableTypes->append(adoptPtr(new CSSColorInterpolationType(cssPr
operty))); | 143 applicableTypes->append(adoptPtr(new CSSColorInterpolationType(cssPr
operty))); |
| 144 break; | 144 break; |
| 145 case CSSPropertyFill: | 145 case CSSPropertyFill: |
| 146 case CSSPropertyStroke: | 146 case CSSPropertyStroke: |
| 147 applicableTypes->append(adoptPtr(new CSSPaintInterpolationType(cssPr
operty))); | 147 applicableTypes->append(adoptPtr(new CSSPaintInterpolationType(cssPr
operty))); |
| 148 break; | 148 break; |
| 149 case CSSPropertyD: | 149 case CSSPropertyD: |
| 150 applicableTypes->append(adoptPtr(new CSSPathInterpolationType(cssPro
perty))); | 150 applicableTypes->append(adoptPtr(new CSSPathInterpolationType(cssPro
perty))); |
| 151 break; | 151 break; |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 | 322 |
| 323 if (!fallbackToLegacy) | 323 if (!fallbackToLegacy) |
| 324 applicableTypes->append(adoptPtr(new SVGValueInterpolationType(attri
bute))); | 324 applicableTypes->append(adoptPtr(new SVGValueInterpolationType(attri
bute))); |
| 325 } | 325 } |
| 326 | 326 |
| 327 auto addResult = applicableTypesMap.add(property, fallbackToLegacy ? nullptr
: applicableTypes.release()); | 327 auto addResult = applicableTypesMap.add(property, fallbackToLegacy ? nullptr
: applicableTypes.release()); |
| 328 return addResult.storedValue->value.get(); | 328 return addResult.storedValue->value.get(); |
| 329 } | 329 } |
| 330 | 330 |
| 331 } // namespace blink | 331 } // namespace blink |
| OLD | NEW |