From ece5e7672552eab52a8344029b8ae35c4d06c0e3 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Fri, 10 Apr 2020 21:51:32 +0200 Subject: [PATCH] [layout] Always move descendants of layout frames if moved. If we move the frame then we always need to move any descendant views, not just in case 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 ecd7042510..e2537968cc 100644 --- a/layout/generic/nsContainerFrame.cpp +++ b/layout/generic/nsContainerFrame.cpp @@ -1031,6 +1031,7 @@ nsContainerFrame::ReflowChild(nsIFrame* aKidFrame, if (0 == (aFlags & NS_FRAME_NO_MOVE_VIEW)) { PositionFrameView(aKidFrame); + PositionChildViews(aKidFrame); } // Reflow the child frame @@ -1074,6 +1075,7 @@ nsContainerFrame::ReflowChild(nsIFrame* aKidFrame, if (0 == (aFlags & NS_FRAME_NO_MOVE_VIEW)) { PositionFrameView(aKidFrame); + PositionChildViews(aKidFrame); } // Reflow the child frame