summaryrefslogtreecommitdiff
path: root/layout/generic
diff options
context:
space:
mode:
Diffstat (limited to 'layout/generic')
-rw-r--r--layout/generic/CSSAlignUtils.cpp2
-rw-r--r--layout/generic/nsFlexContainerFrame.cpp6
-rw-r--r--layout/generic/nsFrame.cpp2
-rw-r--r--layout/generic/nsGridContainerFrame.cpp2
-rw-r--r--layout/generic/nsLineLayout.cpp4
5 files changed, 8 insertions, 8 deletions
diff --git a/layout/generic/CSSAlignUtils.cpp b/layout/generic/CSSAlignUtils.cpp
index 4cbaccd52c..ec993faf1a 100644
--- a/layout/generic/CSSAlignUtils.cpp
+++ b/layout/generic/CSSAlignUtils.cpp
@@ -133,7 +133,7 @@ CSSAlignUtils::AlignJustifySelf(uint8_t aAlignment, LogicalAxis aAxis,
}
break;
case NS_STYLE_ALIGN_STRETCH:
- MOZ_FALLTHROUGH; // ComputeSize() deals with it
+ [[fallthrough]]; // ComputeSize() deals with it
case NS_STYLE_ALIGN_START:
offset = marginStart;
break;
diff --git a/layout/generic/nsFlexContainerFrame.cpp b/layout/generic/nsFlexContainerFrame.cpp
index d60308f424..2fc90e9da9 100644
--- a/layout/generic/nsFlexContainerFrame.cpp
+++ b/layout/generic/nsFlexContainerFrame.cpp
@@ -3012,7 +3012,7 @@ MainAxisPositionTracker::
case NS_STYLE_JUSTIFY_BASELINE:
case NS_STYLE_JUSTIFY_LAST_BASELINE:
NS_WARNING("NYI: justify-content:left/right/baseline/last baseline");
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case NS_STYLE_JUSTIFY_FLEX_START:
// All packing space should go at the end --> nothing to do here.
break;
@@ -3220,7 +3220,7 @@ CrossAxisPositionTracker::
case NS_STYLE_ALIGN_BASELINE:
case NS_STYLE_ALIGN_LAST_BASELINE:
NS_WARNING("NYI: align-items/align-self:left/right/self-start/self-end/baseline/last baseline");
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case NS_STYLE_ALIGN_FLEX_START:
// All packing space should go at the end --> nothing to do here.
break;
@@ -3522,7 +3522,7 @@ SingleLineCrossAxisPositionTracker::
case NS_STYLE_ALIGN_SELF_START:
case NS_STYLE_ALIGN_SELF_END:
NS_WARNING("NYI: align-items/align-self:left/right/self-start/self-end");
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case NS_STYLE_ALIGN_FLEX_START:
// No space to skip over -- we're done.
break;
diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp
index a4d4427f69..0d00a35865 100644
--- a/layout/generic/nsFrame.cpp
+++ b/layout/generic/nsFrame.cpp
@@ -7735,7 +7735,7 @@ nsIFrame::PeekOffset(nsPeekOffsetStruct* aPos)
aPos->mWordMovementType = eEndWord;
}
// Intentionally fall through the eSelectWord case.
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case eSelectWord:
{
// wordSelectEatSpace means "are we looking for a boundary between whitespace
diff --git a/layout/generic/nsGridContainerFrame.cpp b/layout/generic/nsGridContainerFrame.cpp
index 1e1afac234..5cc8189e94 100644
--- a/layout/generic/nsGridContainerFrame.cpp
+++ b/layout/generic/nsGridContainerFrame.cpp
@@ -4938,7 +4938,7 @@ nsGridContainerFrame::Tracks::AlignJustifyContent(
case NS_STYLE_ALIGN_BASELINE:
case NS_STYLE_ALIGN_LAST_BASELINE:
NS_WARNING("NYI: 'first/last baseline' (bug 1151204)"); // XXX
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case NS_STYLE_ALIGN_START:
distribute = false;
break;
diff --git a/layout/generic/nsLineLayout.cpp b/layout/generic/nsLineLayout.cpp
index 579c4ae0b0..90ce6b089f 100644
--- a/layout/generic/nsLineLayout.cpp
+++ b/layout/generic/nsLineLayout.cpp
@@ -3009,7 +3009,7 @@ nsLineLayout::ExpandRubyBox(PerFrameData* aFrame, nscoord aReservedISize,
}
// If there are no justification opportunities for space-between,
// fall-through to center per spec.
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
}
case NS_STYLE_RUBY_ALIGN_CENTER:
// Indent all children by half of the reserved inline size.
@@ -3201,7 +3201,7 @@ nsLineLayout::TextAlignLine(nsLineBox* aLine,
}
// Fall through to the default case if we could not justify to fill
// the space.
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
}
case NS_STYLE_TEXT_ALIGN_START: