Issue #1916 - Part 3: Sticky/relative position fixes in nsTableWrapperFrame.

Backported from Mozilla bug 1472602.
Didn't include the change in StickyScrollContainer.cpp because it breaks
 linking to libxul.so in the end. It's not important anyway.
This commit is contained in:
Job Bautista 2022-06-17 21:33:03 +08:00 committed by roytam1
commit 5dc15ae641

View file

@ -1025,7 +1025,7 @@ nsTableWrapperFrame::Reflow(nsPresContext* aPresContext,
captionSize, captionMargin, captionOrigin, wm);
FinishReflowChild(mCaptionFrames.FirstChild(), aPresContext, *captionMet,
captionRI.ptr(), wm, captionOrigin, containerSize,
ReflowChildFlags::Default);
ReflowChildFlags::ApplyRelativePositioning);
captionRI.reset();
}
// XXX If the bsize is constrained then we need to check whether
@ -1034,6 +1034,7 @@ nsTableWrapperFrame::Reflow(nsPresContext* aPresContext,
LogicalPoint innerOrigin(wm);
GetInnerOrigin(captionSide, containSize, captionSize, captionMargin,
innerSize, innerMargin, innerOrigin, wm);
// NOTE: Relative positioning on the table applies to the whole table wrapper.
FinishReflowChild(InnerTableFrame(), aPresContext, innerMet, innerRI.ptr(),
wm, innerOrigin, containerSize, ReflowChildFlags::Default);
innerRI.reset();