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:
Jeff Muizelaar 2019-06-26 17:35:38 +00:00
Родитель a27a868591
Коммит a5a51e1e99
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -1335,8 +1335,11 @@ void Grouper::ConstructItemInsideInactive(
// still
aGroup->ComputeGeometryChange(aItem, data, mTransform, mDisplayListBuilder);
// Temporarily restrict the image bounds to the bounds of the container so
// that clipped children within the container know about the clip.
// Temporarily restrict the image bounds to the bounds of the container so that
// 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;
aGroup->mClippedImageBounds =
aGroup->mClippedImageBounds.Intersect(data->mRect);