From 273f631535af6bb006c4da1559e701c0b69b90ba Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Sun, 12 Sep 2021 08:55:21 -0700 Subject: [PATCH] Annotate arguments in AnimationKeyFrame ctor Summary: changelog: [internal] Just improvement to readability. Reviewed By: philIip Differential Revision: D30767100 fbshipit-source-id: eb5d36712f8096e6becd8db1e9d47128d5754624 --- .../LayoutAnimationKeyFrameManager.cpp | 60 +++++++++---------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp b/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp index 94655c4600..832082db15 100644 --- a/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +++ b/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp @@ -371,12 +371,12 @@ LayoutAnimationKeyFrameManager::pullTransaction( if (wasInsertedTagRemoved && haveConfiguration) { movesToAnimate.push_back(AnimationKeyFrame{ - {}, - AnimationConfigurationType::Update, - mutation.newChildShadowView.tag, - mutation.parentShadowView, - movedIt->second.oldChildShadowView, - mutation.newChildShadowView}); + /* .finalMutationsForKeyFrame = */ {}, + /* .type = */ AnimationConfigurationType::Update, + /* .tag = */ mutation.newChildShadowView.tag, + /* .parentView = */ mutation.parentShadowView, + /* .viewStart = */ movedIt->second.oldChildShadowView, + /* .viewEnd = */ mutation.newChildShadowView}); } // Creates and inserts should also be executed immediately. @@ -524,14 +524,14 @@ LayoutAnimationKeyFrameManager::pullTransaction( mutation); keyFrame = AnimationKeyFrame{ - {}, - AnimationConfigurationType::Create, - tag, - parent, - viewStart, - viewFinal, - baselineShadowView, - 0}; + /* .finalMutationsForKeyFrame = */ {}, + /* .type = */ AnimationConfigurationType::Create, + /* .tag = */ tag, + /* .parentView = */ parent, + /* .viewStart = */ viewStart, + /* .viewEnd = */ viewFinal, + /* .viewPrev = */ baselineShadowView, + /* .initialProgress = */ 0}; } else if (mutation.type == ShadowViewMutation::Type::Delete) { // This is just for assertion purposes. // The NDEBUG check here is to satisfy the compiler in certain environments @@ -562,14 +562,14 @@ LayoutAnimationKeyFrameManager::pullTransaction( mutation); keyFrame = AnimationKeyFrame{ - {mutation}, - AnimationConfigurationType::Update, - tag, - parent, - viewStart, - viewFinal, - baselineShadowView, - 0}; + /* .finalMutationsForKeyFrame = */ {mutation}, + /* .type = */ AnimationConfigurationType::Update, + /* .tag = */ tag, + /* .parentView = */ parent, + /* .viewStart = */ viewStart, + /* .viewEnd = */ viewFinal, + /* .viewPrev = */ baselineShadowView, + /* .initialProgress = */ 0}; } else { // This should just be "Remove" instructions that are not animated // (either this is a "move", or there's a corresponding "Delete" @@ -650,14 +650,14 @@ LayoutAnimationKeyFrameManager::pullTransaction( mutation); keyFrame = AnimationKeyFrame{ - {mutation, deleteMutation}, - AnimationConfigurationType::Delete, - tag, - parent, - viewStart, - viewFinal, - baselineShadowView, - 0}; + /* .finalMutationsForKeyFrame */ {mutation, deleteMutation}, + /* .type */ AnimationConfigurationType::Delete, + /* .tag */ tag, + /* .parentView */ parent, + /* .viewStart */ viewStart, + /* .viewEnd */ viewFinal, + /* .viewPrev */ baselineShadowView, + /* .initialProgress */ 0}; } else { PrintMutationInstruction( "Executing Remove Immediately, due to reordering operation",