diff --git a/layout/generic/nsFlexContainerFrame.cpp b/layout/generic/nsFlexContainerFrame.cpp index c5086a2eedd6..0a9b036bc4f1 100644 --- a/layout/generic/nsFlexContainerFrame.cpp +++ b/layout/generic/nsFlexContainerFrame.cpp @@ -8,7 +8,6 @@ /* rendering object for CSS "display: flex" */ #include "nsFlexContainerFrame.h" -#include "nsDisplayList.h" #include "nsLayoutUtils.h" #include "nsPresContext.h" #include "nsStyleContext.h" @@ -981,11 +980,8 @@ nsFlexContainerFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder, nsresult rv = DisplayBorderBackgroundOutline(aBuilder, aLists); NS_ENSURE_SUCCESS(rv, rv); - // Our children are all block-level, so their borders/backgrounds all go on - // the BlockBorderBackgrounds list. - nsDisplayListSet childLists(aLists, aLists.BlockBorderBackgrounds()); for (nsFrameList::Enumerator e(mFrames); !e.AtEnd(); e.Next()) { - rv = BuildDisplayListForChild(aBuilder, e.get(), aDirtyRect, childLists, + rv = BuildDisplayListForChild(aBuilder, e.get(), aDirtyRect, aLists, GetDisplayFlagsForFlexItem(e.get())); NS_ENSURE_SUCCESS(rv, rv); } diff --git a/layout/reftests/flexbox/flexbox-paint-ordering-1-ref.xhtml b/layout/reftests/flexbox/flexbox-paint-ordering-1-ref.xhtml deleted file mode 100644 index 3dbb19356ff8..000000000000 --- a/layout/reftests/flexbox/flexbox-paint-ordering-1-ref.xhtml +++ /dev/null @@ -1,74 +0,0 @@ - - - -
- - - - -