Change mCBReflowState to mean the containing block of _this_ reflow state
instead of the containing block of kids. Fix the containing block calculations for various cases of absolutely positioned descendants of relatively positioned inlines (eg make "right" and "bottom" work in those situations). Bug 135082, r+sr=dbaron git-svn-id: svn://10.0.0.236/trunk@155456 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1286,8 +1286,13 @@ nsPositionedInlineFrame::Reflow(nsIPresContext* aPresContext,
|
||||
(eReflowReason_Incremental != aReflowState.reason ||
|
||||
aReflowState.path->mReflowCommand ||
|
||||
mRect != oldRect)) {
|
||||
nscoord containingBlockWidth = -1;
|
||||
nscoord containingBlockHeight = -1;
|
||||
// The containing block for the abs pos kids is formed by our content edge.
|
||||
nscoord containingBlockWidth = aDesiredSize.width -
|
||||
(aReflowState.mComputedBorderPadding.left +
|
||||
aReflowState.mComputedBorderPadding.right);
|
||||
nscoord containingBlockHeight = aDesiredSize.height -
|
||||
(aReflowState.mComputedBorderPadding.top +
|
||||
aReflowState.mComputedBorderPadding.bottom);
|
||||
nsRect childBounds;
|
||||
|
||||
rv = mAbsoluteContainer.Reflow(this, aPresContext, aReflowState,
|
||||
|
||||
Reference in New Issue
Block a user