mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Bug 1582019 Part 1 - Move the comments to make them easier to read. r=dholbert
By looking at the original diff, the comments were placed after the conditions. https://hg.mozilla.org/mozilla-central/diff/854d0d4791411c4733946d366a3824509451ed4f/layout/generic/nsAbsoluteContainingBlock.cpp I place the comments before the conditions, and add blank lines to separate them. This is a preparation because Part 2 is going to add a new condition. Differential Revision: https://phabricator.services.mozilla.com/D49209 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
3c03c8f466
commit
1142a39a2a
@ -727,16 +727,20 @@ void nsAbsoluteContainingBlock::ReflowAbsoluteFrame(
|
||||
|
||||
bool constrainBSize =
|
||||
(aReflowInput.AvailableBSize() != NS_UNCONSTRAINEDSIZE) &&
|
||||
(aFlags & AbsPosReflowFlags::ConstrainHeight) &&
|
||||
|
||||
// Don't split if told not to (e.g. for fixed frames)
|
||||
!aDelegatingFrame->IsInlineFrame() &&
|
||||
(aFlags & AbsPosReflowFlags::ConstrainHeight) &&
|
||||
|
||||
// XXX we don't handle splitting frames for inline absolute containing
|
||||
// blocks yet
|
||||
!aDelegatingFrame->IsInlineFrame() &&
|
||||
|
||||
// Don't split things below the fold. (Ideally we shouldn't *have*
|
||||
// anything totally below the fold, but we can't position frames
|
||||
// across next-in-flow breaks yet.
|
||||
(aKidFrame->GetLogicalRect(aContainingBlock.Size()).BStart(wm) <=
|
||||
aReflowInput.AvailableBSize());
|
||||
// Don't split things below the fold. (Ideally we shouldn't *have*
|
||||
// anything totally below the fold, but we can't position frames
|
||||
// across next-in-flow breaks yet.
|
||||
|
||||
if (constrainBSize) {
|
||||
kidReflowInput.AvailableBSize() =
|
||||
aReflowInput.AvailableBSize() -
|
||||
|
Loading…
Reference in New Issue
Block a user