From 4bb75904c624e0ac0dee03c3431552d26d24a32e Mon Sep 17 00:00:00 2001 From: Timothy Nikkel Date: Tue, 20 Dec 2016 13:49:32 -0600 Subject: [PATCH] Bug 1322257. Always position child views in nsContainerFrame::ReflowChild. r=dholbert If we move the frame then we need to move any descendant views, not just if the frame itself has a view. --- layout/generic/nsContainerFrame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layout/generic/nsContainerFrame.cpp b/layout/generic/nsContainerFrame.cpp index a0813019d45b..0788a751829b 100644 --- a/layout/generic/nsContainerFrame.cpp +++ b/layout/generic/nsContainerFrame.cpp @@ -1021,6 +1021,7 @@ nsContainerFrame::ReflowChild(nsIFrame* aKidFrame, if (0 == (aFlags & NS_FRAME_NO_MOVE_VIEW)) { PositionFrameView(aKidFrame); + PositionChildViews(aKidFrame); } // Reflow the child frame @@ -1064,6 +1065,7 @@ nsContainerFrame::ReflowChild(nsIFrame* aKidFrame, if (0 == (aFlags & NS_FRAME_NO_MOVE_VIEW)) { PositionFrameView(aKidFrame); + PositionChildViews(aKidFrame); } // Reflow the child frame