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

Side by Side Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableSVGPaint.h

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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 bool usesDefaultInterpolationWith(const AnimatableValue*) const override; 72 bool usesDefaultInterpolationWith(const AnimatableValue*) const override;
73 73
74 private: 74 private:
75 AnimatableSVGPaint(SVGPaintType type, 75 AnimatableSVGPaint(SVGPaintType type,
76 SVGPaintType visitedLinkType, 76 SVGPaintType visitedLinkType,
77 PassRefPtr<AnimatableColor> color, 77 PassRefPtr<AnimatableColor> color,
78 const String& uri, 78 const String& uri,
79 const String& visitedLinkURI) 79 const String& visitedLinkURI)
80 : m_type(type), 80 : m_type(type),
81 m_visitedLinkType(visitedLinkType), 81 m_visitedLinkType(visitedLinkType),
82 m_color(color), 82 m_color(std::move(color)),
83 m_uri(uri), 83 m_uri(uri),
84 m_visitedLinkURI(visitedLinkURI) {} 84 m_visitedLinkURI(visitedLinkURI) {}
85 AnimatableType type() const override { return TypeSVGPaint; } 85 AnimatableType type() const override { return TypeSVGPaint; }
86 bool equalTo(const AnimatableValue*) const override; 86 bool equalTo(const AnimatableValue*) const override;
87 87
88 SVGPaintType m_type; 88 SVGPaintType m_type;
89 SVGPaintType m_visitedLinkType; 89 SVGPaintType m_visitedLinkType;
90 // AnimatableColor includes a visited link color. 90 // AnimatableColor includes a visited link color.
91 RefPtr<AnimatableColor> m_color; 91 RefPtr<AnimatableColor> m_color;
92 String m_uri; 92 String m_uri;
93 String m_visitedLinkURI; 93 String m_visitedLinkURI;
94 }; 94 };
95 95
96 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableSVGPaint, isSVGPaint()); 96 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableSVGPaint, isSVGPaint());
97 97
98 } // namespace blink 98 } // namespace blink
99 99
100 #endif // AnimatableSVGPaint_h 100 #endif // AnimatableSVGPaint_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698