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

Side by Side Diff: third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/CSSTextIndentInterpolationType.h" 5 #include "core/animation/CSSTextIndentInterpolationType.h"
6 6
7 #include <memory>
7 #include "core/animation/LengthInterpolationFunctions.h" 8 #include "core/animation/LengthInterpolationFunctions.h"
8 #include "core/css/CSSIdentifierValue.h" 9 #include "core/css/CSSIdentifierValue.h"
9 #include "core/css/CSSPrimitiveValue.h" 10 #include "core/css/CSSPrimitiveValue.h"
10 #include "core/css/CSSValueList.h" 11 #include "core/css/CSSValueList.h"
11 #include "core/css/resolver/StyleResolverState.h" 12 #include "core/css/resolver/StyleResolverState.h"
12 #include "core/style/ComputedStyle.h" 13 #include "core/style/ComputedStyle.h"
13 #include "wtf/PtrUtil.h" 14 #include "wtf/PtrUtil.h"
14 #include <memory>
15 15
16 namespace blink { 16 namespace blink {
17 17
18 namespace { 18 namespace {
19 19
20 struct IndentMode { 20 struct IndentMode {
21 IndentMode(const TextIndentLine line, const TextIndentType type) 21 IndentMode(const TextIndentLine line, const TextIndentType type)
22 : line(line), type(type) {} 22 : line(line), type(type) {}
23 explicit IndentMode(const ComputedStyle& style) 23 explicit IndentMode(const ComputedStyle& style)
24 : line(style.getTextIndentLine()), type(style.getTextIndentType()) {} 24 : line(style.getTextIndentLine()), type(style.getTextIndentType()) {}
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 interpolableValue, 245 interpolableValue,
246 cssTextIndentNonInterpolableValue.lengthNonInterpolableValue(), 246 cssTextIndentNonInterpolableValue.lengthNonInterpolableValue(),
247 state.cssToLengthConversionData(), ValueRangeAll)); 247 state.cssToLengthConversionData(), ValueRangeAll));
248 248
249 const IndentMode& mode = cssTextIndentNonInterpolableValue.mode(); 249 const IndentMode& mode = cssTextIndentNonInterpolableValue.mode();
250 style.setTextIndentLine(mode.line); 250 style.setTextIndentLine(mode.line);
251 style.setTextIndentType(mode.type); 251 style.setTextIndentType(mode.type);
252 } 252 }
253 253
254 } // namespace blink 254 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698