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

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

Issue 2761693002: Wrapped PassRefPtrs in move where passed to RefPtr constructor. (Closed)
Patch Set: Added move wraps for multiple instances in 1 line. Created 3 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 // 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 "core/animation/LengthInterpolationFunctions.h" 7 #include "core/animation/LengthInterpolationFunctions.h"
8 #include "core/css/CSSIdentifierValue.h" 8 #include "core/css/CSSIdentifierValue.h"
9 #include "core/css/CSSPrimitiveValue.h" 9 #include "core/css/CSSPrimitiveValue.h"
10 #include "core/css/CSSValueList.h" 10 #include "core/css/CSSValueList.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 return m_lengthNonInterpolableValue; 50 return m_lengthNonInterpolableValue;
51 } 51 }
52 const IndentMode& mode() const { return m_mode; } 52 const IndentMode& mode() const { return m_mode; }
53 53
54 DECLARE_NON_INTERPOLABLE_VALUE_TYPE(); 54 DECLARE_NON_INTERPOLABLE_VALUE_TYPE();
55 55
56 private: 56 private:
57 CSSTextIndentNonInterpolableValue( 57 CSSTextIndentNonInterpolableValue(
58 PassRefPtr<NonInterpolableValue> lengthNonInterpolableValue, 58 PassRefPtr<NonInterpolableValue> lengthNonInterpolableValue,
59 const IndentMode& mode) 59 const IndentMode& mode)
60 : m_lengthNonInterpolableValue(lengthNonInterpolableValue), 60 : m_lengthNonInterpolableValue(std::move(lengthNonInterpolableValue)),
61 m_mode(mode) {} 61 m_mode(mode) {}
62 62
63 RefPtr<NonInterpolableValue> m_lengthNonInterpolableValue; 63 RefPtr<NonInterpolableValue> m_lengthNonInterpolableValue;
64 const IndentMode m_mode; 64 const IndentMode m_mode;
65 }; 65 };
66 66
67 DEFINE_NON_INTERPOLABLE_VALUE_TYPE(CSSTextIndentNonInterpolableValue); 67 DEFINE_NON_INTERPOLABLE_VALUE_TYPE(CSSTextIndentNonInterpolableValue);
68 DEFINE_NON_INTERPOLABLE_VALUE_TYPE_CASTS(CSSTextIndentNonInterpolableValue); 68 DEFINE_NON_INTERPOLABLE_VALUE_TYPE_CASTS(CSSTextIndentNonInterpolableValue);
69 69
70 namespace { 70 namespace {
(...skipping 174 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