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

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

Issue 2532953008: Apply custom property animations (Closed)
Patch Set: Make animatedElement usage consistent Created 4 years 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/EffectStack.cpp
diff --git a/third_party/WebKit/Source/core/animation/EffectStack.cpp b/third_party/WebKit/Source/core/animation/EffectStack.cpp
index 0bbfe02244d7b1bc386483574e39b8c1ab073bfd..90465dcba24aeb13dfc1ea5c4a4fe75525f6bed8 100644
--- a/third_party/WebKit/Source/core/animation/EffectStack.cpp
+++ b/third_party/WebKit/Source/core/animation/EffectStack.cpp
@@ -100,6 +100,16 @@ bool EffectStack::hasActiveAnimationsOnCompositor(
return false;
}
+bool EffectStack::affectsProperties(PropertyHandleFilter filter) const {
+ for (const auto& sampledEffect : m_sampledEffects) {
+ for (const auto& interpolation : sampledEffect->interpolations()) {
+ if (filter(interpolation->getProperty()))
+ return true;
+ }
+ }
+ return false;
+}
+
ActiveInterpolationsMap EffectStack::activeInterpolations(
EffectStack* effectStack,
const HeapVector<Member<const InertEffect>>* newAnimations,
« no previous file with comments | « third_party/WebKit/Source/core/animation/EffectStack.h ('k') | third_party/WebKit/Source/core/animation/css/CSSAnimations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698