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

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

Issue 2398373002: Construct KeyframeEffectReadOnly objects (Closed)
Patch Set: Test tweaks in response to review 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/ElementAnimation.h
diff --git a/third_party/WebKit/Source/core/animation/ElementAnimation.h b/third_party/WebKit/Source/core/animation/ElementAnimation.h
index 7c5f322dfce0f5681e2719486c1379d2ad66a99a..9a16e5842b82f9cdcd23178dd278145bd727444d 100644
--- a/third_party/WebKit/Source/core/animation/ElementAnimation.h
+++ b/third_party/WebKit/Source/core/animation/ElementAnimation.h
@@ -37,6 +37,7 @@
#include "core/animation/ElementAnimations.h"
#include "core/animation/KeyframeEffect.h"
#include "core/animation/KeyframeEffectOptions.h"
+#include "core/animation/KeyframeEffectReadOnly.h"
#include "core/animation/TimingInput.h"
#include "core/dom/Document.h"
#include "core/dom/Element.h"
@@ -108,7 +109,7 @@ class ElementAnimation {
for (const auto& animation :
element.document().timeline().getAnimations()) {
DCHECK(animation->effect());
- if (toKeyframeEffect(animation->effect())->target() == element &&
+ if (toKeyframeEffectReadOnly(animation->effect())->target() == element &&
(animation->effect()->isCurrent() ||
animation->effect()->isInEffect()))
animations.append(animation);

Powered by Google App Engine
This is Rietveld 408576698