214844 relatively positioned block w/ overflow:auto should be absolute pos. containing block

Patch by Mats Palmgren <mats.palmgren@bredband.net>
r+sr=dbaron@dbaron.org
a=asa@mozilla.org
This commit is contained in:
caillon%returnzero.com 2003-08-15 04:43:09 +00:00
Родитель d0a33968c2
Коммит 3092768ca0
2 изменённых файлов: 22 добавлений и 12 удалений

Просмотреть файл

@ -4316,8 +4316,10 @@ nsCSSFrameConstructor::InitializeSelectFrame(nsIPresShell* aPresShell,
// Process children
nsFrameConstructorSaveState absoluteSaveState;
nsFrameItems childItems;
PRBool isPositionedContainingBlock = aIsAbsolutelyPositioned ||
aIsFixedPositioned;
const nsStyleDisplay* display = aStyleContext->GetStyleDisplay();
PRBool isPositionedContainingBlock = aIsAbsolutelyPositioned ||
aIsFixedPositioned ||
display->mPosition == NS_STYLE_POSITION_RELATIVE;
if (isPositionedContainingBlock) {
// The area frame becomes a container for child frames that are
@ -4423,8 +4425,10 @@ nsCSSFrameConstructor::ConstructFieldSetFrame(nsIPresShell* aPresShel
// Process children
nsFrameConstructorSaveState absoluteSaveState;
nsFrameItems childItems;
PRBool isPositionedContainingBlock = aIsAbsolutelyPositioned ||
aIsFixedPositioned;
const nsStyleDisplay* display = aStyleContext->GetStyleDisplay();
PRBool isPositionedContainingBlock = aIsAbsolutelyPositioned ||
aIsFixedPositioned ||
display->mPosition == NS_STYLE_POSITION_RELATIVE;
if (isPositionedContainingBlock) {
// The area frame becomes a container for child frames that are
@ -6197,8 +6201,9 @@ nsCSSFrameConstructor::ConstructFrameByDisplayType(nsIPresShell* aPre
// Process children
nsFrameConstructorSaveState absoluteSaveState;
nsFrameItems childItems;
PRBool isPositionedContainingBlock = isAbsolutelyPositioned ||
isFixedPositioned;
PRBool isPositionedContainingBlock = isAbsolutelyPositioned ||
isFixedPositioned ||
aDisplay->mPosition == NS_STYLE_POSITION_RELATIVE;
if (isPositionedContainingBlock) {
// The area frame becomes a container for child frames that are

Просмотреть файл

@ -4316,8 +4316,10 @@ nsCSSFrameConstructor::InitializeSelectFrame(nsIPresShell* aPresShell,
// Process children
nsFrameConstructorSaveState absoluteSaveState;
nsFrameItems childItems;
PRBool isPositionedContainingBlock = aIsAbsolutelyPositioned ||
aIsFixedPositioned;
const nsStyleDisplay* display = aStyleContext->GetStyleDisplay();
PRBool isPositionedContainingBlock = aIsAbsolutelyPositioned ||
aIsFixedPositioned ||
display->mPosition == NS_STYLE_POSITION_RELATIVE;
if (isPositionedContainingBlock) {
// The area frame becomes a container for child frames that are
@ -4423,8 +4425,10 @@ nsCSSFrameConstructor::ConstructFieldSetFrame(nsIPresShell* aPresShel
// Process children
nsFrameConstructorSaveState absoluteSaveState;
nsFrameItems childItems;
PRBool isPositionedContainingBlock = aIsAbsolutelyPositioned ||
aIsFixedPositioned;
const nsStyleDisplay* display = aStyleContext->GetStyleDisplay();
PRBool isPositionedContainingBlock = aIsAbsolutelyPositioned ||
aIsFixedPositioned ||
display->mPosition == NS_STYLE_POSITION_RELATIVE;
if (isPositionedContainingBlock) {
// The area frame becomes a container for child frames that are
@ -6197,8 +6201,9 @@ nsCSSFrameConstructor::ConstructFrameByDisplayType(nsIPresShell* aPre
// Process children
nsFrameConstructorSaveState absoluteSaveState;
nsFrameItems childItems;
PRBool isPositionedContainingBlock = isAbsolutelyPositioned ||
isFixedPositioned;
PRBool isPositionedContainingBlock = isAbsolutelyPositioned ||
isFixedPositioned ||
aDisplay->mPosition == NS_STYLE_POSITION_RELATIVE;
if (isPositionedContainingBlock) {
// The area frame becomes a container for child frames that are