Bug 1395351: Use the style flattened tree in EffectCompositor::PreTraverseInSubtree. r=bholley
authorEmilio Cobos Álvarez <emilio@crisal.io>
Fri, 01 Sep 2017 19:28:01 +0200
changeset 378316 1feb294747ee383b3c84d4d14719a4a448865c52
parent 378315 2093d5141fb21195b1f84894b2921bcace8c3cfd
child 378317 ec07132e0715d11936a1d272ccfae8ebffa69e32
push id32428
push userarchaeopteryx@coole-files.de
push dateSat, 02 Sep 2017 08:52:28 +0000
treeherdermozilla-central@b01a7e57425b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbholley
bugs1395351
milestone57.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 1395351: Use the style flattened tree in EffectCompositor::PreTraverseInSubtree. r=bholley MozReview-Commit-ID: ATVxx8EXJWY
dom/animation/EffectCompositor.cpp
--- a/dom/animation/EffectCompositor.cpp
+++ b/dom/animation/EffectCompositor.cpp
@@ -1008,19 +1008,18 @@ EffectCompositor::PreTraverseInSubtree(S
     // document restyle (at the end of this function) but for consistency with
     // how we treat such elements in RequestRestyle, we just ignore them here.
     if (!nsComputedDOMStyle::GetPresShellForContent(target.mElement)) {
       return returnTarget;
     }
 
     // Ignore restyles that aren't in the flattened tree subtree rooted at
     // aRoot.
-    if (aRoot &&
-        !nsContentUtils::ContentIsFlattenedTreeDescendantOf(target.mElement,
-                                                            aRoot)) {
+    if (aRoot && !nsContentUtils::ContentIsFlattenedTreeDescendantOfForStyle(
+          target.mElement, aRoot)) {
       return returnTarget;
     }
 
     returnTarget = target;
     return returnTarget;
   };
 
   bool foundElementsNeedingRestyle = false;