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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp

Issue 2893313004: Remove unused AnimatableValue types (Closed)
Patch Set: Created 3 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 12 matching lines...) Expand all
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "core/css/resolver/AnimatedStyleBuilder.h" 31 #include "core/css/resolver/AnimatedStyleBuilder.h"
32 32
33 #include "core/animation/animatable/AnimatableClipPathOperation.h"
34 #include "core/animation/animatable/AnimatableColor.h"
35 #include "core/animation/animatable/AnimatableDouble.h" 33 #include "core/animation/animatable/AnimatableDouble.h"
36 #include "core/animation/animatable/AnimatableDoubleAndBool.h"
37 #include "core/animation/animatable/AnimatableFilterOperations.h" 34 #include "core/animation/animatable/AnimatableFilterOperations.h"
38 #include "core/animation/animatable/AnimatableImage.h"
39 #include "core/animation/animatable/AnimatableLength.h"
40 #include "core/animation/animatable/AnimatableLengthBox.h"
41 #include "core/animation/animatable/AnimatableLengthBoxAndBool.h"
42 #include "core/animation/animatable/AnimatableLengthPoint.h"
43 #include "core/animation/animatable/AnimatableLengthPoint3D.h"
44 #include "core/animation/animatable/AnimatableLengthSize.h"
45 #include "core/animation/animatable/AnimatablePath.h"
46 #include "core/animation/animatable/AnimatableRepeatable.h"
47 #include "core/animation/animatable/AnimatableSVGPaint.h"
48 #include "core/animation/animatable/AnimatableShadow.h"
49 #include "core/animation/animatable/AnimatableShapeValue.h"
50 #include "core/animation/animatable/AnimatableStrokeDasharrayList.h"
51 #include "core/animation/animatable/AnimatableTransform.h" 35 #include "core/animation/animatable/AnimatableTransform.h"
52 #include "core/animation/animatable/AnimatableUnknown.h"
53 #include "core/animation/animatable/AnimatableValue.h"
54 #include "core/animation/animatable/AnimatableVisibility.h"
55 #include "core/css/CSSPrimitiveValue.h"
56 #include "core/css/CSSPrimitiveValueMappings.h"
57 #include "core/css/CSSPropertyMetadata.h" 36 #include "core/css/CSSPropertyMetadata.h"
58 #include "core/css/resolver/StyleBuilder.h"
59 #include "core/css/resolver/StyleResolverState.h"
60 #include "core/style/ComputedStyle.h" 37 #include "core/style/ComputedStyle.h"
61 #include "platform/wtf/MathExtras.h"
62 38
63 #include <type_traits> 39 #include <type_traits>
64 40
65 namespace blink { 41 namespace blink {
66 42
67 void AnimatedStyleBuilder::ApplyProperty(CSSPropertyID property, 43 void AnimatedStyleBuilder::ApplyProperty(CSSPropertyID property,
68 ComputedStyle& style, 44 ComputedStyle& style,
69 const AnimatableValue* value) { 45 const AnimatableValue* value) {
70 DCHECK(CSSPropertyMetadata::IsInterpolableProperty(property)); 46 DCHECK(CSSPropertyMetadata::IsInterpolableProperty(property));
71 switch (property) { 47 switch (property) {
(...skipping 21 matching lines...) Expand all
93 case CSSPropertyFilter: 69 case CSSPropertyFilter:
94 style.SetFilter(ToAnimatableFilterOperations(value)->Operations()); 70 style.SetFilter(ToAnimatableFilterOperations(value)->Operations());
95 return; 71 return;
96 72
97 default: 73 default:
98 NOTREACHED(); 74 NOTREACHED();
99 } 75 }
100 } 76 }
101 77
102 } // namespace blink 78 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698