summaryrefslogtreecommitdiff
path: root/layout/style/nsCSSParser.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-11-12 20:30:17 +0000
committerMoonchild <moonchild@palemoon.org>2023-11-12 20:30:17 +0000
commitdb4ddc5f6855fdd89cf2af9090f78fb7ebb7f032 (patch)
tree8036ebc434967a0cde3de705a16faea54d117bfd /layout/style/nsCSSParser.cpp
parentc789882a294d29b3e5450a972ad67c4839c75e23 (diff)
parent9c75c8235e13e0f8309b11fa138253350bce0dd5 (diff)
downloaduxp-db4ddc5f6855fdd89cf2af9090f78fb7ebb7f032.tar.gz
Merge pull request 'Replace MOZ_FALLTHROUGH with [[fallthrough]]' (#2379) from 2343-fallthrough-work into master
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2379
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;
}