Bug 1351791: Make NoteDirtyDescendantsForServo observe the refresh driver. r?bholley draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Thu, 30 Mar 2017 10:23:20 +0200
changeset 554371 bca6e683b5a50b420011f869948310ec1d1cfd6d
parent 554370 b82d0e0dc5339e199cfd8e81718366dd77a7cdc2
child 554372 893f2c476fe50615aa2e24d4cd6dfea22637b96b
push id51896
push userbmo:emilio+bugs@crisal.io
push dateFri, 31 Mar 2017 09:59:00 +0000
reviewersbholley
bugs1351791
milestone55.0a1
Bug 1351791: Make NoteDirtyDescendantsForServo observe the refresh driver. r?bholley MozReview-Commit-ID: 5SWEVPqRBTC
dom/base/ElementInlines.h
--- a/dom/base/ElementInlines.h
+++ b/dom/base/ElementInlines.h
@@ -62,16 +62,17 @@ Element::NoteDirtyDescendantsForServo()
   Element* curr = this;
   while (curr && !curr->HasDirtyDescendantsForServo()) {
     curr->SetHasDirtyDescendantsForServo();
     curr = curr->GetFlattenedTreeParentElementForStyle();
   }
 
   if (nsIPresShell* shell = OwnerDoc()->GetShell()) {
     shell->SetNeedStyleFlush();
+    shell->ObserveStyleFlushes();
   }
 
   MOZ_ASSERT(DirtyDescendantsBitIsPropagatedForServo());
 }
 
 #ifdef DEBUG
 inline bool
 Element::DirtyDescendantsBitIsPropagatedForServo()