diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-10 21:51:32 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-10 21:51:32 +0200 |
commit | 552470fb6f3e7b3028e725e0affc6e4f5550c511 (patch) | |
tree | 7e1f2e857e06ce6f9b57f453d4c3f50f4fc80045 /layout | |
parent | 56103d6756f27bebdbb5d3ef9afe4ab29ac09c11 (diff) | |
download | UXP-552470fb6f3e7b3028e725e0affc6e4f5550c511.tar UXP-552470fb6f3e7b3028e725e0affc6e4f5550c511.tar.gz UXP-552470fb6f3e7b3028e725e0affc6e4f5550c511.tar.lz UXP-552470fb6f3e7b3028e725e0affc6e4f5550c511.tar.xz UXP-552470fb6f3e7b3028e725e0affc6e4f5550c511.zip |
[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.
Diffstat (limited to 'layout')
-rw-r--r-- | layout/generic/nsContainerFrame.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 |