Commit d4dc578e authored by Nico Weber's avatar Nico Weber Committed by Commit Bot

Work more on getting things built with -Wimplicit-fallthrough.

This CL was uploaded by git cl split.

R=junov@chromium.org

Bug: 177475
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Change-Id: I377f439e850f0b26bc1c50f9bbb1f97a7d7dc8e1
Reviewed-on: https://chromium-review.googlesource.com/890003Reviewed-by: default avatarJustin Novosad <junov@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532904}
parent e990634e
......@@ -117,7 +117,7 @@ void AppliedDecorationPainter::Paint() {
case ETextDecorationStyle::kDotted:
case ETextDecorationStyle::kDashed:
context_.SetShouldAntialias(decoration_info_.antialias);
// Fall through
FALLTHROUGH;
default:
context_.DrawLineForText(start_point_, decoration_info_.width);
......
......@@ -121,6 +121,7 @@ LayoutSize CalculateFillTileSize(const LayoutBoxModelObject& obj,
// If the image has neither an intrinsic width nor an intrinsic height,
// its size is determined as for 'contain'.
type = EFillSizeType::kContain;
FALLTHROUGH;
}
case EFillSizeType::kContain:
case EFillSizeType::kCover: {
......@@ -527,7 +528,7 @@ LayoutRectOutsets BackgroundImageGeometry::ComputeDestRectAdjustment(
switch (fill_layer.Clip()) {
case EFillBox::kContent:
dest_adjust += positioning_box_.PaddingOutsets();
// fall through
FALLTHROUGH;
case EFillBox::kPadding:
dest_adjust += positioning_box_.BorderBoxOutsets();
break;
......
......@@ -345,7 +345,7 @@ void DrawBleedAdjustedDRRect(GraphicsContext& context,
context.FillDRRect(adjusted_outer, inner, color);
break;
}
// fall through
FALLTHROUGH;
default:
context.FillDRRect(outer, inner, color);
break;
......
......@@ -572,12 +572,12 @@ void ObjectPainterBase::DrawLineForBoxSide(GraphicsContext& graphics_context,
// https://bugs.webkit.org/show_bug.cgi?id=58608
if (side == BoxSide::kTop || side == BoxSide::kLeft)
color = color.Dark();
// fall through
FALLTHROUGH;
case EBorderStyle::kOutset:
if (style == EBorderStyle::kOutset &&
(side == BoxSide::kBottom || side == BoxSide::kRight))
color = color.Dark();
// fall through
FALLTHROUGH;
case EBorderStyle::kSolid:
DrawSolidBoxSide(graphics_context, x1, y1, x2, y2, side, color,
adjacent_width1, adjacent_width2, antialias);
......
......@@ -1097,6 +1097,7 @@ void PaintLayerPainter::PaintFragmentWithPhase(
->AncestorClippingMaskLayer();
break;
}
FALLTHROUGH;
default:
clipping_rule = LayerClipRecorder::kIncludeSelfForBorderRadius;
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment