diff --git a/layout/base/nsCSSFrameConstructor.cpp b/layout/base/nsCSSFrameConstructor.cpp index f40079102d2e..29486dbc0cff 100644 --- a/layout/base/nsCSSFrameConstructor.cpp +++ b/layout/base/nsCSSFrameConstructor.cpp @@ -3131,9 +3131,9 @@ nsIFrame* nsCSSFrameConstructor::ConstructFieldSetFrame( nsFrameConstructorSaveState absoluteSaveState; nsFrameItems childItems; - contentFrame->AddStateBits(NS_FRAME_CAN_HAVE_ABSPOS_CHILDREN); + contentFrameTop->AddStateBits(NS_FRAME_CAN_HAVE_ABSPOS_CHILDREN); if (absPosContainer) { - aState.PushAbsoluteContainingBlock(contentFrame, absPosContainer, + aState.PushAbsoluteContainingBlock(contentFrameTop, absPosContainer, absoluteSaveState); } diff --git a/layout/reftests/columns/fieldset-columns-001-ref.html b/layout/reftests/columns/fieldset-columns-001-ref.html index 6b4daba6a45f..4c31788a0823 100644 --- a/layout/reftests/columns/fieldset-columns-001-ref.html +++ b/layout/reftests/columns/fieldset-columns-001-ref.html @@ -29,9 +29,9 @@ fieldset { position: relative; } -