summaryrefslogtreecommitdiff
path: root/layout/style/nsCSSParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layout/style/nsCSSParser.cpp')
-rw-r--r--layout/style/nsCSSParser.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/layout/style/nsCSSParser.cpp b/layout/style/nsCSSParser.cpp
index f66415ea9e..2469536ad5 100644
--- a/layout/style/nsCSSParser.cpp
+++ b/layout/style/nsCSSParser.cpp
@@ -4580,7 +4580,7 @@ CSSParserImpl::ParseKeyframeSelectorList(InfallibleTArray<float>& aSelectorList)
value = 1.0f;
break;
}
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
default:
UngetToken();
// The first time through the loop, this means we got an empty
@@ -10759,7 +10759,7 @@ CSSParserImpl::IsLegacyGradientLine(const nsCSSTokenType& aType,
haveGradientLine = true;
break;
}
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case eCSSToken_ID:
case eCSSToken_Hash:
// this is a color
@@ -11442,10 +11442,10 @@ CSSParserImpl::ParseBoxProperties(const nsCSSPropertyID aPropIDs[])
switch (count) {
case 1: // Make right == top
result.mRight = result.mTop;
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case 2: // Make bottom == top
result.mBottom = result.mTop;
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case 3: // Make left == right
result.mLeft = result.mRight;
}
@@ -11488,10 +11488,10 @@ CSSParserImpl::ParseGroupedBoxProperty(int32_t aVariantMask,
switch (count) {
case 1: // Make right == top
result.mRight = result.mTop;
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case 2: // Make bottom == top
result.mBottom = result.mTop;
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case 3: // Make left == right
result.mLeft = result.mRight;
}
@@ -11589,10 +11589,10 @@ CSSParserImpl::ParseBoxCornerRadiiInternals(nsCSSValue array[])
switch (countX) {
case 1: // Make top-right same as top-left
dimenX.mRight = dimenX.mTop;
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case 2: // Make bottom-right same as top-left
dimenX.mBottom = dimenX.mTop;
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case 3: // Make bottom-left same as top-right
dimenX.mLeft = dimenX.mRight;
}
@@ -11600,10 +11600,10 @@ CSSParserImpl::ParseBoxCornerRadiiInternals(nsCSSValue array[])
switch (countY) {
case 1: // Make top-right same as top-left
dimenY.mRight = dimenY.mTop;
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case 2: // Make bottom-right same as top-left
dimenY.mBottom = dimenY.mTop;
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case 3: // Make bottom-left same as top-right
dimenY.mLeft = dimenY.mRight;
}