Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1881495 part 1: Add ShrinkWrap flag for grid items that are self-…
…aligned (not stretched) in MeasuringReflow(). r=dholbert Bug 1350037 Part 3 [1] removed the code in ReflowInput that adds `ShrinkWrap` flag self-aligned grid items, to prevent the table-caption from getting aligned behavior, but it accidentally broke self-aligned behavior for other types of frames that are grid items. We actually already check if we need to add `ShrinkWrap` in grid item's final reflow [2], but we were missing the same logic in `MeasuringReflow()`. This patch adds that. [1] https://hg.mozilla.org/mozilla-central/rev/6e8085865f74 [2] https://searchfox.org/mozilla-central/rev/202c48686136360a23b73a49b611a19e64f3e1b8/layout/generic/nsGridContainerFrame.cpp#7651,7657 Differential Revision: https://phabricator.services.mozilla.com/D203514
- Loading branch information