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

Side by Side Diff: third_party/WebKit/Source/core/animation/CSSFilterListInterpolationType.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/CSSFilterListInterpolationType.h" 5 #include "core/animation/CSSFilterListInterpolationType.h"
6 6
7 #include "core/animation/FilterInterpolationFunctions.h" 7 #include "core/animation/FilterInterpolationFunctions.h"
8 #include "core/animation/FilterListPropertyFunctions.h" 8 #include "core/animation/FilterListPropertyFunctions.h"
9 #include "core/animation/ListInterpolationFunctions.h" 9 #include "core/animation/ListInterpolationFunctions.h"
10 #include "core/css/CSSIdentifierValue.h" 10 #include "core/css/CSSIdentifierValue.h"
(...skipping 27 matching lines...) Expand all
38 *m_nonInterpolableList->get(i), 38 *m_nonInterpolableList->get(i),
39 *underlyingNonInterpolableList.get(i))) 39 *underlyingNonInterpolableList.get(i)))
40 return false; 40 return false;
41 } 41 }
42 return true; 42 return true;
43 } 43 }
44 44
45 private: 45 private:
46 UnderlyingFilterListChecker( 46 UnderlyingFilterListChecker(
47 PassRefPtr<NonInterpolableList> nonInterpolableList) 47 PassRefPtr<NonInterpolableList> nonInterpolableList)
48 : m_nonInterpolableList(nonInterpolableList) {} 48 : m_nonInterpolableList(std::move(nonInterpolableList)) {}
49 49
50 RefPtr<NonInterpolableList> m_nonInterpolableList; 50 RefPtr<NonInterpolableList> m_nonInterpolableList;
51 }; 51 };
52 52
53 class InheritedFilterListChecker : public InterpolationType::ConversionChecker { 53 class InheritedFilterListChecker : public InterpolationType::ConversionChecker {
54 public: 54 public:
55 static std::unique_ptr<InheritedFilterListChecker> create( 55 static std::unique_ptr<InheritedFilterListChecker> create(
56 CSSPropertyID property, 56 CSSPropertyID property,
57 const FilterOperations& filterOperations) { 57 const FilterOperations& filterOperations) {
58 return WTF::wrapUnique( 58 return WTF::wrapUnique(
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 for (size_t i = 0; i < length; i++) { 289 for (size_t i = 0; i < length; i++) {
290 filterOperations.operations().push_back( 290 filterOperations.operations().push_back(
291 FilterInterpolationFunctions::createFilter( 291 FilterInterpolationFunctions::createFilter(
292 *interpolableList.get(i), *nonInterpolableList.get(i), state)); 292 *interpolableList.get(i), *nonInterpolableList.get(i), state));
293 } 293 }
294 FilterListPropertyFunctions::setFilterList(cssProperty(), *state.style(), 294 FilterListPropertyFunctions::setFilterList(cssProperty(), *state.style(),
295 std::move(filterOperations)); 295 std::move(filterOperations));
296 } 296 }
297 297
298 } // namespace blink 298 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698