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

Unified Diff: third_party/WebKit/Source/core/animation/css/CSSAnimationData.h

Issue 2886893007: Replace CSSAnimationData::Create(CSSAnimation) with clone method. (Closed)
Patch Set: Rebase Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/StyleRareNonInheritedData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/animation/css/CSSAnimationData.h
diff --git a/third_party/WebKit/Source/core/animation/css/CSSAnimationData.h b/third_party/WebKit/Source/core/animation/css/CSSAnimationData.h
index 447e2f832142fc272afca5ac01b2dd582f16abd5..f8ee8c3c1e014e545ccd45bc300e2bea584e8edd 100644
--- a/third_party/WebKit/Source/core/animation/css/CSSAnimationData.h
+++ b/third_party/WebKit/Source/core/animation/css/CSSAnimationData.h
@@ -19,9 +19,8 @@ class CSSAnimationData final : public CSSTimingData {
return WTF::WrapUnique(new CSSAnimationData);
}
- static std::unique_ptr<CSSAnimationData> Create(
- const CSSAnimationData& animation_data) {
- return WTF::WrapUnique(new CSSAnimationData(animation_data));
+ std::unique_ptr<CSSAnimationData> Clone() const {
+ return WTF::WrapUnique(new CSSAnimationData(*this));
}
bool AnimationsMatchForStyleRecalc(const CSSAnimationData& other) const;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/StyleRareNonInheritedData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698