mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 931082 - LayerActivityTracker shouldn't force invalidate. r=roc
This commit is contained in:
parent
153736410a
commit
002d47b4b6
@ -4621,17 +4621,7 @@ LayerActivityTracker::NotifyExpired(LayerActivity* aObject)
|
||||
nsIFrame* f = aObject->mFrame;
|
||||
aObject->mFrame = nullptr;
|
||||
|
||||
// if there are hints other than transform/opacity, invalidate, since we don't know what else to do.
|
||||
if (aObject->mChangeHint & ~(nsChangeHint_UpdateOpacityLayer|nsChangeHint_UpdateTransformLayer)) {
|
||||
f->InvalidateFrameSubtree();
|
||||
} else {
|
||||
if (aObject->mChangeHint & nsChangeHint_UpdateOpacityLayer) {
|
||||
f->InvalidateFrameSubtree(nsDisplayItem::TYPE_OPACITY);
|
||||
}
|
||||
if (aObject->mChangeHint & nsChangeHint_UpdateTransformLayer) {
|
||||
f->InvalidateFrameSubtree(nsDisplayItem::TYPE_TRANSFORM);
|
||||
}
|
||||
}
|
||||
f->SchedulePaint();
|
||||
f->Properties().Delete(LayerActivityProperty());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user