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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGNumberList.cpp

Issue 2390773004: reflow comments in core/svg/ (Closed)
Patch Set: comments (heh!) Created 4 years, 2 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) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 float animated = at(i)->value(); 122 float animated = at(i)->value();
123 animationElement->animateAdditiveNumber(percentage, repeatCount, 123 animationElement->animateAdditiveNumber(percentage, repeatCount,
124 effectiveFrom, effectiveTo, 124 effectiveFrom, effectiveTo,
125 effectiveToAtEnd, animated); 125 effectiveToAtEnd, animated);
126 at(i)->setValue(animated); 126 at(i)->setValue(animated);
127 } 127 }
128 } 128 }
129 129
130 float SVGNumberList::calculateDistance(SVGPropertyBase* to, SVGElement*) { 130 float SVGNumberList::calculateDistance(SVGPropertyBase* to, SVGElement*) {
131 // FIXME: Distance calculation is not possible for SVGNumberList right now. We need the distance for every single value. 131 // FIXME: Distance calculation is not possible for SVGNumberList right now. We
132 // need the distance for every single value.
132 return -1; 133 return -1;
133 } 134 }
134 135
135 Vector<float> SVGNumberList::toFloatVector() const { 136 Vector<float> SVGNumberList::toFloatVector() const {
136 Vector<float> vec; 137 Vector<float> vec;
137 vec.reserveInitialCapacity(length()); 138 vec.reserveInitialCapacity(length());
138 for (size_t i = 0; i < length(); ++i) 139 for (size_t i = 0; i < length(); ++i)
139 vec.uncheckedAppend(at(i)->value()); 140 vec.uncheckedAppend(at(i)->value());
140 return vec; 141 return vec;
141 } 142 }
142 143
143 } // namespace blink 144 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGMatrixTearOff.h ('k') | third_party/WebKit/Source/core/svg/SVGNumberOptionalNumber.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698