summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJob Bautista <jobbautista9@protonmail.com>2022-06-17 21:33:03 +0800
committerJob Bautista <jobbautista9@protonmail.com>2022-06-17 21:33:03 +0800
commit165df0f7b52977dd4650db8f198261716e57a425 (patch)
treeab43221ef31c5642ce972a2f78043b8d91273476
parent9842b6054c098fc686c745a7ce2845362fd5bacb (diff)
downloaduxp-165df0f7b52977dd4650db8f198261716e57a425.tar.gz
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.
-rw-r--r--layout/tables/nsTableWrapperFrame.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/layout/tables/nsTableWrapperFrame.cpp b/layout/tables/nsTableWrapperFrame.cpp
index abe6bceefb..e87575b2ea 100644
--- a/layout/tables/nsTableWrapperFrame.cpp
+++ b/layout/tables/nsTableWrapperFrame.cpp
@@ -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();