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:
Ting-Yu Lin 2019-10-14 22:43:19 +00:00
Родитель 3c03c8f466
Коммит 1142a39a2a
1 изменённых файлов: 9 добавлений и 5 удалений

Просмотреть файл

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