Bug 1168478 Part 2 - Combine the border and padding arguments for nsIFrame::ComputeSize(). r=dholbert
Also combine the border and padding arguments for nsContainerFrame::ComputeSizeWithIntrinsicDimensions(), too. This method is used as a helper to implement ComputeSize() for various replaced elements. Its callers are all within nsIFrame's derived classes' overridden methods, so I'm not bothering to convert them in a separate patch. This change shouldn't change behavior. Differential Revision: https://phabricator.services.mozilla.com/D90064
This commit is contained in:
@@ -8639,8 +8639,7 @@ void nsTextFrame::AddInlinePrefISize(gfxContext* aRenderingContext,
|
||||
nsIFrame::SizeComputationResult nsTextFrame::ComputeSize(
|
||||
gfxContext* aRenderingContext, WritingMode aWM, const LogicalSize& aCBSize,
|
||||
nscoord aAvailableISize, const LogicalSize& aMargin,
|
||||
const LogicalSize& aBorder, const LogicalSize& aPadding,
|
||||
ComputeSizeFlags aFlags) {
|
||||
const LogicalSize& aBorderPadding, ComputeSizeFlags aFlags) {
|
||||
// Inlines and text don't compute size before reflow.
|
||||
return {LogicalSize(aWM, NS_UNCONSTRAINEDSIZE, NS_UNCONSTRAINEDSIZE),
|
||||
AspectRatioUsage::None};
|
||||
|
||||
Reference in New Issue
Block a user