mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 911889. Part 1: Fix mutationUpdate mutation count for first as well as subsequent mutations. r=benwa
This commit is contained in:
parent
f19415be79
commit
a67691ee12
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user