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

Unified Diff: third_party/WebKit/Source/core/animation/KeyframeEffect.cpp

Issue 2369833002: Introduce KeyframeEffectReadOnly interface (Closed)
Patch Set: Use short form of copyright message Created 4 years, 3 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/KeyframeEffect.cpp
diff --git a/third_party/WebKit/Source/core/animation/KeyframeEffect.cpp b/third_party/WebKit/Source/core/animation/KeyframeEffect.cpp
index a7ed19229003fcc0b8c818c9f086410859e760aa..892d29c352dda588b160264bc8a99bbb4023b3a9 100644
--- a/third_party/WebKit/Source/core/animation/KeyframeEffect.cpp
+++ b/third_party/WebKit/Source/core/animation/KeyframeEffect.cpp
@@ -39,6 +39,7 @@
#include "core/animation/Interpolation.h"
#include "core/animation/KeyframeEffectModel.h"
#include "core/animation/KeyframeEffectOptions.h"
+#include "core/animation/KeyframeEffectReadOnly.h"
#include "core/animation/PropertyHandle.h"
#include "core/dom/Element.h"
#include "core/dom/NodeComputedStyle.h"
@@ -48,7 +49,7 @@
namespace blink {
-KeyframeEffect* KeyframeEffect::create(Element* target, EffectModel* model, const Timing& timing, Priority priority, EventDelegate* eventDelegate)
+KeyframeEffect* KeyframeEffect::create(Element* target, EffectModel* model, const Timing& timing, KeyframeEffect::Priority priority, EventDelegate* eventDelegate)
{
return new KeyframeEffect(target, model, timing, priority, eventDelegate);
}
@@ -84,11 +85,8 @@ KeyframeEffect* KeyframeEffect::create(ExecutionContext* executionContext, Eleme
return create(element, EffectInput::convert(element, effectInput, executionContext, exceptionState), Timing());
}
-KeyframeEffect::KeyframeEffect(Element* target, EffectModel* model, const Timing& timing, Priority priority, EventDelegate* eventDelegate)
- : AnimationEffectReadOnly(timing, eventDelegate)
- , m_target(target)
- , m_model(model)
- , m_sampledEffect(nullptr)
+KeyframeEffect::KeyframeEffect(Element* target, EffectModel* model, const Timing& timing, KeyframeEffect::Priority priority, EventDelegate* eventDelegate)
+ : KeyframeEffectReadOnly(target, model, timing, eventDelegate)
, m_priority(priority)
{
}
@@ -363,10 +361,7 @@ void KeyframeEffect::attachCompositedLayers()
DEFINE_TRACE(KeyframeEffect)
{
- visitor->trace(m_target);
- visitor->trace(m_model);
- visitor->trace(m_sampledEffect);
- AnimationEffectReadOnly::trace(visitor);
+ KeyframeEffectReadOnly::trace(visitor);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/animation/KeyframeEffect.h ('k') | third_party/WebKit/Source/core/animation/KeyframeEffect.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698