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

Side by Side Diff: third_party/WebKit/Source/core/animation/css/CSSTransitionData.h

Issue 2891283002: data-equivalent (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CSSTransitionData_h 5 #ifndef CSSTransitionData_h
6 #define CSSTransitionData_h 6 #define CSSTransitionData_h
7 7
8 #include <memory> 8 #include <memory>
9 #include "core/CSSPropertyNames.h" 9 #include "core/CSSPropertyNames.h"
10 #include "core/animation/css/CSSTimingData.h" 10 #include "core/animation/css/CSSTimingData.h"
11 #include "core/style/DataEquivalency.h"
11 #include "platform/wtf/PtrUtil.h" 12 #include "platform/wtf/PtrUtil.h"
12 #include "platform/wtf/Vector.h" 13 #include "platform/wtf/Vector.h"
13 14
14 namespace blink { 15 namespace blink {
15 16
16 class CSSTransitionData final : public CSSTimingData { 17 class CSSTransitionData final : public CSSTimingData {
17 public: 18 public:
18 enum TransitionPropertyType { 19 enum TransitionPropertyType {
19 kTransitionNone, 20 kTransitionNone,
20 kTransitionKnownProperty, 21 kTransitionKnownProperty,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 return TransitionProperty(CSSPropertyAll); 72 return TransitionProperty(CSSPropertyAll);
72 } 73 }
73 74
74 private: 75 private:
75 CSSTransitionData(); 76 CSSTransitionData();
76 explicit CSSTransitionData(const CSSTransitionData&); 77 explicit CSSTransitionData(const CSSTransitionData&);
77 78
78 Vector<TransitionProperty> property_list_; 79 Vector<TransitionProperty> property_list_;
79 }; 80 };
80 81
82 inline bool DataEquivalent(const CSSTransitionData& a,
83 const CSSTransitionData& b) {
84 return a.TransitionsMatchForStyleRecalc(b);
85 }
86
81 } // namespace blink 87 } // namespace blink
82 88
83 #endif // CSSTransitionData_h 89 #endif // CSSTransitionData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698