mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1236323 - Part 1: Annotate intentional switch fallthroughs to suppress -Wimplicit-fallthrough warnings in gfx/. r=nical
gfx/thebes/gfxFcPlatformFontList.cpp:706:9: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] gfx/thebes/gfxFontconfigFonts.cpp:2183:9: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] gfx/2d/DrawTargetCG.cpp:812:5: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] gfx/2d/DrawTargetCairo.cpp:636:5: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
This commit is contained in:
parent
764e308681
commit
3d522605c3
@ -808,7 +808,7 @@ CreateCGPattern(const Pattern &aPattern, CGAffineTransform aUserSpace)
|
||||
yStep = static_cast<CGFloat>(1 << 22);
|
||||
break;
|
||||
case ExtendMode::REFLECT:
|
||||
assert(0);
|
||||
MOZ_FALLTHROUGH_ASSERT("ExtendMode::REFLECT");
|
||||
case ExtendMode::REPEAT:
|
||||
xStep = static_cast<CGFloat>(CGImageGetWidth(image));
|
||||
yStep = static_cast<CGFloat>(CGImageGetHeight(image));
|
||||
|
@ -644,8 +644,7 @@ DrawTargetCairo::GetType() const
|
||||
|
||||
case CAIRO_SURFACE_TYPE_SKIA:
|
||||
case CAIRO_SURFACE_TYPE_QT:
|
||||
MOZ_ASSERT(false, "Can't determine actual DrawTargetType for DrawTargetCairo - assuming SOFTWARE_RASTER");
|
||||
// fallthrough
|
||||
MOZ_FALLTHROUGH_ASSERT("Can't determine actual DrawTargetType for DrawTargetCairo - assuming SOFTWARE_RASTER");
|
||||
case CAIRO_SURFACE_TYPE_IMAGE:
|
||||
case CAIRO_SURFACE_TYPE_XLIB:
|
||||
case CAIRO_SURFACE_TYPE_XCB:
|
||||
|
@ -703,6 +703,7 @@ PrepareFontOptions(FcPattern* aPattern,
|
||||
// subpixel_order won't be used by the font as we won't use
|
||||
// CAIRO_ANTIALIAS_SUBPIXEL, but don't leave it at default for
|
||||
// caching reasons described above. Fall through:
|
||||
MOZ_FALLTHROUGH;
|
||||
case FC_RGBA_RGB:
|
||||
subpixel_order = CAIRO_SUBPIXEL_ORDER_RGB;
|
||||
break;
|
||||
|
@ -2180,6 +2180,7 @@ CreateScaledFont(FcPattern *aPattern, cairo_font_face_t *aFace)
|
||||
// subpixel_order won't be used by the font as we won't use
|
||||
// CAIRO_ANTIALIAS_SUBPIXEL, but don't leave it at default for
|
||||
// caching reasons described above. Fall through:
|
||||
MOZ_FALLTHROUGH;
|
||||
case FC_RGBA_RGB:
|
||||
subpixel_order = CAIRO_SUBPIXEL_ORDER_RGB;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user