| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 152 |
| 153 void PrintTo(const AnimatableUnknown& animUnknown, ::std::ostream* os) | 153 void PrintTo(const AnimatableUnknown& animUnknown, ::std::ostream* os) |
| 154 { | 154 { |
| 155 PrintTo(*(animUnknown.toCSSValue()), os, "AnimatableUnknown"); | 155 PrintTo(*(animUnknown.toCSSValue()), os, "AnimatableUnknown"); |
| 156 } | 156 } |
| 157 | 157 |
| 158 void PrintTo(const AnimatableVisibility& animVisibility, ::std::ostream* os) | 158 void PrintTo(const AnimatableVisibility& animVisibility, ::std::ostream* os) |
| 159 { | 159 { |
| 160 *os << "AnimatableVisibility("; | 160 *os << "AnimatableVisibility("; |
| 161 switch (animVisibility.visibility()) { | 161 switch (animVisibility.visibility()) { |
| 162 case VISIBLE: | 162 case EVisibility::Visible: |
| 163 *os << "VISIBLE"; | 163 *os << "EVisibility::Visible"; |
| 164 break; | 164 break; |
| 165 case HIDDEN: | 165 case EVisibility::Hidden: |
| 166 *os << "HIDDEN"; | 166 *os << "EVisibility::Hidden"; |
| 167 break; | 167 break; |
| 168 case COLLAPSE: | 168 case EVisibility::Collapse: |
| 169 *os << "COLLAPSE"; | 169 *os << "EVisibility::Collapse"; |
| 170 break; | 170 break; |
| 171 default: | 171 default: |
| 172 *os << "Unknown Visbilility - update switch in AnimatableValueTestHelper
.h"; | 172 *os << "Unknown Visibility - update switch in AnimatableValueTestHelper.
h"; |
| 173 } | 173 } |
| 174 *os << ")"; | 174 *os << ")"; |
| 175 } | 175 } |
| 176 | 176 |
| 177 void PrintTo(const AnimatableValue& animValue, ::std::ostream* os) | 177 void PrintTo(const AnimatableValue& animValue, ::std::ostream* os) |
| 178 { | 178 { |
| 179 if (animValue.isClipPathOperation()) | 179 if (animValue.isClipPathOperation()) |
| 180 PrintTo(toAnimatableClipPathOperation(animValue), os); | 180 PrintTo(toAnimatableClipPathOperation(animValue), os); |
| 181 else if (animValue.isColor()) | 181 else if (animValue.isColor()) |
| 182 PrintTo(toAnimatableColor(animValue), os); | 182 PrintTo(toAnimatableColor(animValue), os); |
| (...skipping 13 matching lines...) Expand all 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 |