| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 137 |
| 138 void PrintTo(const AnimatableShapeValue& animValue, ::std::ostream* os) | 138 void PrintTo(const AnimatableShapeValue& animValue, ::std::ostream* os) |
| 139 { | 139 { |
| 140 *os << "AnimatableShapeValue@" << &animValue; | 140 *os << "AnimatableShapeValue@" << &animValue; |
| 141 } | 141 } |
| 142 | 142 |
| 143 void PrintTo(const AnimatableStrokeDasharrayList& animValue, ::std::ostream* os) | 143 void PrintTo(const AnimatableStrokeDasharrayList& animValue, ::std::ostream* os) |
| 144 { | 144 { |
| 145 *os << "AnimatableStrokeDasharrayList("; | 145 *os << "AnimatableStrokeDasharrayList("; |
| 146 RefPtr<SVGLengthList> list = animValue.toSVGLengthList(); | 146 RefPtr<SVGLengthList> list = animValue.toSVGLengthList(); |
| 147 size_t length = list->numberOfItems(); | 147 size_t length = list->length(); |
| 148 for (size_t i = 0; i < length; ++i) { | 148 for (size_t i = 0; i < length; ++i) { |
| 149 *os << list->at(i)->valueAsString().utf8().data(); | 149 *os << list->at(i)->valueAsString().utf8().data(); |
| 150 if (i != length-1) | 150 if (i != length-1) |
| 151 *os << ", "; | 151 *os << ", "; |
| 152 } | 152 } |
| 153 *os << ")"; | 153 *os << ")"; |
| 154 } | 154 } |
| 155 | 155 |
| 156 void PrintTo(const AnimatableTransform& animTransform, ::std::ostream* os) | 156 void PrintTo(const AnimatableTransform& animTransform, ::std::ostream* os) |
| 157 { | 157 { |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 PrintTo(*(toAnimatableTransform(&animValue)), os); | 261 PrintTo(*(toAnimatableTransform(&animValue)), os); |
| 262 else if (animValue.isUnknown()) | 262 else if (animValue.isUnknown()) |
| 263 PrintTo(*(toAnimatableUnknown(&animValue)), os); | 263 PrintTo(*(toAnimatableUnknown(&animValue)), os); |
| 264 else if (animValue.isVisibility()) | 264 else if (animValue.isVisibility()) |
| 265 PrintTo(*(toAnimatableVisibility(&animValue)), os); | 265 PrintTo(*(toAnimatableVisibility(&animValue)), os); |
| 266 else | 266 else |
| 267 *os << "Unknown AnimatableValue - update ifelse chain in AnimatableValue
TestHelper.h"; | 267 *os << "Unknown AnimatableValue - update ifelse chain in AnimatableValue
TestHelper.h"; |
| 268 } | 268 } |
| 269 | 269 |
| 270 } // namespace WebCore | 270 } // namespace WebCore |
| OLD | NEW |