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; } -
+
Legend -
+

X

X

X @@ -51,9 +51,9 @@ fieldset {

-
+
Legend -
+

X

X

X diff --git a/layout/reftests/columns/fieldset-columns-002-ref.html b/layout/reftests/columns/fieldset-columns-002-ref.html new file mode 100644 index 000000000000..b522d342bf01 --- /dev/null +++ b/layout/reftests/columns/fieldset-columns-002-ref.html @@ -0,0 +1,23 @@ + + + +

+ Legend
+
+
+ diff --git a/layout/reftests/columns/fieldset-columns-002.html b/layout/reftests/columns/fieldset-columns-002.html new file mode 100644 index 000000000000..661a90caacc0 --- /dev/null +++ b/layout/reftests/columns/fieldset-columns-002.html @@ -0,0 +1,25 @@ + + + +
+ + Legend
+
+
+ diff --git a/layout/reftests/columns/reftest.list b/layout/reftests/columns/reftest.list index dc68413c6746..a73b49c8a8f2 100644 --- a/layout/reftests/columns/reftest.list +++ b/layout/reftests/columns/reftest.list @@ -35,6 +35,7 @@ fuzzy-if(OSX,0-32,0-1000) == columnfill-auto.html columnfill-auto-ref.html == columns-table-caption-000.html columns-table-caption-000-ref.html == positioning-transforms-bug1112501.html positioning-transforms-bug1112501-ref.html fuzzy-if(browserIsRemote&&winWidget,0-142,0-276) == fieldset-columns-001.html fieldset-columns-001-ref.html +== fieldset-columns-002.html fieldset-columns-002-ref.html == dynamic-change-with-overflow-1.html dynamic-change-with-overflow-1-ref.html == dynamic-text-indent-1.html dynamic-text-indent-1-ref.html == dynamic-text-indent-2.html dynamic-text-indent-2-ref.html