Bug 1412716 - Rewrite a comment without using |aStyle|. r=emilio
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Mon, 09 Apr 2018 20:15:59 +0900
changeset 779674 10477098a16512a291b7e551de603435a62ef879
parent 779673 45e8d02f4ba421f2651be3e21812d7cd12cca4bb
child 779675 9a88cf9d43086b7adc3ed2ba217c058f205133eb
push id105836
push userbmo:ato@sny.no
push dateTue, 10 Apr 2018 12:07:22 +0000
reviewersemilio
bugs1412716
milestone61.0a1
Bug 1412716 - Rewrite a comment without using |aStyle|. r=emilio MozReview-Commit-ID: 2OGLDBa31P
dom/animation/KeyframeEffectReadOnly.cpp
--- a/dom/animation/KeyframeEffectReadOnly.cpp
+++ b/dom/animation/KeyframeEffectReadOnly.cpp
@@ -206,17 +206,18 @@ KeyframeEffectReadOnly::SetKeyframes(
 
   mKeyframes = Move(aKeyframes);
   KeyframeUtils::DistributeKeyframes(mKeyframes);
 
   if (mAnimation && mAnimation->IsRelevant()) {
     nsNodeUtils::AnimationChanged(mAnimation);
   }
 
-  // We need to call UpdateProperties() if the StyleType is not nullptr.
+  // We need to call UpdateProperties() unless the target element doesn't have
+  // style (e.g. the target element is not associated with any document).
   if (aStyle) {
     UpdateProperties(aStyle);
     MaybeUpdateFrameForCompositor();
   }
 }
 
 const AnimationProperty*
 KeyframeEffectReadOnly::GetEffectiveAnimationOfProperty(