| 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/CSSInterpolationTypesMap.h" | 5 #include "core/animation/CSSInterpolationTypesMap.h" |
| 6 | 6 |
| 7 #include "core/animation/CSSBasicShapeInterpolationType.h" | 7 #include "core/animation/CSSBasicShapeInterpolationType.h" |
| 8 #include "core/animation/CSSBorderImageLengthBoxInterpolationType.h" | 8 #include "core/animation/CSSBorderImageLengthBoxInterpolationType.h" |
| 9 #include "core/animation/CSSClipInterpolationType.h" | 9 #include "core/animation/CSSClipInterpolationType.h" |
| 10 #include "core/animation/CSSColorInterpolationType.h" | 10 #include "core/animation/CSSColorInterpolationType.h" |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 applicableTypes->push_back( | 135 applicableTypes->push_back( |
| 136 WTF::makeUnique<CSSLengthInterpolationType>(usedProperty)); | 136 WTF::makeUnique<CSSLengthInterpolationType>(usedProperty)); |
| 137 applicableTypes->push_back( | 137 applicableTypes->push_back( |
| 138 WTF::makeUnique<CSSNumberInterpolationType>(usedProperty)); | 138 WTF::makeUnique<CSSNumberInterpolationType>(usedProperty)); |
| 139 break; | 139 break; |
| 140 case CSSPropertyBackgroundColor: | 140 case CSSPropertyBackgroundColor: |
| 141 case CSSPropertyBorderBottomColor: | 141 case CSSPropertyBorderBottomColor: |
| 142 case CSSPropertyBorderLeftColor: | 142 case CSSPropertyBorderLeftColor: |
| 143 case CSSPropertyBorderRightColor: | 143 case CSSPropertyBorderRightColor: |
| 144 case CSSPropertyBorderTopColor: | 144 case CSSPropertyBorderTopColor: |
| 145 case CSSPropertyCaretColor: |
| 145 case CSSPropertyColor: | 146 case CSSPropertyColor: |
| 146 case CSSPropertyFloodColor: | 147 case CSSPropertyFloodColor: |
| 147 case CSSPropertyLightingColor: | 148 case CSSPropertyLightingColor: |
| 148 case CSSPropertyOutlineColor: | 149 case CSSPropertyOutlineColor: |
| 149 case CSSPropertyStopColor: | 150 case CSSPropertyStopColor: |
| 150 case CSSPropertyTextDecorationColor: | 151 case CSSPropertyTextDecorationColor: |
| 151 case CSSPropertyColumnRuleColor: | 152 case CSSPropertyColumnRuleColor: |
| 152 case CSSPropertyWebkitTextStrokeColor: | 153 case CSSPropertyWebkitTextStrokeColor: |
| 153 applicableTypes->push_back( | 154 applicableTypes->push_back( |
| 154 WTF::makeUnique<CSSColorInterpolationType>(usedProperty)); | 155 WTF::makeUnique<CSSColorInterpolationType>(usedProperty)); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 } | 292 } |
| 292 | 293 |
| 293 size_t CSSInterpolationTypesMap::version() const { | 294 size_t CSSInterpolationTypesMap::version() const { |
| 294 // Property registrations are never removed so the number of registered | 295 // Property registrations are never removed so the number of registered |
| 295 // custom properties is equivalent to how many changes there have been to the | 296 // custom properties is equivalent to how many changes there have been to the |
| 296 // property registry. | 297 // property registry. |
| 297 return m_registry ? m_registry->registrationCount() : 0; | 298 return m_registry ? m_registry->registrationCount() : 0; |
| 298 } | 299 } |
| 299 | 300 |
| 300 } // namespace blink | 301 } // namespace blink |
| OLD | NEW |