mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
Bug 1240260 - Annotate intentional switch fallthroughs in dom/smil/ and dom/svg/. r=dholbert
dom/smil/nsSMILParserUtils.cpp:191:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels dom/svg/SVGPathSegListSMILType.cpp:356:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels dom/svg/SVGPathSegListSMILType.cpp:364:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels dom/svg/SVGTransformListParser.cpp:147:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels dom/svg/SVGTransformListParser.cpp:175:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels dom/svg/SVGTransformListParser.cpp:204:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
This commit is contained in:
parent
5917f00a73
commit
25feb9688d
@ -187,7 +187,7 @@ ParseClockValue(RangedPtr<const char16_t>& aIter,
|
||||
!ParseColon(iter, aEnd)) {
|
||||
return false;
|
||||
}
|
||||
// intentional fall through
|
||||
MOZ_FALLTHROUGH;
|
||||
case PARTIAL_CLOCK_VALUE:
|
||||
if (!ParseSecondsOrMinutes(iter, aEnd, minutes) ||
|
||||
!ParseColon(iter, aEnd) ||
|
||||
|
@ -352,7 +352,7 @@ ConvertPathSegmentData(SVGPathDataAndInfo::const_iterator& aStart,
|
||||
aResult[5] = aStart[5];
|
||||
aResult[6] = aStart[6];
|
||||
AdjustSegmentForRelativeness(adjustmentType, aResult + 5, aState);
|
||||
// fall through
|
||||
MOZ_FALLTHROUGH;
|
||||
case PATHSEG_CURVETO_QUADRATIC_ABS:
|
||||
case PATHSEG_CURVETO_QUADRATIC_REL:
|
||||
case PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:
|
||||
@ -360,7 +360,7 @@ ConvertPathSegmentData(SVGPathDataAndInfo::const_iterator& aStart,
|
||||
aResult[3] = aStart[3];
|
||||
aResult[4] = aStart[4];
|
||||
AdjustSegmentForRelativeness(adjustmentType, aResult + 3, aState);
|
||||
// fall through
|
||||
MOZ_FALLTHROUGH;
|
||||
case PATHSEG_MOVETO_ABS:
|
||||
case PATHSEG_MOVETO_REL:
|
||||
case PATHSEG_LINETO_ABS:
|
||||
|
@ -143,7 +143,7 @@ SVGTransformListParser::ParseTranslate()
|
||||
switch (count) {
|
||||
case 1:
|
||||
t[1] = 0.f;
|
||||
// fall-through
|
||||
MOZ_FALLTHROUGH;
|
||||
case 2:
|
||||
{
|
||||
nsSVGTransform* transform = mTransforms.AppendElement(fallible);
|
||||
@ -171,7 +171,7 @@ SVGTransformListParser::ParseScale()
|
||||
switch (count) {
|
||||
case 1:
|
||||
s[1] = s[0];
|
||||
// fall-through
|
||||
MOZ_FALLTHROUGH;
|
||||
case 2:
|
||||
{
|
||||
nsSVGTransform* transform = mTransforms.AppendElement(fallible);
|
||||
@ -200,7 +200,7 @@ SVGTransformListParser::ParseRotate()
|
||||
switch (count) {
|
||||
case 1:
|
||||
r[1] = r[2] = 0.f;
|
||||
// fall-through
|
||||
MOZ_FALLTHROUGH;
|
||||
case 3:
|
||||
{
|
||||
nsSVGTransform* transform = mTransforms.AppendElement(fallible);
|
||||
|
Loading…
Reference in New Issue
Block a user