Bug 1418836 - Add restyle markers in a place that I missed in
bug 1350930. r?bz
MozReview-Commit-ID: 4lj6W02JwHM
--- a/layout/base/PresShell.cpp
+++ b/layout/base/PresShell.cpp
@@ -4213,16 +4213,22 @@ PresShell::DoFlushPendingNotifications(m
if (aFlush.mFlushAnimations && mPresContext->EffectCompositor()) {
mPresContext->EffectCompositor()->PostRestyleForThrottledAnimations();
}
// The FlushResampleRequests() above flushed style changes.
if (!mIsDestroying) {
nsAutoScriptBlocker scriptBlocker;
+#ifdef MOZ_GECKO_PROFILER
+ AutoProfilerTracing tracingStyleFlush("Paint", "Styles",
+ Move(mStyleCause));
+ mStyleCause = nullptr;
+#endif
+
mPresContext->RestyleManager()->ProcessPendingRestyles();
}
}
// Process whatever XBL constructors those restyles queued up. This
// ensures that onload doesn't fire too early and that we won't do extra
// reflows after those constructors run.
if (!mIsDestroying) {