Use the direction of the abs pos box, not its containing block, when deciding
which offset to use the static position for. Bug 247287, r+sr=dbaron git-svn-id: svn://10.0.0.236/trunk@159239 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
781b356027
commit
95c22a9e8d
@ -981,9 +981,7 @@ nsHTMLReflowState::InitAbsoluteConstraints(nsIPresContext* aPresContext,
|
||||
mComputedOffsets.right);
|
||||
}
|
||||
|
||||
// When the CSS2 spec refers to direction it means the containing block's
|
||||
// direction and not the direction of the absolutely positioned element itself
|
||||
PRUint8 direction = cbrs->mStyleVisibility->mDirection;
|
||||
PRUint8 direction = mStyleVisibility->mDirection;
|
||||
|
||||
// Initialize the 'width' computed value
|
||||
nsStyleUnit widthUnit = mStylePosition->mWidth.GetUnit();
|
||||
|
||||
@ -981,9 +981,7 @@ nsHTMLReflowState::InitAbsoluteConstraints(nsIPresContext* aPresContext,
|
||||
mComputedOffsets.right);
|
||||
}
|
||||
|
||||
// When the CSS2 spec refers to direction it means the containing block's
|
||||
// direction and not the direction of the absolutely positioned element itself
|
||||
PRUint8 direction = cbrs->mStyleVisibility->mDirection;
|
||||
PRUint8 direction = mStyleVisibility->mDirection;
|
||||
|
||||
// Initialize the 'width' computed value
|
||||
nsStyleUnit widthUnit = mStylePosition->mWidth.GetUnit();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user