Bug 1412716 - Rewrite a comment without using |aStyle|. r?emilio draft
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Mon, 09 Apr 2018 20:15:59 +0900
changeset 779415 17b85877d94792bfe2d2370fb437432140f312e1
parent 779316 433416ba2a3a058eb99036f12783dd8f3e2519f2
child 779416 03619b9967cf26c734e2cc7615152d1771506cba
push id105766
push userhikezoe@mozilla.com
push dateMon, 09 Apr 2018 20:53:39 +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(