summaryrefslogtreecommitdiffstats
path: root/layout/generic/nsFrame.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-11-03 19:09:47 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-11-03 19:09:47 +0100
commitce11d5cae866f24b8f7435cdc3725cfd2748595b (patch)
treec503edc95b12a46ee9e01427861aba8743d88212 /layout/generic/nsFrame.cpp
parentf1b043af1dd09b2a5235ee88be9a5b547697fa5b (diff)
downloadUXP-ce11d5cae866f24b8f7435cdc3725cfd2748595b.tar
UXP-ce11d5cae866f24b8f7435cdc3725cfd2748595b.tar.gz
UXP-ce11d5cae866f24b8f7435cdc3725cfd2748595b.tar.lz
UXP-ce11d5cae866f24b8f7435cdc3725cfd2748595b.tar.xz
UXP-ce11d5cae866f24b8f7435cdc3725cfd2748595b.zip
Issue #146 - Part 5: Treat table row groups as containing blocks.
This aligns our behavior with Gecko/Blink.
Diffstat (limited to 'layout/generic/nsFrame.cpp')
-rw-r--r--layout/generic/nsFrame.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp
index a531dea07..d4bcf22ed 100644
--- a/layout/generic/nsFrame.cpp
+++ b/layout/generic/nsFrame.cpp
@@ -6629,6 +6629,9 @@ GetNearestBlockContainer(nsIFrame* frame)
// Since the parent of such a block is either a normal block or
// another such pseudo, this shouldn't cause anything bad to happen.
// Also the anonymous blocks inside table cells are not containing blocks.
+ //
+ // If we ever start skipping table row groups from being containing blocks,
+ // we need to remove the containing block assignment in StickyScrollContainer .
while (frame->IsFrameOfType(nsIFrame::eLineParticipant) ||
frame->IsBlockWrapper() ||
// Table rows are not containing blocks either