Bug 931082 - LayerActivityTracker shouldn't force invalidate. r=roc

This commit is contained in:
Benoit Girard 2013-10-25 22:45:51 +02:00
parent 153736410a
commit 002d47b4b6

View File

@ -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());
}