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

Side by Side Diff: Source/core/animation/ShadowStyleInterpolation.cpp

Issue 933333003: Drop unused includes from SVGLayoutStyle.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/animation/animatable/AnimatableStrokeDasharrayList.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "config.h" 5 #include "config.h"
6 #include "core/animation/ShadowStyleInterpolation.h" 6 #include "core/animation/ShadowStyleInterpolation.h"
7 7
8 #include "core/animation/ColorStyleInterpolation.h" 8 #include "core/animation/ColorStyleInterpolation.h"
9 #include "core/animation/LengthStyleInterpolation.h" 9 #include "core/animation/LengthStyleInterpolation.h"
10 #include "core/css/CSSPrimitiveValue.h" 10 #include "core/css/CSSPrimitiveValue.h"
11 #include "core/css/CSSValueList.h"
11 #include "core/css/CSSValuePool.h" 12 #include "core/css/CSSValuePool.h"
12 #include "core/css/resolver/StyleBuilder.h" 13 #include "core/css/resolver/StyleBuilder.h"
13 14
14 namespace blink { 15 namespace blink {
15 16
16 bool ShadowStyleInterpolation::canCreateFrom(const CSSValue& start, const CSSVal ue& end) 17 bool ShadowStyleInterpolation::canCreateFrom(const CSSValue& start, const CSSVal ue& end)
17 { 18 {
18 return start.isShadowValue() && end.isShadowValue() 19 return start.isShadowValue() && end.isShadowValue()
19 && toCSSShadowValue(start).style == toCSSShadowValue(end).style 20 && toCSSShadowValue(start).style == toCSSShadowValue(end).style
20 && toCSSShadowValue(start).color && toCSSShadowValue(end).color; 21 && toCSSShadowValue(start).color && toCSSShadowValue(end).color;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 for (size_t i = 0; i < toCSSValueList(start).length(); i++) { 73 for (size_t i = 0; i < toCSSValueList(start).length(); i++) {
73 if (startList->item(i)->isShadowValue() && endList->item(i)->isShado wValue() 74 if (startList->item(i)->isShadowValue() && endList->item(i)->isShado wValue()
74 && toCSSShadowValue(startList->item(i))->style != toCSSShadowVal ue(endList->item(i))->style) 75 && toCSSShadowValue(startList->item(i))->style != toCSSShadowVal ue(endList->item(i))->style)
75 return true; 76 return true;
76 } 77 }
77 } 78 }
78 return false; 79 return false;
79 } 80 }
80 81
81 } // namespace blink 82 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/core/animation/animatable/AnimatableStrokeDasharrayList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698