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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 applicableTypes->append(adoptPtr(new CSSImageSliceInterpolationType(
cssProperty))); | 233 applicableTypes->append(adoptPtr(new CSSImageSliceInterpolationType(
cssProperty))); |
234 break; | 234 break; |
235 case CSSPropertyWebkitClipPath: | 235 case CSSPropertyWebkitClipPath: |
236 case CSSPropertyShapeOutside: | 236 case CSSPropertyShapeOutside: |
237 applicableTypes->append(adoptPtr(new CSSBasicShapeInterpolationType(
cssProperty))); | 237 applicableTypes->append(adoptPtr(new CSSBasicShapeInterpolationType(
cssProperty))); |
238 break; | 238 break; |
239 case CSSPropertyRotate: | 239 case CSSPropertyRotate: |
240 applicableTypes->append(adoptPtr(new CSSRotateInterpolationType(cssP
roperty))); | 240 applicableTypes->append(adoptPtr(new CSSRotateInterpolationType(cssP
roperty))); |
241 break; | 241 break; |
242 case CSSPropertyBackdropFilter: | 242 case CSSPropertyBackdropFilter: |
243 case CSSPropertyWebkitFilter: | 243 case CSSPropertyFilter: |
244 applicableTypes->append(adoptPtr(new CSSFilterListInterpolationType(
cssProperty))); | 244 applicableTypes->append(adoptPtr(new CSSFilterListInterpolationType(
cssProperty))); |
245 break; | 245 break; |
246 case CSSPropertyTransform: | 246 case CSSPropertyTransform: |
247 applicableTypes->append(adoptPtr(new CSSTransformInterpolationType(c
ssProperty))); | 247 applicableTypes->append(adoptPtr(new CSSTransformInterpolationType(c
ssProperty))); |
248 break; | 248 break; |
249 default: | 249 default: |
250 ASSERT(!CSSPropertyMetadata::isInterpolableProperty(cssProperty)); | 250 ASSERT(!CSSPropertyMetadata::isInterpolableProperty(cssProperty)); |
251 } | 251 } |
252 | 252 |
253 applicableTypes->append(adoptPtr(new CSSValueInterpolationType(cssProper
ty))); | 253 applicableTypes->append(adoptPtr(new CSSValueInterpolationType(cssProper
ty))); |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 } | 370 } |
371 | 371 |
372 applicableTypes->append(adoptPtr(new SVGValueInterpolationType(attribute
))); | 372 applicableTypes->append(adoptPtr(new SVGValueInterpolationType(attribute
))); |
373 } | 373 } |
374 | 374 |
375 auto addResult = applicableTypesMap.add(property, std::move(applicableTypes)
); | 375 auto addResult = applicableTypesMap.add(property, std::move(applicableTypes)
); |
376 return *addResult.storedValue->value.get(); | 376 return *addResult.storedValue->value.get(); |
377 } | 377 } |
378 | 378 |
379 } // namespace blink | 379 } // namespace blink |
OLD | NEW |