Replace AutoMaybeNullInflationContainer with AutoMaybeDisableInflationForShrinkWrap since the concept of the pres context's current inflation container will be going away. (Bug 747720, patch 2) r=roc
This commit is contained in:
@@ -103,7 +103,7 @@ nsTableCaptionFrame::ComputeAutoSize(nsRenderingContext *aRenderingContext,
|
||||
|
||||
// If we're a container for font size inflation, then shrink
|
||||
// wrapping inside of us should not apply font size inflation.
|
||||
AutoMaybeNullInflationContainer an(this);
|
||||
AutoMaybeDisableFontInflation an(this);
|
||||
|
||||
PRUint8 captionSide = GetStyleTableBorder()->mCaptionSide;
|
||||
if (captionSide == NS_STYLE_CAPTION_SIDE_LEFT ||
|
||||
@@ -533,7 +533,7 @@ ChildShrinkWrapWidth(nsRenderingContext *aRenderingContext,
|
||||
nsSize aCBSize, nscoord aAvailableWidth,
|
||||
nscoord *aMarginResult = nsnull)
|
||||
{
|
||||
AutoMaybeNullInflationContainer an(aChildFrame);
|
||||
AutoMaybeDisableFontInflation an(aChildFrame);
|
||||
|
||||
nsCSSOffsetState offsets(aChildFrame, aRenderingContext, aCBSize.width);
|
||||
nsSize size = aChildFrame->ComputeSize(aRenderingContext, aCBSize,
|
||||
|
||||
Reference in New Issue
Block a user