summaryrefslogtreecommitdiff
path: root/layout/style/StyleAnimationValue.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/StyleAnimationValue.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/StyleAnimationValue.cpp')
-rw-r--r--layout/style/StyleAnimationValue.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/layout/style/StyleAnimationValue.cpp b/layout/style/StyleAnimationValue.cpp
index 2332de6a6a..199bcf16d5 100644
--- a/layout/style/StyleAnimationValue.cpp
+++ b/layout/style/StyleAnimationValue.cpp
@@ -164,7 +164,7 @@ AppendFunction(nsCSSKeyword aTransformFunction)
break;
default:
NS_ERROR("must be a transform function");
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case eCSSKeyword_translatex:
case eCSSKeyword_translatey:
case eCSSKeyword_translatez:
@@ -2005,7 +2005,7 @@ AddWeightedFilterFunctionImpl(double aCoeff1, const nsCSSValueList* aList1,
case eCSSKeyword_invert:
case eCSSKeyword_sepia:
initialVal = 0.0f;
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case eCSSKeyword_brightness:
case eCSSKeyword_contrast:
case eCSSKeyword_opacity:
@@ -2255,7 +2255,7 @@ AddShapeFunction(nsCSSPropertyID aProperty,
resultFuncArgs->Item(2))) {
return nullptr;
}
- MOZ_FALLTHROUGH; // to handle rx and center point
+ [[fallthrough]]; // to handle rx and center point
case eCSSKeyword_circle: {
// Add circles' |r| (or ellipses' |rx|) values:
if (!AddCSSValuePixelPercentCalc(aRestriction == Restrictions::Enable
@@ -2471,7 +2471,7 @@ AddTransformLists(double aCoeff1, const nsCSSValueList* aList1,
arr->Item(4));
break;
}
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
}
case eCSSKeyword_matrix:
case eCSSKeyword_matrix3d:
@@ -2496,7 +2496,7 @@ AddTransformLists(double aCoeff1, const nsCSSValueList* aList1,
}
break;
}
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case eCSSKeyword_interpolatematrix: {
// FIXME: If the matrix contains only numbers then we could decompose
// here.