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

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

Issue 195313003: [SVG2] Add getters and setters to SVG*List interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: s/slength/size 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
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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « LayoutTests/fast/svg/svglist-expected.txt ('k') | Source/core/rendering/svg/SVGRenderSupport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698