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

Unified Diff: third_party/WebKit/Source/core/animation/SampledEffect.h

Issue 2397113002: Move content up to KeyframeEffectReadOnly (Closed)
Patch Set: Created 4 years, 2 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
Index: third_party/WebKit/Source/core/animation/SampledEffect.h
diff --git a/third_party/WebKit/Source/core/animation/SampledEffect.h b/third_party/WebKit/Source/core/animation/SampledEffect.h
index fd746202f37369d3cfff2fa44fb1a77bc6d407cc..c09ef4ef2369c5e7c1057a1914a528c281078d3e 100644
--- a/third_party/WebKit/Source/core/animation/SampledEffect.h
+++ b/third_party/WebKit/Source/core/animation/SampledEffect.h
@@ -7,7 +7,7 @@
#include "core/animation/Animation.h"
#include "core/animation/Interpolation.h"
-#include "core/animation/KeyframeEffect.h"
+#include "core/animation/KeyframeEffectReadOnly.h"
#include "wtf/Allocator.h"
#include "wtf/Vector.h"
@@ -21,7 +21,7 @@ class SampledEffect : public GarbageCollectedFinalized<SampledEffect> {
WTF_MAKE_NONCOPYABLE(SampledEffect);
public:
- static SampledEffect* create(KeyframeEffect* animation) {
+ static SampledEffect* create(KeyframeEffectReadOnly* animation) {
return new SampledEffect(animation);
}
@@ -34,7 +34,7 @@ class SampledEffect : public GarbageCollectedFinalized<SampledEffect> {
return m_interpolations;
}
- KeyframeEffect* effect() const { return m_effect; }
+ KeyframeEffectReadOnly* effect() const { return m_effect; }
unsigned sequenceNumber() const { return m_sequenceNumber; }
KeyframeEffectReadOnly::Priority priority() const { return m_priority; }
bool willNeverChange() const;
@@ -44,9 +44,9 @@ class SampledEffect : public GarbageCollectedFinalized<SampledEffect> {
DECLARE_TRACE();
private:
- SampledEffect(KeyframeEffect*);
+ SampledEffect(KeyframeEffectReadOnly*);
- WeakMember<KeyframeEffect> m_effect;
+ WeakMember<KeyframeEffectReadOnly> m_effect;
Vector<RefPtr<Interpolation>> m_interpolations;
const unsigned m_sequenceNumber;
KeyframeEffectReadOnly::Priority m_priority;

Powered by Google App Engine
This is Rietveld 408576698