| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 AnimatableRepeatable& animValue, ::std::ostream* os) | 64 void PrintTo(const AnimatableRepeatable& animValue, ::std::ostream* os) |
| 65 { | 65 { |
| 66 *os << "AnimatableRepeatable("; | 66 *os << "AnimatableRepeatable("; |
| 67 | 67 |
| 68 const WillBeHeapVector<RefPtrWillBeMember<AnimatableValue> > v = animValue.v
alues(); | 68 const WillBeHeapVector<RefPtrWillBeMember<AnimatableValue>> v = animValue.va
lues(); |
| 69 for (WillBeHeapVector<RefPtrWillBeMember<AnimatableValue> >::const_iterator
it = v.begin(); it != v.end(); ++it) { | 69 for (WillBeHeapVector<RefPtrWillBeMember<AnimatableValue>>::const_iterator i
t = v.begin(); it != v.end(); ++it) { |
| 70 PrintTo(*(it->get()), os); | 70 PrintTo(*(it->get()), os); |
| 71 if (it+1 != v.end()) | 71 if (it+1 != v.end()) |
| 72 *os << ", "; | 72 *os << ", "; |
| 73 } | 73 } |
| 74 *os << ")"; | 74 *os << ")"; |
| 75 } | 75 } |
| 76 | 76 |
| 77 void PrintTo(const AnimatableSVGLength& animSVGLength, ::std::ostream* os) | 77 void PrintTo(const AnimatableSVGLength& animSVGLength, ::std::ostream* os) |
| 78 { | 78 { |
| 79 *os << "AnimatableSVGLength(" | 79 *os << "AnimatableSVGLength(" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 PrintTo(toAnimatableTransform(animValue), os); | 196 PrintTo(toAnimatableTransform(animValue), os); |
| 197 else if (animValue.isUnknown()) | 197 else if (animValue.isUnknown()) |
| 198 PrintTo(toAnimatableUnknown(animValue), os); | 198 PrintTo(toAnimatableUnknown(animValue), os); |
| 199 else if (animValue.isVisibility()) | 199 else if (animValue.isVisibility()) |
| 200 PrintTo(toAnimatableVisibility(animValue), os); | 200 PrintTo(toAnimatableVisibility(animValue), os); |
| 201 else | 201 else |
| 202 *os << "Unknown AnimatableValue - update ifelse chain in AnimatableValue
TestHelper.h"; | 202 *os << "Unknown AnimatableValue - update ifelse chain in AnimatableValue
TestHelper.h"; |
| 203 } | 203 } |
| 204 | 204 |
| 205 } // namespace blink | 205 } // namespace blink |
| OLD | NEW |