[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.
This commit is contained in:
wolfbeast 2020-04-10 21:51:32 +02:00 committed by Roy Tam
commit ece5e76725

View file

@ -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