Bug 1550629 - Fix comments mentioning GetAvailableSpace. r=dholbert

GetAvailableSpace was renamed to GetFloatAvailableSpace in bug 25888.

DONTBUILD because this is a comment-only change.

Differential Revision: https://phabricator.services.mozilla.com/D30581

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ting-Yu Lin 2019-05-10 21:06:48 +00:00
Родитель 1338327760
Коммит 8e6b2d246c
4 изменённых файлов: 10 добавлений и 10 удалений

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

@ -214,8 +214,8 @@ static nscoord GetBEndMarginClone(nsIFrame* aFrame,
}
// Compute the amount of available space for reflowing a block frame
// at the current Y coordinate. This method assumes that
// GetAvailableSpace has already been called.
// at the current block-direction coordinate. This method assumes that
// GetFloatAvailableSpace has already been called.
void BlockReflowInput::ComputeBlockAvailSpace(
nsIFrame* aFrame, const nsFlowAreaRect& aFloatAvailableSpace,
bool aBlockAvoidsFloats, LogicalRect& aResult) {

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

@ -212,13 +212,13 @@ class BlockReflowInput {
// Reconstruct the previous block-end margin that goes before |aLine|.
void ReconstructMarginBefore(nsLineList::iterator aLine);
// Caller must have called GetAvailableSpace for the correct position
// Caller must have called GetFloatAvailableSpace for the correct position
// (which need not be the current mBCoord).
void ComputeReplacedBlockOffsetsForFloats(
nsIFrame* aFrame, const mozilla::LogicalRect& aFloatAvailableSpace,
nscoord& aIStartResult, nscoord& aIEndResult) const;
// Caller must have called GetAvailableSpace for the current mBCoord
// Caller must have called GetFloatAvailableSpace for the current mBCoord
void ComputeBlockAvailSpace(nsIFrame* aFrame,
const nsFlowAreaRect& aFloatAvailableSpace,
bool aBlockAvoidsFloats,

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

@ -3511,10 +3511,9 @@ void nsBlockFrame::ReflowBlockFrame(BlockReflowInput& aState,
}
}
// Temporarily advance the running Y value so that the
// GetAvailableSpace method will return the right available
// space. This undone as soon as the horizontal margins are
// computed.
// Temporarily advance the running block-direction value so that the
// GetFloatAvailableSpace method will return the right available space.
// This undone as soon as the horizontal margins are computed.
bStartMargin = aState.mPrevBEndMargin.get();
if (treatWithClearance) {
@ -4265,7 +4264,8 @@ void nsBlockFrame::DoReflowInlineFrames(
aFloatAvailableSpace, aAvailableSpaceBSize,
aKeepReflowGoing)) {
lineReflowStatus = LineReflowStatus::RedoMoreFloats;
// PlaceLine already called GetAvailableSpaceForBSize for us.
// PlaceLine already called GetFloatAvailableSpaceForBSize or its
// variant for us.
}
}
}

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

@ -365,7 +365,7 @@ class nsBlockFrame : public nsContainerFrame {
/**
* Returns the inline size that needs to be cleared past floats for
* blocks that cannot intersect floats. aState must already have
* GetAvailableSpace called on it for the block-dir position that we
* GetFloatAvailableSpace called on it for the block-dir position that we
* care about (which need not be its current mBCoord)
*/
struct ReplacedElementISizeToClear {