summaryrefslogtreecommitdiff
path: root/layout/style
diff options
context:
space:
mode:
Diffstat (limited to 'layout/style')
-rw-r--r--layout/style/CSSLexer.cpp2
-rw-r--r--layout/style/Declaration.cpp6
-rw-r--r--layout/style/StyleAnimationValue.cpp10
-rw-r--r--layout/style/nsCSSParser.cpp20
-rw-r--r--layout/style/nsComputedDOMStyle.cpp2
-rw-r--r--layout/style/nsRuleNode.cpp2
-rw-r--r--layout/style/nsStyleStruct.cpp2
-rw-r--r--layout/style/nsStyleTransformMatrix.cpp2
8 files changed, 23 insertions, 23 deletions
diff --git a/layout/style/CSSLexer.cpp b/layout/style/CSSLexer.cpp
index f465981e7b..a38784a192 100644
--- a/layout/style/CSSLexer.cpp
+++ b/layout/style/CSSLexer.cpp
@@ -125,7 +125,7 @@ CSSLexer::NextToken(Nullable<CSSToken>& aResult)
case eCSSToken_Dimension:
resultToken.mText.Construct(token.mIdent);
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case eCSSToken_Number:
case eCSSToken_Percentage:
resultToken.mNumber.Construct(token.mNumber);
diff --git a/layout/style/Declaration.cpp b/layout/style/Declaration.cpp
index 6ef53f5db1..9a196ef27b 100644
--- a/layout/style/Declaration.cpp
+++ b/layout/style/Declaration.cpp
@@ -770,7 +770,7 @@ Declaration::GetPropertyValueInternal(
}
// tweak aProperty and fall through
aProperty = eCSSProperty_border_top;
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
}
case eCSSProperty_border_top:
case eCSSProperty_border_right:
@@ -1321,7 +1321,7 @@ Declaration::GetPropertyValueInternal(
return;
}
// Fall through to eCSSProperty_grid_template (syntax #1)
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
}
case eCSSProperty_grid_template: {
const nsCSSValue& areasValue =
@@ -1466,7 +1466,7 @@ Declaration::GetPropertyValueInternal(
!justify || !IsSingleValue(*justify)) {
return; // Not serializable, bail.
}
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
}
case eCSSProperty_gap: {
const nsCSSPropertyID* subprops =
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.
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;
}
diff --git a/layout/style/nsComputedDOMStyle.cpp b/layout/style/nsComputedDOMStyle.cpp
index 65f42805de..e3f931ea7e 100644
--- a/layout/style/nsComputedDOMStyle.cpp
+++ b/layout/style/nsComputedDOMStyle.cpp
@@ -4109,7 +4109,7 @@ nsComputedDOMStyle::DoGetTextSizeAdjust()
switch (StyleText()->mTextSizeAdjust) {
default:
NS_NOTREACHED("unexpected value");
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case NS_STYLE_TEXT_SIZE_ADJUST_AUTO:
val->SetIdent(eCSSKeyword_auto);
break;
diff --git a/layout/style/nsRuleNode.cpp b/layout/style/nsRuleNode.cpp
index 858d7feba3..3eea109db6 100644
--- a/layout/style/nsRuleNode.cpp
+++ b/layout/style/nsRuleNode.cpp
@@ -240,7 +240,7 @@ nsRuleNode::EnsureBlockDisplay(StyleDisplay& display,
display = StyleDisplay::Block;
break;
} // else, fall through to share the 'break' for non-changing display vals
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case StyleDisplay::None:
case StyleDisplay::Contents:
// never change display:none or display:contents *ever*
diff --git a/layout/style/nsStyleStruct.cpp b/layout/style/nsStyleStruct.cpp
index e83a6dcf95..f6304fd833 100644
--- a/layout/style/nsStyleStruct.cpp
+++ b/layout/style/nsStyleStruct.cpp
@@ -1287,7 +1287,7 @@ nsStyleSVGPaint::Reset()
case eStyleSVGPaintType_Server:
mPaint.mPaintServer->Release();
mPaint.mPaintServer = nullptr;
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case eStyleSVGPaintType_ContextFill:
case eStyleSVGPaintType_ContextStroke:
mFallbackColor = NS_RGB(0, 0, 0);
diff --git a/layout/style/nsStyleTransformMatrix.cpp b/layout/style/nsStyleTransformMatrix.cpp
index 3cc1667074..3ac6b6b478 100644
--- a/layout/style/nsStyleTransformMatrix.cpp
+++ b/layout/style/nsStyleTransformMatrix.cpp
@@ -639,7 +639,7 @@ MatrixForTransformFunction(Matrix4x4& aMatrix,
break;
case eCSSKeyword_rotatez:
*aContains3dTransform = true;
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case eCSSKeyword_rotate:
ProcessRotateZ(aMatrix, aData);
break;