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

Side by Side Diff: third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/animation/LengthListPropertyFunctions.h" 5 #include "core/animation/LengthListPropertyFunctions.h"
6 6
7 #include "core/style/ComputedStyle.h" 7 #include "core/style/ComputedStyle.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 DCHECK_EQ(list.size(), 3U); 196 DCHECK_EQ(list.size(), 3U);
197 return TransformOrigin(list[0], list[1], list[2].pixels()); 197 return TransformOrigin(list[0], list[1], list[2].pixels());
198 } 198 }
199 199
200 void LengthListPropertyFunctions::setLengthList(CSSPropertyID property, 200 void LengthListPropertyFunctions::setLengthList(CSSPropertyID property,
201 ComputedStyle& style, 201 ComputedStyle& style,
202 Vector<Length>&& lengthList) { 202 Vector<Length>&& lengthList) {
203 switch (property) { 203 switch (property) {
204 case CSSPropertyStrokeDasharray: 204 case CSSPropertyStrokeDasharray:
205 style.setStrokeDashArray( 205 style.setStrokeDashArray(
206 lengthList.isEmpty() ? nullptr : RefVector<Length>::create( 206 lengthList.isEmpty()
207 std::move(lengthList))); 207 ? nullptr
208 : RefVector<Length>::create(std::move(lengthList)));
208 return; 209 return;
209 210
210 case CSSPropertyObjectPosition: 211 case CSSPropertyObjectPosition:
211 style.setObjectPosition(pointFromVector(lengthList)); 212 style.setObjectPosition(pointFromVector(lengthList));
212 return; 213 return;
213 case CSSPropertyOffsetAnchor: 214 case CSSPropertyOffsetAnchor:
214 style.setOffsetAnchor(pointFromVector(lengthList)); 215 style.setOffsetAnchor(pointFromVector(lengthList));
215 return; 216 return;
216 case CSSPropertyOffsetPosition: 217 case CSSPropertyOffsetPosition:
217 style.setOffsetPosition(pointFromVector(lengthList)); 218 style.setOffsetPosition(pointFromVector(lengthList));
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 return; 259 return;
259 } 260 }
260 261
261 default: 262 default:
262 NOTREACHED(); 263 NOTREACHED();
263 break; 264 break;
264 } 265 }
265 } 266 }
266 267
267 } // namespace blink 268 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698