Bug 1521088 - Make an inner table frame with unconstrained block-size copy the IsBResize flag from its table-wrapper parent. r=TYLin

Differential Revision: https://phabricator.services.mozilla.com/D247456
This commit is contained in:
Jonathan Kew
2025-05-01 17:41:23 +00:00
committed by jkew@mozilla.com
parent e83f2402e2
commit 81aeec5e3f
2 changed files with 4 additions and 4 deletions

View File

@@ -795,7 +795,10 @@ void ReflowInput::InitResizeFlags(nsPresContext* aPresContext,
} else {
SetBResize(IsIResize());
}
SetBResize(IsBResize() || mFrame->IsSubtreeDirty());
SetBResize(IsBResize() || mFrame->IsSubtreeDirty() ||
// For an inner table frame, copy IsBResize from its wrapper.
(aFrameType == LayoutFrameType::Table &&
mParentReflowInput->IsBResize()));
} else {
// We have a non-'auto' block-size, i.e., a length. Set the BResize
// flag to whether the size is actually different.

View File

@@ -1,3 +0,0 @@
[table-grid-item-dynamic-004.html]
bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1521088
expected: FAIL