зеркало из https://github.com/mozilla/gecko-dev.git
Bug 911889. Part 1: Fix mutationUpdate mutation count for first as well as subsequent mutations. r=benwa
This commit is contained in:
Родитель
34e2375067
Коммит
4dbc15ef1a
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче