Bug 911889. Part 1: Fix mutationUpdate mutation count for first as well as subsequent mutations. r=benwa

This commit is contained in:
Robert O'Callahan 2013-09-04 16:43:33 +12:00
parent f19415be79
commit a67691ee12

View File

@ -4570,7 +4570,6 @@ nsIFrame::MarkLayersActive(nsChangeHint aChangeHint)
static_cast<LayerActivity*>(properties.Get(LayerActivityProperty())); static_cast<LayerActivity*>(properties.Get(LayerActivityProperty()));
if (layerActivity) { if (layerActivity) {
gLayerActivityTracker->MarkUsed(layerActivity); gLayerActivityTracker->MarkUsed(layerActivity);
layerActivity->mMutationCount++;
} else { } else {
if (!gLayerActivityTracker) { if (!gLayerActivityTracker) {
gLayerActivityTracker = new LayerActivityTracker(); gLayerActivityTracker = new LayerActivityTracker();
@ -4579,6 +4578,7 @@ nsIFrame::MarkLayersActive(nsChangeHint aChangeHint)
gLayerActivityTracker->AddObject(layerActivity); gLayerActivityTracker->AddObject(layerActivity);
properties.Set(LayerActivityProperty(), layerActivity); properties.Set(LayerActivityProperty(), layerActivity);
} }
layerActivity->mMutationCount++;
NS_UpdateHint(layerActivity->mChangeHint, aChangeHint); NS_UpdateHint(layerActivity->mChangeHint, aChangeHint);
} }