diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index fcf32237a866..3d5465af0a0a 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -4570,7 +4570,6 @@ nsIFrame::MarkLayersActive(nsChangeHint aChangeHint) static_cast(properties.Get(LayerActivityProperty())); if (layerActivity) { gLayerActivityTracker->MarkUsed(layerActivity); - layerActivity->mMutationCount++; } else { if (!gLayerActivityTracker) { gLayerActivityTracker = new LayerActivityTracker(); @@ -4579,6 +4578,7 @@ nsIFrame::MarkLayersActive(nsChangeHint aChangeHint) gLayerActivityTracker->AddObject(layerActivity); properties.Set(LayerActivityProperty(), layerActivity); } + layerActivity->mMutationCount++; NS_UpdateHint(layerActivity->mChangeHint, aChangeHint); }