Bug 1390942: Recomposite areas of a container where child layers became visible. r=mattwoodrow

MozReview-Commit-ID: E9qMmwvcGKU
This commit is contained in:
Bas Schouten 2017-08-31 16:27:26 +00:00
parent 75495471b9
commit cf9abbf1f4

View File

@ -315,6 +315,11 @@ public:
nsIntRegion& aOutRegion,
NotifySubDocInvalidationFunc aCallback)
{
if (mLayer->AsHostLayer() && !mLayer->GetLocalVisibleRegion().ToUnknownRegion().IsEqual(mVisibleRegion)) {
IntRect result = NewTransformedBoundsForLeaf();
result = result.Union(OldTransformedBoundsForLeaf());
aOutRegion = result;
}
return true;
}