| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 const WillBeHeapVector<RefPtrWillBeMember<AnimatableValue>> v = animValue.va
lues(); | 68 const WillBeHeapVector<RefPtrWillBeMember<AnimatableValue>> v = animValue.va
lues(); |
| 69 for (WillBeHeapVector<RefPtrWillBeMember<AnimatableValue>>::const_iterator i
t = 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) | |
| 78 { | |
| 79 *os << "AnimatableSVGLength(" | |
| 80 << animSVGLength.toSVGLength()->valueAsString().utf8().data() << ")"; | |
| 81 } | |
| 82 | |
| 83 void PrintTo(const AnimatableShapeValue& animValue, ::std::ostream* os) | 77 void PrintTo(const AnimatableShapeValue& animValue, ::std::ostream* os) |
| 84 { | 78 { |
| 85 *os << "AnimatableShapeValue@" << &animValue; | 79 *os << "AnimatableShapeValue@" << &animValue; |
| 86 } | 80 } |
| 87 | 81 |
| 88 void PrintTo(const AnimatableStrokeDasharrayList& animValue, ::std::ostream* os) | 82 void PrintTo(const AnimatableStrokeDasharrayList& animValue, ::std::ostream* os) |
| 89 { | 83 { |
| 90 *os << "AnimatableStrokeDasharrayList("; | 84 *os << "AnimatableStrokeDasharrayList("; |
| 91 RefPtr<SVGDashArray> list = animValue.toSVGDashArray(1); | 85 RefPtr<SVGDashArray> list = animValue.toSVGDashArray(1); |
| 92 size_t length = list->size(); | 86 size_t length = list->size(); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 if (animValue.isClipPathOperation()) | 175 if (animValue.isClipPathOperation()) |
| 182 PrintTo(toAnimatableClipPathOperation(animValue), os); | 176 PrintTo(toAnimatableClipPathOperation(animValue), os); |
| 183 else if (animValue.isColor()) | 177 else if (animValue.isColor()) |
| 184 PrintTo(toAnimatableColor(animValue), os); | 178 PrintTo(toAnimatableColor(animValue), os); |
| 185 else if (animValue.isImage()) | 179 else if (animValue.isImage()) |
| 186 PrintTo(toAnimatableImage(animValue), os); | 180 PrintTo(toAnimatableImage(animValue), os); |
| 187 else if (animValue.isNeutral()) | 181 else if (animValue.isNeutral()) |
| 188 PrintTo(static_cast<const AnimatableNeutral&>(animValue), os); | 182 PrintTo(static_cast<const AnimatableNeutral&>(animValue), os); |
| 189 else if (animValue.isRepeatable()) | 183 else if (animValue.isRepeatable()) |
| 190 PrintTo(toAnimatableRepeatable(animValue), os); | 184 PrintTo(toAnimatableRepeatable(animValue), os); |
| 191 else if (animValue.isSVGLength()) | |
| 192 PrintTo(toAnimatableSVGLength(animValue), os); | |
| 193 else if (animValue.isSVGPaint()) | 185 else if (animValue.isSVGPaint()) |
| 194 PrintTo(toAnimatableSVGPaint(animValue), os); | 186 PrintTo(toAnimatableSVGPaint(animValue), os); |
| 195 else if (animValue.isShapeValue()) | 187 else if (animValue.isShapeValue()) |
| 196 PrintTo(toAnimatableShapeValue(animValue), os); | 188 PrintTo(toAnimatableShapeValue(animValue), os); |
| 197 else if (animValue.isStrokeDasharrayList()) | 189 else if (animValue.isStrokeDasharrayList()) |
| 198 PrintTo(toAnimatableStrokeDasharrayList(animValue), os); | 190 PrintTo(toAnimatableStrokeDasharrayList(animValue), os); |
| 199 else if (animValue.isTransform()) | 191 else if (animValue.isTransform()) |
| 200 PrintTo(toAnimatableTransform(animValue), os); | 192 PrintTo(toAnimatableTransform(animValue), os); |
| 201 else if (animValue.isUnknown()) | 193 else if (animValue.isUnknown()) |
| 202 PrintTo(toAnimatableUnknown(animValue), os); | 194 PrintTo(toAnimatableUnknown(animValue), os); |
| 203 else if (animValue.isVisibility()) | 195 else if (animValue.isVisibility()) |
| 204 PrintTo(toAnimatableVisibility(animValue), os); | 196 PrintTo(toAnimatableVisibility(animValue), os); |
| 205 else | 197 else |
| 206 *os << "Unknown AnimatableValue - update ifelse chain in AnimatableValue
TestHelper.h"; | 198 *os << "Unknown AnimatableValue - update ifelse chain in AnimatableValue
TestHelper.h"; |
| 207 } | 199 } |
| 208 | 200 |
| 209 } // namespace blink | 201 } // namespace blink |
| OLD | NEW |