mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 00:11:44 +00:00
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
This commit is contained in:
parent
d5926230f3
commit
0d96d79660
@ -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