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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 void PrintTo(const AnimatableImage& animImage, ::std::ostream* os) | 54 void PrintTo(const AnimatableImage& animImage, ::std::ostream* os) |
55 { | 55 { |
56 PrintTo(*(animImage.toCSSValue()), os, "AnimatableImage"); | 56 PrintTo(*(animImage.toCSSValue()), os, "AnimatableImage"); |
57 } | 57 } |
58 | 58 |
59 void PrintTo(const AnimatableNeutral& animValue, ::std::ostream* os) | 59 void PrintTo(const AnimatableNeutral& animValue, ::std::ostream* os) |
60 { | 60 { |
61 *os << "AnimatableNeutral@" << &animValue; | 61 *os << "AnimatableNeutral@" << &animValue; |
62 } | 62 } |
63 | 63 |
| 64 void PrintTo(const AnimatablePath& animValue, ::std::ostream* os) |
| 65 { |
| 66 *os << "AnimatablePath@" << &animValue; |
| 67 } |
| 68 |
64 void PrintTo(const AnimatableRepeatable& animValue, ::std::ostream* os) | 69 void PrintTo(const AnimatableRepeatable& animValue, ::std::ostream* os) |
65 { | 70 { |
66 *os << "AnimatableRepeatable("; | 71 *os << "AnimatableRepeatable("; |
67 | 72 |
68 const Vector<RefPtr<AnimatableValue>> v = animValue.values(); | 73 const Vector<RefPtr<AnimatableValue>> v = animValue.values(); |
69 for (Vector<RefPtr<AnimatableValue>>::const_iterator it = v.begin(); it != v
.end(); ++it) { | 74 for (Vector<RefPtr<AnimatableValue>>::const_iterator it = v.begin(); it != v
.end(); ++it) { |
70 PrintTo(*(it->get()), os); | 75 PrintTo(*(it->get()), os); |
71 if (it+1 != v.end()) | 76 if (it+1 != v.end()) |
72 *os << ", "; | 77 *os << ", "; |
73 } | 78 } |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 PrintTo(toAnimatableTransform(animValue), os); | 197 PrintTo(toAnimatableTransform(animValue), os); |
193 else if (animValue.isUnknown()) | 198 else if (animValue.isUnknown()) |
194 PrintTo(toAnimatableUnknown(animValue), os); | 199 PrintTo(toAnimatableUnknown(animValue), os); |
195 else if (animValue.isVisibility()) | 200 else if (animValue.isVisibility()) |
196 PrintTo(toAnimatableVisibility(animValue), os); | 201 PrintTo(toAnimatableVisibility(animValue), os); |
197 else | 202 else |
198 *os << "Unknown AnimatableValue - update ifelse chain in AnimatableValue
TestHelper.h"; | 203 *os << "Unknown AnimatableValue - update ifelse chain in AnimatableValue
TestHelper.h"; |
199 } | 204 } |
200 | 205 |
201 } // namespace blink | 206 } // namespace blink |
OLD | NEW |