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

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

Issue 2395993002: Add type casts for KeyframeEffectReadOnly (Closed)
Patch Set: Add TODO 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
« no previous file with comments | « third_party/WebKit/Source/core/animation/AnimationEffectReadOnly.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h
diff --git a/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h b/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h
index 3b90e94370d516317070154217cfd2516877da03..44e5ac083c97784dbeaba23214c450905f85f654 100644
--- a/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h
+++ b/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.h
@@ -46,6 +46,8 @@ class CORE_EXPORT KeyframeEffectReadOnly : public AnimationEffectReadOnly {
~KeyframeEffectReadOnly() override {}
+ bool isKeyframeEffectReadOnly() const override { return true; }
+
Priority getPriority() const { return m_priority; }
void downgradeToNormal() { m_priority = DefaultPriority; }
@@ -65,6 +67,14 @@ class CORE_EXPORT KeyframeEffectReadOnly : public AnimationEffectReadOnly {
Priority m_priority;
};
+// TODO(suzyh): Replace calls to toKeyframeEffect with toKeyframeEffectReadOnly
+// where possible
+DEFINE_TYPE_CASTS(KeyframeEffectReadOnly,
+ AnimationEffectReadOnly,
+ animationNode,
+ animationNode->isKeyframeEffectReadOnly(),
+ animationNode.isKeyframeEffectReadOnly());
+
} // namespace blink
#endif // KeyframeEffectReadOnly_h
« no previous file with comments | « third_party/WebKit/Source/core/animation/AnimationEffectReadOnly.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698