mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1857585 Part 1 - Remove unused PresContext parameter. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D190371
This commit is contained in:
parent
abbea4195b
commit
5c27b8d0d0
@ -950,7 +950,7 @@ void nsTableRowFrame::ReflowChildren(nsPresContext* aPresContext,
|
||||
if (isPaginated && HasStyleBSize()) {
|
||||
// set the unpaginated bsize so next in flows can try to honor it
|
||||
SetHasUnpaginatedBSize(true);
|
||||
SetUnpaginatedBSize(aPresContext, aDesiredSize.BSize(wm));
|
||||
SetUnpaginatedBSize(aDesiredSize.BSize(wm));
|
||||
}
|
||||
if (isPaginated && HasUnpaginatedBSize()) {
|
||||
aDesiredSize.BSize(wm) =
|
||||
@ -1311,8 +1311,7 @@ nsTableRowFrame* nsTableRowFrame::GetNextRow() const {
|
||||
|
||||
NS_DECLARE_FRAME_PROPERTY_SMALL_VALUE(RowUnpaginatedHeightProperty, nscoord)
|
||||
|
||||
void nsTableRowFrame::SetUnpaginatedBSize(nsPresContext* aPresContext,
|
||||
nscoord aValue) {
|
||||
void nsTableRowFrame::SetUnpaginatedBSize(nscoord aValue) {
|
||||
NS_ASSERTION(!GetPrevInFlow(), "program error");
|
||||
// Set the property
|
||||
SetProperty(RowUnpaginatedHeightProperty(), aValue);
|
||||
|
@ -203,7 +203,7 @@ class nsTableRowFrame : public nsContainerFrame {
|
||||
bool HasUnpaginatedBSize();
|
||||
void SetHasUnpaginatedBSize(bool aValue);
|
||||
nscoord GetUnpaginatedBSize();
|
||||
void SetUnpaginatedBSize(nsPresContext* aPresContext, nscoord aValue);
|
||||
void SetUnpaginatedBSize(nscoord aValue);
|
||||
|
||||
BCPixelSize GetBStartBCBorderWidth() const { return mBStartBorderWidth; }
|
||||
BCPixelSize GetBEndBCBorderWidth() const { return mBEndBorderWidth; }
|
||||
|
@ -312,13 +312,12 @@ void nsTableRowGroupFrame::InitChildReflowInput(nsPresContext& aPresContext,
|
||||
aReflowInput.Init(&aPresContext, Nothing(), Some(border), Some(zeroPadding));
|
||||
}
|
||||
|
||||
static void CacheRowBSizesForPrinting(nsPresContext* aPresContext,
|
||||
nsTableRowFrame* aFirstRow,
|
||||
static void CacheRowBSizesForPrinting(nsTableRowFrame* aFirstRow,
|
||||
WritingMode aWM) {
|
||||
for (nsTableRowFrame* row = aFirstRow; row; row = row->GetNextRow()) {
|
||||
if (!row->GetPrevInFlow()) {
|
||||
row->SetHasUnpaginatedBSize(true);
|
||||
row->SetUnpaginatedBSize(aPresContext, row->BSize(aWM));
|
||||
row->SetUnpaginatedBSize(row->BSize(aWM));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -473,7 +472,7 @@ void nsTableRowGroupFrame::ReflowChildren(
|
||||
if (aReflowInput.reflowInput.mFlags.mSpecialBSizeReflow) {
|
||||
DidResizeRows(aDesiredSize);
|
||||
if (isPaginated) {
|
||||
CacheRowBSizesForPrinting(aPresContext, GetFirstRow(), wm);
|
||||
CacheRowBSizesForPrinting(GetFirstRow(), wm);
|
||||
}
|
||||
} else if (needToCalcRowBSizes) {
|
||||
CalculateRowBSizes(aPresContext, aDesiredSize, aReflowInput.reflowInput);
|
||||
@ -862,7 +861,7 @@ void nsTableRowGroupFrame::CalculateRowBSizes(nsPresContext* aPresContext,
|
||||
if (isPaginated && styleBSizeAllocation) {
|
||||
// since the row group has a style bsize, cache the row bsizes,
|
||||
// so next in flows can honor them
|
||||
CacheRowBSizesForPrinting(aPresContext, GetFirstRow(), wm);
|
||||
CacheRowBSizesForPrinting(GetFirstRow(), wm);
|
||||
}
|
||||
|
||||
DidResizeRows(aDesiredSize);
|
||||
|
Loading…
Reference in New Issue
Block a user