Bug 1350140: Flush the overflow changed tracker when done with restyles. r?heycam draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 27 Mar 2017 22:55:20 +0200
changeset 553203 208b4f2cc66daf7bf6be7f7766643b4be99cb282
parent 553202 2ecc51a80d491aa559766cf906a5c64e3f7cb426
child 553204 6a81b2dc31faf583cb76fd0bbd9f229bd1f4cf63
push id51547
push userbmo:emilio+bugs@crisal.io
push dateWed, 29 Mar 2017 14:49:00 +0000
reviewersheycam
bugs1350140
milestone55.0a1
Bug 1350140: Flush the overflow changed tracker when done with restyles. r?heycam MozReview-Commit-ID: 6ENzvvxCok5
layout/base/ServoRestyleManager.cpp
--- a/layout/base/ServoRestyleManager.cpp
+++ b/layout/base/ServoRestyleManager.cpp
@@ -412,16 +412,18 @@ ServoRestyleManager::ProcessPendingResty
       }
       newChanges.Clear();
     }
     mReentrantChanges = nullptr;
 
     IncrementRestyleGeneration();
   }
 
+  FlushOverflowChangedTracker();
+
   mInStyleRefresh = false;
   styleSet->AssertTreeIsClean();
 
   // Note: We are in the scope of |animationsWithDestroyedFrame|, so
   //       |mAnimationsWithDestroyedFrame| is still valid.
   MOZ_ASSERT(mAnimationsWithDestroyedFrame);
   mAnimationsWithDestroyedFrame->StopAnimationsForElementsWithoutFrames();
 }