Make mComputedWidth private, with a getter/setter, and make the setter update
the resize flags. Bug 367442, r+sr=dbaron git-svn-id: svn://10.0.0.236/trunk@218933 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -334,7 +334,7 @@ nsAbsoluteContainingBlock::ReflowAbsoluteFrame(nsIFrame* aDelegat
|
||||
PrettyUC(aReflowState.availableWidth, width);
|
||||
PrettyUC(aReflowState.availableHeight, height);
|
||||
printf(" a=%s,%s ", width, height);
|
||||
PrettyUC(aReflowState.mComputedWidth, width);
|
||||
PrettyUC(aReflowState.ComputedWidth(), width);
|
||||
PrettyUC(aReflowState.mComputedHeight, height);
|
||||
printf("c=%s,%s \n", width, height);
|
||||
}
|
||||
@@ -347,10 +347,10 @@ nsAbsoluteContainingBlock::ReflowAbsoluteFrame(nsIFrame* aDelegat
|
||||
|
||||
nscoord availWidth = aContainingBlockWidth;
|
||||
if (availWidth == -1) {
|
||||
NS_ASSERTION(aReflowState.mComputedWidth != NS_UNCONSTRAINEDSIZE,
|
||||
NS_ASSERTION(aReflowState.ComputedWidth() != NS_UNCONSTRAINEDSIZE,
|
||||
"Must have a useful width _somewhere_");
|
||||
availWidth =
|
||||
aReflowState.mComputedWidth + aReflowState.mComputedPadding.LeftRight();
|
||||
aReflowState.ComputedWidth() + aReflowState.mComputedPadding.LeftRight();
|
||||
}
|
||||
|
||||
nsHTMLReflowMetrics kidDesiredSize;
|
||||
|
||||
Reference in New Issue
Block a user