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

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

Issue 2719083005: Use PropertyHandle instead of CSSPropertyID to identify CSS Transitions (Closed)
Patch Set: Rebasedagainaaaa Created 3 years, 10 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/ElementAnimations.cpp
diff --git a/third_party/WebKit/Source/core/animation/ElementAnimations.cpp b/third_party/WebKit/Source/core/animation/ElementAnimations.cpp
index 894dfdec8bcef6ba650de60dd0df2d8ab5238ab1..53ba90fd86e7f0fe951acba729db18d4332c708a 100644
--- a/third_party/WebKit/Source/core/animation/ElementAnimations.cpp
+++ b/third_party/WebKit/Source/core/animation/ElementAnimations.cpp
@@ -61,20 +61,23 @@ void ElementAnimations::updateAnimationFlags(ComputedStyle& style) {
if (style.hasCurrentOpacityAnimation()) {
style.setIsRunningOpacityAnimationOnCompositor(
- m_effectStack.hasActiveAnimationsOnCompositor(CSSPropertyOpacity));
+ m_effectStack.hasActiveAnimationsOnCompositor(
+ PropertyHandle(CSSPropertyOpacity)));
}
if (style.hasCurrentTransformAnimation()) {
style.setIsRunningTransformAnimationOnCompositor(
- m_effectStack.hasActiveAnimationsOnCompositor(CSSPropertyTransform));
+ m_effectStack.hasActiveAnimationsOnCompositor(
+ PropertyHandle(CSSPropertyTransform)));
}
if (style.hasCurrentFilterAnimation()) {
style.setIsRunningFilterAnimationOnCompositor(
- m_effectStack.hasActiveAnimationsOnCompositor(CSSPropertyFilter));
+ m_effectStack.hasActiveAnimationsOnCompositor(
+ PropertyHandle(CSSPropertyFilter)));
}
if (style.hasCurrentBackdropFilterAnimation()) {
style.setIsRunningBackdropFilterAnimationOnCompositor(
m_effectStack.hasActiveAnimationsOnCompositor(
- CSSPropertyBackdropFilter));
+ PropertyHandle(CSSPropertyBackdropFilter)));
}
}

Powered by Google App Engine
This is Rietveld 408576698