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

Unified Diff: Source/core/animation/ElementAnimations.cpp

Issue 1299323005: blink: Add backdrop-filter support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: one more Created 5 years, 4 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: Source/core/animation/ElementAnimations.cpp
diff --git a/Source/core/animation/ElementAnimations.cpp b/Source/core/animation/ElementAnimations.cpp
index c11f5405e2d0589aed0b168bfa8eca0301639884..ec24307de18ffad33d6c2646facc577c468c556a 100644
--- a/Source/core/animation/ElementAnimations.cpp
+++ b/Source/core/animation/ElementAnimations.cpp
@@ -67,6 +67,8 @@ void ElementAnimations::updateAnimationFlags(ComputedStyle& style)
style.setHasCurrentTransformAnimation(true);
if (effect.affects(PropertyHandle(CSSPropertyWebkitFilter)))
style.setHasCurrentFilterAnimation(true);
+ if (effect.affects(PropertyHandle(CSSPropertyBackdropFilter)))
+ style.setHasCurrentBackdropFilterAnimation(true);
}
}
@@ -76,6 +78,8 @@ void ElementAnimations::updateAnimationFlags(ComputedStyle& style)
style.setIsRunningTransformAnimationOnCompositor(m_defaultStack.hasActiveAnimationsOnCompositor(CSSPropertyTransform));
if (style.hasCurrentFilterAnimation())
style.setIsRunningFilterAnimationOnCompositor(m_defaultStack.hasActiveAnimationsOnCompositor(CSSPropertyWebkitFilter));
+ if (style.hasCurrentBackdropFilterAnimation())
+ style.setIsRunningBackdropFilterAnimationOnCompositor(m_defaultStack.hasActiveAnimationsOnCompositor(CSSPropertyBackdropFilter));
}
void ElementAnimations::restartAnimationOnCompositor()

Powered by Google App Engine
This is Rietveld 408576698