Bug 1914661 Part 3 - Add ReflowInput::SetBResizeForPercentages(). r=dholbert

We have `SetBResize()`, so it would be useful to add a method to set
`mIsBResizeForPercentages` flag for consistency.

Differential Revision: https://phabricator.services.mozilla.com/D220023
This commit is contained in:
Ting-Yu Lin
2024-08-23 19:52:50 +00:00
parent dd07eb1c10
commit a024d0e616
6 changed files with 15 additions and 13 deletions

View File

@@ -898,7 +898,7 @@ void ScrollContainerFrame::ReflowScrolledFrame(ScrollReflowInput& aState,
kidReflowInput.SetBResize(true);
}
if (aState.mReflowInput.IsBResizeForPercentagesForWM(kidWM)) {
kidReflowInput.mFlags.mIsBResizeForPercentages = true;
kidReflowInput.SetBResizeForPercentages(true);
}
// Temporarily set mHasHorizontalScrollbar/mHasVerticalScrollbar to