Bug 1395351: Use the style flattened tree in EffectCompositor::PreTraverseInSubtree. r?bholley draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Fri, 01 Sep 2017 19:28:01 +0200
changeset 657640 75efcb744c82eb53554c9a0e9bc712e3ef35ee47
parent 657639 d77e05c5403bd010148a489af2ce33ecb1c5d05f
child 657641 0ecd7593a02dbe48875546231cff9fcd8de19676
push id77581
push userbmo:emilio@crisal.io
push dateFri, 01 Sep 2017 18:40:22 +0000
reviewersbholley
bugs1395351
milestone57.0a1
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;