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

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

Issue 204743002: Oilpan: Move AnimatableValue's hierarchy to oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months 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 14 matching lines...) Expand all
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 32
33 #include "core/animation/AnimatableValueTestHelper.h" 33 #include "core/animation/AnimatableValueTestHelper.h"
34 34
35
36
37 namespace WebCore { 35 namespace WebCore {
38 36
39 bool operator==(const AnimatableValue& a, const AnimatableValue& b) 37 bool operator==(const AnimatableValue& a, const AnimatableValue& b)
40 { 38 {
41 return a.equals(b); 39 return a.equals(b);
42 } 40 }
43 41
44 void PrintTo(const AnimatableClipPathOperation& animValue, ::std::ostream* os) 42 void PrintTo(const AnimatableClipPathOperation& animValue, ::std::ostream* os)
45 { 43 {
46 *os << "AnimatableClipPathOperation@" << &animValue; 44 *os << "AnimatableClipPathOperation@" << &animValue;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 99
102 void PrintTo(const AnimatableNeutral& animValue, ::std::ostream* os) 100 void PrintTo(const AnimatableNeutral& animValue, ::std::ostream* os)
103 { 101 {
104 *os << "AnimatableNeutral@" << &animValue; 102 *os << "AnimatableNeutral@" << &animValue;
105 } 103 }
106 104
107 void PrintTo(const AnimatableRepeatable& animValue, ::std::ostream* os) 105 void PrintTo(const AnimatableRepeatable& animValue, ::std::ostream* os)
108 { 106 {
109 *os << "AnimatableRepeatable("; 107 *os << "AnimatableRepeatable(";
110 108
111 const Vector<RefPtr<AnimatableValue> > v = animValue.values(); 109 const WillBeHeapVector<RefPtrWillBeMember<AnimatableValue> > v = animValue.v alues();
112 for (Vector<RefPtr<AnimatableValue> >::const_iterator it = v.begin(); it != v.end(); ++it) { 110 for (WillBeHeapVector<RefPtrWillBeMember<AnimatableValue> >::const_iterator it = v.begin(); it != v.end(); ++it) {
113 PrintTo(*(it->get()), os); 111 PrintTo(*(it->get()), os);
114 if (it+1 != v.end()) 112 if (it+1 != v.end())
115 *os << ", "; 113 *os << ", ";
116 } 114 }
117 *os << ")"; 115 *os << ")";
118 } 116 }
119 117
120 void PrintTo(const AnimatableSVGLength& animSVGLength, ::std::ostream* os) 118 void PrintTo(const AnimatableSVGLength& animSVGLength, ::std::ostream* os)
121 { 119 {
122 *os << "AnimatableSVGLength(" 120 *os << "AnimatableSVGLength("
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 PrintTo(*(toAnimatableTransform(&animValue)), os); 259 PrintTo(*(toAnimatableTransform(&animValue)), os);
262 else if (animValue.isUnknown()) 260 else if (animValue.isUnknown())
263 PrintTo(*(toAnimatableUnknown(&animValue)), os); 261 PrintTo(*(toAnimatableUnknown(&animValue)), os);
264 else if (animValue.isVisibility()) 262 else if (animValue.isVisibility())
265 PrintTo(*(toAnimatableVisibility(&animValue)), os); 263 PrintTo(*(toAnimatableVisibility(&animValue)), os);
266 else 264 else
267 *os << "Unknown AnimatableValue - update ifelse chain in AnimatableValue TestHelper.h"; 265 *os << "Unknown AnimatableValue - update ifelse chain in AnimatableValue TestHelper.h";
268 } 266 }
269 267
270 } // namespace WebCore 268 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/animation/AnimatableValue.cpp ('k') | Source/core/animation/AnimatableValueTestHelperTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698