Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 3338a90

Browse files
author
Otto Länd
committed
Bug 1923763: apply code formatting via Lando
# ignore-this-changeset
1 parent 710642c commit 3338a90

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

layout/generic/ReflowInput.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,8 +1783,8 @@ void ReflowInput::InitAbsoluteConstraints(const ReflowInput* aCBReflowInput,
17831783
if (iEndIsAuto) {
17841784
offsets.IEnd(cbwm) = 0;
17851785
} else {
1786-
offsets.IEnd(cbwm) =
1787-
nsLayoutUtils::ComputeCBDependentValue(cbSize.ISize(cbwm), iEndOffset.AsLengthPercentage());
1786+
offsets.IEnd(cbwm) = nsLayoutUtils::ComputeCBDependentValue(
1787+
cbSize.ISize(cbwm), iEndOffset.AsLengthPercentage());
17881788
}
17891789

17901790
if (iStartIsAuto && iEndIsAuto) {
@@ -1806,8 +1806,8 @@ void ReflowInput::InitAbsoluteConstraints(const ReflowInput* aCBReflowInput,
18061806
if (bEndIsAuto) {
18071807
offsets.BEnd(cbwm) = 0;
18081808
} else {
1809-
offsets.BEnd(cbwm) =
1810-
nsLayoutUtils::ComputeCBDependentValue(cbSize.BSize(cbwm), bEndOffset.AsLengthPercentage());
1809+
offsets.BEnd(cbwm) = nsLayoutUtils::ComputeCBDependentValue(
1810+
cbSize.BSize(cbwm), bEndOffset.AsLengthPercentage());
18111811
}
18121812

18131813
if (bStartIsAuto && bEndIsAuto) {

layout/style/ServoStyleConstsForwards.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ enum class PseudoStyleType : uint8_t;
112112
enum class OriginFlags : uint8_t;
113113
enum class UseBoxSizing : uint8_t;
114114

115-
template<typename L>
115+
template <typename L>
116116
union StyleGenericCalcNode;
117117

118118
namespace css {

layout/style/nsStyleStruct.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,8 @@ nsStylePosition::AnchorResolvedInset nsStylePosition::GetAnchorResolvedInset(
14081408
}
14091409
if (resolved.IsResolvedReference()) {
14101410
const auto* fallback = resolved.AsResolvedReference();
1411-
return AnchorResolvedInset{AnchorResolvedInset::V{LengthPercentageReference{*fallback}}};
1411+
return AnchorResolvedInset{
1412+
AnchorResolvedInset::V{LengthPercentageReference{*fallback}}};
14121413
}
14131414
return AnchorResolvedInset{AnchorResolvedInset::V{resolved.AsResolved()}};
14141415
}
@@ -1421,16 +1422,16 @@ nsStylePosition::AnchorResolvedInset nsStylePosition::GetAnchorResolvedInset(
14211422
}
14221423
if (resolved.IsResolvedReference()) {
14231424
const auto* fallback = resolved.AsResolvedReference();
1424-
return AnchorResolvedInset{AnchorResolvedInset::V{LengthPercentageReference{*fallback}}};
1425+
return AnchorResolvedInset{
1426+
AnchorResolvedInset::V{LengthPercentageReference{*fallback}}};
14251427
}
14261428
return AnchorResolvedInset{AnchorResolvedInset::V{resolved.AsResolved()}};
14271429
}
14281430
}
14291431
}
14301432

14311433
nsStylePosition::AnchorResolvedInset nsStylePosition::GetAnchorResolvedInset(
1432-
LogicalSide aSide, WritingMode aWM,
1433-
StylePositionProperty aPosition) const {
1434+
LogicalSide aSide, WritingMode aWM, StylePositionProperty aPosition) const {
14341435
return GetAnchorResolvedInset(aWM.PhysicalSide(aSide), aPosition);
14351436
}
14361437

@@ -1978,7 +1979,7 @@ bool nsStyleImageLayers::Layer::operator==(const Layer& aOther) const {
19781979
template <class ComputedValueItem>
19791980
static void FillImageLayerList(
19801981
nsStyleAutoArray<nsStyleImageLayers::Layer>& aLayers,
1981-
ComputedValueItem nsStyleImageLayers::Layer::*aResultLocation,
1982+
ComputedValueItem nsStyleImageLayers::Layer::* aResultLocation,
19821983
uint32_t aItemCount, uint32_t aFillCount) {
19831984
MOZ_ASSERT(aFillCount <= aLayers.Length(), "unexpected array length");
19841985
for (uint32_t sourceLayer = 0, destLayer = aItemCount; destLayer < aFillCount;
@@ -1991,7 +1992,7 @@ static void FillImageLayerList(
19911992
// layer.mPosition.*aResultLocation instead of layer.*aResultLocation.
19921993
static void FillImageLayerPositionCoordList(
19931994
nsStyleAutoArray<nsStyleImageLayers::Layer>& aLayers,
1994-
LengthPercentage Position::*aResultLocation, uint32_t aItemCount,
1995+
LengthPercentage Position::* aResultLocation, uint32_t aItemCount,
19951996
uint32_t aFillCount) {
19961997
MOZ_ASSERT(aFillCount <= aLayers.Length(), "unexpected array length");
19971998
for (uint32_t sourceLayer = 0, destLayer = aItemCount; destLayer < aFillCount;

layout/style/nsStyleStruct.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,8 @@ struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStylePosition {
846846
inline bool MaxBSizeDependsOnContainer(WritingMode) const;
847847

848848
struct InsetAuto {};
849-
using LengthPercentageReference = std::reference_wrapper<const mozilla::StyleLengthPercentage>;
849+
using LengthPercentageReference =
850+
std::reference_wrapper<const mozilla::StyleLengthPercentage>;
850851
struct AnchorResolvedInset {
851852
using V = mozilla::Variant<InsetAuto, LengthPercentageReference,
852853
mozilla::StyleLengthPercentage>;

0 commit comments

Comments
 (0)