Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: Source/core/animation/animatable/AnimatableValueTestHelper.cpp

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 } 81 }
82 82
83 void PrintTo(const AnimatableShapeValue& animValue, ::std::ostream* os) 83 void PrintTo(const AnimatableShapeValue& animValue, ::std::ostream* os)
84 { 84 {
85 *os << "AnimatableShapeValue@" << &animValue; 85 *os << "AnimatableShapeValue@" << &animValue;
86 } 86 }
87 87
88 void PrintTo(const AnimatableStrokeDasharrayList& animValue, ::std::ostream* os) 88 void PrintTo(const AnimatableStrokeDasharrayList& animValue, ::std::ostream* os)
89 { 89 {
90 *os << "AnimatableStrokeDasharrayList("; 90 *os << "AnimatableStrokeDasharrayList(";
91 RefPtr<SVGLengthList> list = animValue.toSVGLengthList(); 91 RefPtrWillBeRawPtr<SVGLengthList> list = animValue.toSVGLengthList();
92 size_t length = list->length(); 92 size_t length = list->length();
93 for (size_t i = 0; i < length; ++i) { 93 for (size_t i = 0; i < length; ++i) {
94 *os << list->at(i)->valueAsString().utf8().data(); 94 *os << list->at(i)->valueAsString().utf8().data();
95 if (i != length-1) 95 if (i != length-1)
96 *os << ", "; 96 *os << ", ";
97 } 97 }
98 *os << ")"; 98 *os << ")";
99 } 99 }
100 100
101 void PrintTo(const AnimatableTransform& animTransform, ::std::ostream* os) 101 void PrintTo(const AnimatableTransform& animTransform, ::std::ostream* os)
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698