Bug 1376248 - Part 1: Use an nsAutoAnimationMutationBatch when updating animations for an element in stylo. r=birtles
authorCameron McCormack <cam@mcc.id.au>
Mon, 24 Jul 2017 16:02:53 +0800
changeset 421816 f98953cb41ef6eecaa7c2d348974b4c584e37618
parent 421815 aebaa2a545ba19f6667859b0afaa237364f61863
child 421817 8b5b751e81df6f8cc9c7f6b3d678f084cb68e47a
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbirtles
bugs1376248
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1376248 - Part 1: Use an nsAutoAnimationMutationBatch when updating animations for an element in stylo. r=birtles MozReview-Commit-ID: 2ft7qn9iVLB
layout/style/ServoBindings.cpp
--- a/layout/style/ServoBindings.cpp
+++ b/layout/style/ServoBindings.cpp
@@ -676,16 +676,18 @@ Gecko_UpdateAnimations(RawGeckoElementBo
     return;
   }
 
   nsPresContext* presContext = nsContentUtils::GetContextForContent(aElement);
   if (!presContext || !presContext->IsDynamic()) {
     return;
   }
 
+  nsAutoAnimationMutationBatch mb(aElement->OwnerDoc());
+
   CSSPseudoElementType pseudoType =
     GetPseudoTypeFromElementForAnimation(aElement);
 
   if (aTasks & UpdateAnimationsTasks::CSSAnimations) {
     presContext->AnimationManager()->
       UpdateAnimations(const_cast<dom::Element*>(aElement), pseudoType,
                        aComputedData);
   }