| OLD | NEW |
| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #ifndef AnimatableRepeatable_h | 31 #ifndef AnimatableRepeatable_h |
| 32 #define AnimatableRepeatable_h | 32 #define AnimatableRepeatable_h |
| 33 | 33 |
| 34 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
| 35 #include "core/animation/animatable/AnimatableValue.h" | 35 #include "core/animation/animatable/AnimatableValue.h" |
| 36 #include "wtf/Vector.h" | 36 #include "wtf/Vector.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 // This class represents collections of values that animate in a repeated fashio
n as described by the CSS Transitions spec: | 40 // This class represents collections of values that animate in a repeated |
| 41 // fashion as described by the CSS Transitions spec: |
| 41 // http://www.w3.org/TR/css3-transitions/#animtype-repeatable-list | 42 // http://www.w3.org/TR/css3-transitions/#animtype-repeatable-list |
| 42 class CORE_EXPORT AnimatableRepeatable : public AnimatableValue { | 43 class CORE_EXPORT AnimatableRepeatable : public AnimatableValue { |
| 43 public: | 44 public: |
| 44 ~AnimatableRepeatable() override {} | 45 ~AnimatableRepeatable() override {} |
| 45 | 46 |
| 46 // This will consume the vector passed into it. | 47 // This will consume the vector passed into it. |
| 47 static PassRefPtr<AnimatableRepeatable> create( | 48 static PassRefPtr<AnimatableRepeatable> create( |
| 48 Vector<RefPtr<AnimatableValue>>& values) { | 49 Vector<RefPtr<AnimatableValue>>& values) { |
| 49 return adoptRef(new AnimatableRepeatable(values)); | 50 return adoptRef(new AnimatableRepeatable(values)); |
| 50 } | 51 } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 78 | 79 |
| 79 DEFINE_TYPE_CASTS(AnimatableRepeatable, | 80 DEFINE_TYPE_CASTS(AnimatableRepeatable, |
| 80 AnimatableValue, | 81 AnimatableValue, |
| 81 value, | 82 value, |
| 82 (value->isRepeatable() || value->isStrokeDasharrayList()), | 83 (value->isRepeatable() || value->isStrokeDasharrayList()), |
| 83 (value.isRepeatable() || value.isStrokeDasharrayList())); | 84 (value.isRepeatable() || value.isStrokeDasharrayList())); |
| 84 | 85 |
| 85 } // namespace blink | 86 } // namespace blink |
| 86 | 87 |
| 87 #endif // AnimatableRepeatable_h | 88 #endif // AnimatableRepeatable_h |
| OLD | NEW |