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
Родитель 34e2375067
Коммит 4dbc15ef1a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -4570,7 +4570,6 @@ nsIFrame::MarkLayersActive(nsChangeHint aChangeHint)
static_cast<LayerActivity*>(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);
}