Bug 1824877 Part 3 - Change ScrollContainerFrame's type from Scroll to ScrollContainer. r=dholbert

This effectively changes the `IsScrollFrame()` helper to
`IsScrollContainerFrame()`.

Differential Revision: https://phabricator.services.mozilla.com/D210357
This commit is contained in:
Ting-Yu Lin
2024-05-15 17:50:49 +00:00
parent 27bb908f13
commit b4a0842882
17 changed files with 40 additions and 34 deletions

View File

@@ -754,7 +754,7 @@ void nsTableCellFrame::Reflow(nsPresContext* aPresContext,
{
const auto padding = aReflowInput.ComputedLogicalPadding(kidWM);
kidReflowInput.Init(aPresContext, Nothing(), Nothing(), Some(padding));
if (firstKid->IsScrollFrame()) {
if (firstKid->IsScrollContainerFrame()) {
// Propagate explicit block sizes to our inner frame, if it's a scroll
// frame. Note that in table layout, explicit heights act as a minimum
// height, see nsTableRowFrame::CalcCellActualBSize.