зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
d5926230f3
Коммит
0d96d79660
|
@ -981,9 +981,7 @@ nsHTMLReflowState::InitAbsoluteConstraints(nsIPresContext* aPresContext,
|
||||||
mComputedOffsets.right);
|
mComputedOffsets.right);
|
||||||
}
|
}
|
||||||
|
|
||||||
// When the CSS2 spec refers to direction it means the containing block's
|
PRUint8 direction = mStyleVisibility->mDirection;
|
||||||
// direction and not the direction of the absolutely positioned element itself
|
|
||||||
PRUint8 direction = cbrs->mStyleVisibility->mDirection;
|
|
||||||
|
|
||||||
// Initialize the 'width' computed value
|
// Initialize the 'width' computed value
|
||||||
nsStyleUnit widthUnit = mStylePosition->mWidth.GetUnit();
|
nsStyleUnit widthUnit = mStylePosition->mWidth.GetUnit();
|
||||||
|
|
|
@ -981,9 +981,7 @@ nsHTMLReflowState::InitAbsoluteConstraints(nsIPresContext* aPresContext,
|
||||||
mComputedOffsets.right);
|
mComputedOffsets.right);
|
||||||
}
|
}
|
||||||
|
|
||||||
// When the CSS2 spec refers to direction it means the containing block's
|
PRUint8 direction = mStyleVisibility->mDirection;
|
||||||
// direction and not the direction of the absolutely positioned element itself
|
|
||||||
PRUint8 direction = cbrs->mStyleVisibility->mDirection;
|
|
||||||
|
|
||||||
// Initialize the 'width' computed value
|
// Initialize the 'width' computed value
|
||||||
nsStyleUnit widthUnit = mStylePosition->mWidth.GetUnit();
|
nsStyleUnit widthUnit = mStylePosition->mWidth.GetUnit();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче