Bug 1350140: Flush the overflow changed tracker when done with restyles. r?heycam
MozReview-Commit-ID: 6ENzvvxCok5
--- 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();
}