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:
@@ -203,6 +203,20 @@ nsCSSOffsetState::ComputeHeightDependentValue(nscoord aContainingBlockHeight,
|
||||
aCoord);
|
||||
}
|
||||
|
||||
void
|
||||
nsHTMLReflowState::SetComputedWidth(nscoord aComputedWidth)
|
||||
{
|
||||
NS_ASSERTION(frame, "Must have a frame!");
|
||||
NS_ASSERTION(!(frame->GetStateBits() & NS_FRAME_IN_REFLOW),
|
||||
"frame shouldn't be in reflow yet");
|
||||
|
||||
nscoord oldComputedWidth = mComputedWidth;
|
||||
mComputedWidth = aComputedWidth;
|
||||
if (mComputedWidth != oldComputedWidth) {
|
||||
InitResizeFlags(frame->GetPresContext());
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
nsHTMLReflowState::Init(nsPresContext* aPresContext,
|
||||
nscoord aContainingBlockWidth,
|
||||
|
||||
Reference in New Issue
Block a user