From 552470fb6f3e7b3028e725e0affc6e4f5550c511 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Fri, 10 Apr 2020 21:51:32 +0200 Subject: [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(+) (limited to 'layout') diff --git a/layout/generic/nsContainerFrame.cpp b/layout/generic/nsContainerFrame.cpp index ecd704251..e2537968c 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 -- cgit v1.2.3