зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1561672. blob-inval: Elaborate comment on clipping bounds
Differential Revision: https://phabricator.services.mozilla.com/D36065 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
a27a868591
Коммит
a5a51e1e99
|
@ -1335,8 +1335,11 @@ void Grouper::ConstructItemInsideInactive(
|
||||||
// still
|
// still
|
||||||
aGroup->ComputeGeometryChange(aItem, data, mTransform, mDisplayListBuilder);
|
aGroup->ComputeGeometryChange(aItem, data, mTransform, mDisplayListBuilder);
|
||||||
|
|
||||||
// Temporarily restrict the image bounds to the bounds of the container so
|
// Temporarily restrict the image bounds to the bounds of the container so that
|
||||||
// that clipped children within the container know about the clip.
|
// clipped children within the container know about the clip. This ensures
|
||||||
|
// that the bounds passed to FlushItem are contained in the bounds of the clip
|
||||||
|
// so that we don't include items in the recording without including their
|
||||||
|
// corresponding clipping items.
|
||||||
IntRect oldClippedImageBounds = aGroup->mClippedImageBounds;
|
IntRect oldClippedImageBounds = aGroup->mClippedImageBounds;
|
||||||
aGroup->mClippedImageBounds =
|
aGroup->mClippedImageBounds =
|
||||||
aGroup->mClippedImageBounds.Intersect(data->mRect);
|
aGroup->mClippedImageBounds.Intersect(data->mRect);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче