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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) 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/ShadowInterpolationFunctions.h" 5 #include "core/animation/ShadowInterpolationFunctions.h"
6 6
7 #include <memory>
7 #include "core/animation/CSSColorInterpolationType.h" 8 #include "core/animation/CSSColorInterpolationType.h"
8 #include "core/animation/InterpolationValue.h" 9 #include "core/animation/InterpolationValue.h"
9 #include "core/animation/LengthInterpolationFunctions.h" 10 #include "core/animation/LengthInterpolationFunctions.h"
10 #include "core/animation/NonInterpolableValue.h" 11 #include "core/animation/NonInterpolableValue.h"
11 #include "core/css/CSSIdentifierValue.h" 12 #include "core/css/CSSIdentifierValue.h"
12 #include "core/css/CSSShadowValue.h" 13 #include "core/css/CSSShadowValue.h"
13 #include "core/css/resolver/StyleResolverState.h" 14 #include "core/css/resolver/StyleResolverState.h"
14 #include "core/style/ShadowData.h" 15 #include "core/style/ShadowData.h"
15 #include "platform/geometry/FloatPoint.h" 16 #include "platform/geometry/FloatPoint.h"
16 #include <memory>
17 17
18 namespace blink { 18 namespace blink {
19 19
20 enum ShadowComponentIndex : unsigned { 20 enum ShadowComponentIndex : unsigned {
21 ShadowX, 21 ShadowX,
22 ShadowY, 22 ShadowY,
23 ShadowBlur, 23 ShadowBlur,
24 ShadowSpread, 24 ShadowSpread,
25 ShadowColor, 25 ShadowColor,
26 ShadowComponentIndexCount, 26 ShadowComponentIndexCount,
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 DCHECK(shadowX.isFixed() && shadowY.isFixed() && shadowBlur.isFixed() && 187 DCHECK(shadowX.isFixed() && shadowY.isFixed() && shadowBlur.isFixed() &&
188 shadowSpread.isFixed()); 188 shadowSpread.isFixed());
189 return ShadowData(FloatPoint(shadowX.value(), shadowY.value()), 189 return ShadowData(FloatPoint(shadowX.value(), shadowY.value()),
190 shadowBlur.value(), shadowSpread.value(), 190 shadowBlur.value(), shadowSpread.value(),
191 shadowNonInterpolableValue.style(), 191 shadowNonInterpolableValue.style(),
192 CSSColorInterpolationType::resolveInterpolableColor( 192 CSSColorInterpolationType::resolveInterpolableColor(
193 *interpolableList.get(ShadowColor), state)); 193 *interpolableList.get(ShadowColor), state));
194 } 194 }
195 195
196 } // namespace blink 196 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698