From 9a52b3b852181bc956a97dbff1da68cf8ef415a2 Mon Sep 17 00:00:00 2001 From: wolfbeast <mcwerewolf@wolfbeast.com> 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/generic') diff --git a/layout/generic/nsContainerFrame.cpp b/layout/generic/nsContainerFrame.cpp index da6e6cf79..3ff6c9bf1 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