forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1350037 Part 3 - Prevent table caption from honoring justify-*/al…
…ign-* when table is a grid item. r=dholbert The old code used to apply ShrinkWrap flag to both the inner table and the caption if the table wrapper is a stretched grid item. However, per analysis in bug 1350037 comment 4, when we reflow table captions, we'd like it *not* to shrink-wrap, but to stretch its inline-size to at least as wide as the inner table frame [1]. This patch moves the logic that computes whether a table is a stretched grid item from `ReflowInput` to `nsTableWrapperFrame`, and apply the `ShrinkWrap` flag to inner table if needed. [1] https://searchfox.org/mozilla-central/rev/54d6d78c3b33c92fd9eef9c0555a153bf8e4f2b4/layout/tables/nsTableWrapperFrame.cpp#760-763 Differential Revision: https://phabricator.services.mozilla.com/D196705
- Loading branch information
Showing
4 changed files
with
29 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters