зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1609847 - Remove "Get" prefix for methods in PositionTracker. r=dholbert
This patch is generated by the following script and clang-format. ``` #!/bin/bash function rename() { echo "Renaming $1 to $2" rg -l "$1" layout/generic/nsFlexContainerFrame.cpp | xargs sed -i -e "s/$1/$2/g" } # Names in PositionTracker rename "GetPosition" "Position" rename "GetAxis" "Axis" ``` Depends on D60800 Differential Revision: https://phabricator.services.mozilla.com/D60801 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
11a2a5fc57
Коммит
1f2910674e
|
@ -2160,8 +2160,8 @@ bool FlexItem::CanMainSizeInfluenceCrossSize(
|
|||
class MOZ_STACK_CLASS PositionTracker {
|
||||
public:
|
||||
// Accessor for the current value of the position that we're tracking.
|
||||
inline nscoord GetPosition() const { return mPosition; }
|
||||
inline LogicalAxis GetAxis() const { return mAxis; }
|
||||
inline nscoord Position() const { return mPosition; }
|
||||
inline LogicalAxis Axis() const { return mAxis; }
|
||||
|
||||
inline LogicalSide StartSide() {
|
||||
return MakeLogicalSide(
|
||||
|
@ -4057,7 +4057,7 @@ void FlexLine::PositionItemsInMainAxis(uint8_t aJustifyContent,
|
|||
mainAxisPosnTracker.EnterMargin(item->Margin());
|
||||
mainAxisPosnTracker.EnterChildFrame(itemMainBorderBoxSize);
|
||||
|
||||
item->SetMainPosition(mainAxisPosnTracker.GetPosition());
|
||||
item->SetMainPosition(mainAxisPosnTracker.Position());
|
||||
|
||||
mainAxisPosnTracker.ExitChildFrame(itemMainBorderBoxSize);
|
||||
mainAxisPosnTracker.ExitMargin(item->Margin());
|
||||
|
@ -4157,7 +4157,7 @@ void FlexLine::PositionItemsInCrossAxis(
|
|||
lineCrossAxisPosnTracker.EnterChildFrame(itemCrossBorderBoxSize);
|
||||
|
||||
item->SetCrossPosition(aLineStartPosition +
|
||||
lineCrossAxisPosnTracker.GetPosition());
|
||||
lineCrossAxisPosnTracker.Position());
|
||||
|
||||
// Back out to cross-axis edge of the line.
|
||||
lineCrossAxisPosnTracker.ResetPosition();
|
||||
|
@ -4721,7 +4721,7 @@ void nsFlexContainerFrame::DoFlexLayout(
|
|||
flexContainerAscent = nscoord_MIN;
|
||||
} else {
|
||||
flexContainerAscent = ComputePhysicalAscentFromFlexRelativeAscent(
|
||||
crossAxisPosnTracker.GetPosition() + firstLineBaselineOffset,
|
||||
crossAxisPosnTracker.Position() + firstLineBaselineOffset,
|
||||
contentBoxCrossSize, aReflowInput, aAxisTracker);
|
||||
}
|
||||
}
|
||||
|
@ -4761,12 +4761,12 @@ void nsFlexContainerFrame::DoFlexLayout(
|
|||
// See if we need to extract some computed info for this line.
|
||||
if (MOZ_UNLIKELY(containerInfo)) {
|
||||
ComputedFlexLineInfo& lineInfo = containerInfo->mLines[lineIndex];
|
||||
lineInfo.mCrossStart = crossAxisPosnTracker.GetPosition();
|
||||
lineInfo.mCrossStart = crossAxisPosnTracker.Position();
|
||||
}
|
||||
|
||||
// Cross-Axis Alignment - Flexbox spec section 9.6
|
||||
// ===============================================
|
||||
line->PositionItemsInCrossAxis(crossAxisPosnTracker.GetPosition(),
|
||||
line->PositionItemsInCrossAxis(crossAxisPosnTracker.Position(),
|
||||
aAxisTracker);
|
||||
crossAxisPosnTracker.TraverseLine(*line);
|
||||
crossAxisPosnTracker.TraversePackingSpace();
|
||||
|
@ -4788,7 +4788,7 @@ void nsFlexContainerFrame::DoFlexLayout(
|
|||
flexContainerAscent = nscoord_MIN;
|
||||
} else {
|
||||
flexContainerAscent = ComputePhysicalAscentFromFlexRelativeAscent(
|
||||
crossAxisPosnTracker.GetPosition() - lastLineBaselineOffset,
|
||||
crossAxisPosnTracker.Position() - lastLineBaselineOffset,
|
||||
contentBoxCrossSize, aReflowInput, aAxisTracker);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче