Revert "View transition layered capture: determine geometry based on box model"
This reverts commit 9bd85f446ff63c0e14c4c951e6c6d882e66ab2c7.
Reason for revert:
LUCI Bisection has identified this change as the culprit of a build failure. See the analysis: https://ci.chromium.org/ui/p/chromium/bisection/compile-analysis/b/8731914295759642129
Sample failed build: https://ci.chromium.org/b/8731914295759642129
If this is a false positive, please report it at http://b.corp.google.com/createIssue?component=1199205&description=Analysis%3A+https%3A%2F%2Fchromium-review.googlesource.com%2Fc%2Fchromium%2Fsrc%2F%2B%2F5953705&format=PLAIN&priority=P3&title=Wrongly+blamed+https%3A%2F%2Fci.chromium.org%2Fui%2Fp%2Fchromium%2Fbisection%2Fcompile-analysis%2Fb%2F8731914295759642129&type=BUG
Original change's description:
View transition layered capture: determine geometry based on box model
Instead of capturing the border offset, we capture the following
layout sizes to determine sizing, in addition to the border box:
padding box
content box
The box-sizing property
In layered capture mode, we use the content box size as the
reference box for positioning the snapshot, so that padding take
effect.The ::view-transition-image-pair pseudo-element now has
position:relative so that it gets affected by padding. It has the
content box size.The width/height of the group is determined by the box-sizing
property, and it receives the computed padding.Bug: 375395117
Change-Id: I18fe5126fbfac58b0619043cc5521ea1f280e457
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5953705
Reviewed-by: Khushal Sagar khushalsagar@chromium.org
Reviewed-by: Philip Rogers pdr@chromium.org
Reviewed-by: Arthur Sonzogni arthursonzogni@chromium.org
Commit-Queue: Noam Rosenthal nrosenthal@chromium.org
Cr-Commit-Position: refs/heads/main@{#1379706}
Bug: 375395117
Change-Id: Ibb2eedd23b1010eb909a97589629905971c473fa
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6001797
Commit-Queue: luci-bisection@appspot.gserviceaccount.com luci-bisection@appspot.gserviceaccount.com
Bot-Commit: luci-bisection@appspot.gserviceaccount.com luci-bisection@appspot.gserviceaccount.com
Owners-Override: luci-bisection@appspot.gserviceaccount.com luci-bisection@appspot.gserviceaccount.com
Cr-Commit-Position: refs/heads/main@{#1379736}