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

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

Issue 2043273002: Defer compositor keyframe snapshots until the next style resolve (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 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/InertEffect.h
diff --git a/third_party/WebKit/Source/core/animation/InertEffect.h b/third_party/WebKit/Source/core/animation/InertEffect.h
index 2f70c53693abd3223738d6b79e31162ad3276748..eaf923ef69aecac98b0f4c2bf6c86658498cd701 100644
--- a/third_party/WebKit/Source/core/animation/InertEffect.h
+++ b/third_party/WebKit/Source/core/animation/InertEffect.h
@@ -47,6 +47,8 @@ public:
EffectModel* model() const { return m_model.get(); }
bool paused() const { return m_paused; }
+ bool isInertEffect() const final { return true; }
+
DECLARE_VIRTUAL_TRACE();
protected:
@@ -60,6 +62,8 @@ private:
double m_inheritedTime;
};
+DEFINE_TYPE_CASTS(InertEffect, AnimationEffect, animationEffect, animationEffect->isInertEffect(), animationEffect.isInertEffect());
+
} // namespace blink
#endif

Powered by Google App Engine
This is Rietveld 408576698