| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |