summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-04-10 21:51:32 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 13:27:34 +0200
commit9a52b3b852181bc956a97dbff1da68cf8ef415a2 (patch)
tree3b424f812f1f3b4a0ebee1e6a905d048e47eeeb8
parent96afb5250d1d89dbd445c91e45b650dca0c5cb64 (diff)
downloadUXP-9a52b3b852181bc956a97dbff1da68cf8ef415a2.tar
UXP-9a52b3b852181bc956a97dbff1da68cf8ef415a2.tar.gz
UXP-9a52b3b852181bc956a97dbff1da68cf8ef415a2.tar.lz
UXP-9a52b3b852181bc956a97dbff1da68cf8ef415a2.tar.xz
UXP-9a52b3b852181bc956a97dbff1da68cf8ef415a2.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.
-rw-r--r--layout/generic/nsContainerFrame.cpp2
1 files changed, 2 insertions, 0 deletions
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