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

Unified Diff: third_party/WebKit/Source/core/animation/css/CSSAnimationUpdate.h

Issue 2724313002: Split transitions update storage between custom and standard properties (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/animation/css/CSSAnimationUpdate.h
diff --git a/third_party/WebKit/Source/core/animation/css/CSSAnimationUpdate.h b/third_party/WebKit/Source/core/animation/css/CSSAnimationUpdate.h
index 220afe9121abda818e25055a353dbc624b43f38d..fa507784e5b6dcc1894b85042cd46ceed5354f69 100644
--- a/third_party/WebKit/Source/core/animation/css/CSSAnimationUpdate.h
+++ b/third_party/WebKit/Source/core/animation/css/CSSAnimationUpdate.h
@@ -106,8 +106,10 @@ class CSSAnimationUpdate final {
m_newTransitions = update.newTransitions();
m_activeInterpolationsForAnimations =
update.activeInterpolationsForAnimations();
- m_activeInterpolationsForTransitions =
- update.activeInterpolationsForTransitions();
+ m_activeInterpolationsForCustomTransitions =
+ update.activeInterpolationsForCustomTransitions();
+ m_activeInterpolationsForStandardTransitions =
+ update.activeInterpolationsForStandardTransitions();
m_cancelledAnimationIndices = update.cancelledAnimationIndices();
m_animationIndicesWithPauseToggled =
update.animationIndicesWithPauseToggled();
@@ -121,7 +123,8 @@ class CSSAnimationUpdate final {
m_animationsWithUpdates.clear();
m_newTransitions.clear();
m_activeInterpolationsForAnimations.clear();
- m_activeInterpolationsForTransitions.clear();
+ m_activeInterpolationsForCustomTransitions.clear();
+ m_activeInterpolationsForStandardTransitions.clear();
m_cancelledAnimationIndices.clear();
m_animationIndicesWithPauseToggled.clear();
m_cancelledTransitions.clear();
@@ -231,15 +234,24 @@ class CSSAnimationUpdate final {
void adoptActiveInterpolationsForAnimations(ActiveInterpolationsMap& newMap) {
newMap.swap(m_activeInterpolationsForAnimations);
}
- void adoptActiveInterpolationsForTransitions(
+ void adoptActiveInterpolationsForCustomTransitions(
ActiveInterpolationsMap& newMap) {
- newMap.swap(m_activeInterpolationsForTransitions);
+ newMap.swap(m_activeInterpolationsForCustomTransitions);
+ }
+ void adoptActiveInterpolationsForStandardTransitions(
+ ActiveInterpolationsMap& newMap) {
+ newMap.swap(m_activeInterpolationsForStandardTransitions);
}
const ActiveInterpolationsMap& activeInterpolationsForAnimations() const {
return m_activeInterpolationsForAnimations;
}
- const ActiveInterpolationsMap& activeInterpolationsForTransitions() const {
- return m_activeInterpolationsForTransitions;
+ const ActiveInterpolationsMap& activeInterpolationsForCustomTransitions()
+ const {
+ return m_activeInterpolationsForCustomTransitions;
+ }
+ const ActiveInterpolationsMap& activeInterpolationsForStandardTransitions()
+ const {
+ return m_activeInterpolationsForStandardTransitions;
}
ActiveInterpolationsMap& activeInterpolationsForAnimations() {
return m_activeInterpolationsForAnimations;
@@ -253,7 +265,8 @@ class CSSAnimationUpdate final {
m_cancelledTransitions.isEmpty() &&
m_finishedTransitions.isEmpty() &&
m_activeInterpolationsForAnimations.isEmpty() &&
- m_activeInterpolationsForTransitions.isEmpty() &&
+ m_activeInterpolationsForCustomTransitions.isEmpty() &&
+ m_activeInterpolationsForStandardTransitions.isEmpty() &&
m_updatedCompositorKeyframes.isEmpty();
}
@@ -282,7 +295,8 @@ class CSSAnimationUpdate final {
HashSet<PropertyHandle> m_finishedTransitions;
ActiveInterpolationsMap m_activeInterpolationsForAnimations;
- ActiveInterpolationsMap m_activeInterpolationsForTransitions;
+ ActiveInterpolationsMap m_activeInterpolationsForCustomTransitions;
+ ActiveInterpolationsMap m_activeInterpolationsForStandardTransitions;
friend class PendingAnimationUpdate;
};
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698