Commit 08cb5b35 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=svillar@igalia.com

Bug: 177475
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Change-Id: Ie848e8562e5cfac15458e83142bee69df76c4c88
Reviewed-on: https://chromium-review.googlesource.com/889727Reviewed-by: default avatarFredrik Söderquist <fs@opera.com>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532226}
parent a5f699ad
...@@ -227,6 +227,7 @@ WebInputEventResult PageWidgetDelegate::HandleInputEvent( ...@@ -227,6 +227,7 @@ WebInputEventResult PageWidgetDelegate::HandleInputEvent(
case WebInputEvent::kTouchCancel: case WebInputEvent::kTouchCancel:
case WebInputEvent::kTouchScrollStarted: case WebInputEvent::kTouchScrollStarted:
NOTREACHED(); NOTREACHED();
return WebInputEventResult::kNotHandled;
case WebInputEvent::kGesturePinchBegin: case WebInputEvent::kGesturePinchBegin:
case WebInputEvent::kGesturePinchEnd: case WebInputEvent::kGesturePinchEnd:
......
...@@ -216,12 +216,12 @@ bool SVGPathBlender::BlendState::BlendSegments( ...@@ -216,12 +216,12 @@ bool SVGPathBlender::BlendState::BlendSegments(
case kPathSegCurveToCubicAbs: case kPathSegCurveToCubicAbs:
blended_segment.point1 = blended_segment.point1 =
BlendAnimatedFloatPoint(from_seg.point1, to_seg.point1); BlendAnimatedFloatPoint(from_seg.point1, to_seg.point1);
/* fall through */ FALLTHROUGH;
case kPathSegCurveToCubicSmoothRel: case kPathSegCurveToCubicSmoothRel:
case kPathSegCurveToCubicSmoothAbs: case kPathSegCurveToCubicSmoothAbs:
blended_segment.point2 = blended_segment.point2 =
BlendAnimatedFloatPoint(from_seg.point2, to_seg.point2); BlendAnimatedFloatPoint(from_seg.point2, to_seg.point2);
/* fall through */ FALLTHROUGH;
case kPathSegMoveToRel: case kPathSegMoveToRel:
case kPathSegMoveToAbs: case kPathSegMoveToAbs:
case kPathSegLineToRel: case kPathSegLineToRel:
......
...@@ -30,11 +30,11 @@ PathSegmentData SVGPathByteStreamSource::ParseSegment() { ...@@ -30,11 +30,11 @@ PathSegmentData SVGPathByteStreamSource::ParseSegment() {
case kPathSegCurveToCubicRel: case kPathSegCurveToCubicRel:
case kPathSegCurveToCubicAbs: case kPathSegCurveToCubicAbs:
segment.point1 = ReadFloatPoint(); segment.point1 = ReadFloatPoint();
/* fall through */ FALLTHROUGH;
case kPathSegCurveToCubicSmoothRel: case kPathSegCurveToCubicSmoothRel:
case kPathSegCurveToCubicSmoothAbs: case kPathSegCurveToCubicSmoothAbs:
segment.point2 = ReadFloatPoint(); segment.point2 = ReadFloatPoint();
/* fall through */ FALLTHROUGH;
case kPathSegMoveToRel: case kPathSegMoveToRel:
case kPathSegMoveToAbs: case kPathSegMoveToAbs:
case kPathSegLineToRel: case kPathSegLineToRel:
......
...@@ -67,10 +67,10 @@ void SVGPathNormalizer::EmitSegment(const PathSegmentData& segment) { ...@@ -67,10 +67,10 @@ void SVGPathNormalizer::EmitSegment(const PathSegmentData& segment) {
break; break;
case kPathSegCurveToCubicRel: case kPathSegCurveToCubicRel:
norm_seg.point1 += current_point_; norm_seg.point1 += current_point_;
/* fall through */ FALLTHROUGH;
case kPathSegCurveToCubicSmoothRel: case kPathSegCurveToCubicSmoothRel:
norm_seg.point2 += current_point_; norm_seg.point2 += current_point_;
/* fall through */ FALLTHROUGH;
case kPathSegMoveToRel: case kPathSegMoveToRel:
case kPathSegLineToRel: case kPathSegLineToRel:
case kPathSegLineToHorizontalRel: case kPathSegLineToHorizontalRel:
...@@ -118,7 +118,7 @@ void SVGPathNormalizer::EmitSegment(const PathSegmentData& segment) { ...@@ -118,7 +118,7 @@ void SVGPathNormalizer::EmitSegment(const PathSegmentData& segment) {
norm_seg.point1 = current_point_; norm_seg.point1 = current_point_;
else else
norm_seg.point1 = ReflectedPoint(current_point_, control_point_); norm_seg.point1 = ReflectedPoint(current_point_, control_point_);
/* fall through */ FALLTHROUGH;
case kPathSegCurveToCubicRel: case kPathSegCurveToCubicRel:
case kPathSegCurveToCubicAbs: case kPathSegCurveToCubicAbs:
control_point_ = norm_seg.point2; control_point_ = norm_seg.point2;
...@@ -130,7 +130,7 @@ void SVGPathNormalizer::EmitSegment(const PathSegmentData& segment) { ...@@ -130,7 +130,7 @@ void SVGPathNormalizer::EmitSegment(const PathSegmentData& segment) {
norm_seg.point1 = current_point_; norm_seg.point1 = current_point_;
else else
norm_seg.point1 = ReflectedPoint(current_point_, control_point_); norm_seg.point1 = ReflectedPoint(current_point_, control_point_);
/* fall through */ FALLTHROUGH;
case kPathSegCurveToQuadraticRel: case kPathSegCurveToQuadraticRel:
case kPathSegCurveToQuadraticAbs: case kPathSegCurveToQuadraticAbs:
// Save the unmodified control point. // Save the unmodified control point.
......
...@@ -316,7 +316,7 @@ bool SMILTimeContainer::HandleAnimationPolicy( ...@@ -316,7 +316,7 @@ bool SMILTimeContainer::HandleAnimationPolicy(
case kRestartOnceTimerIfNotPaused: case kRestartOnceTimerIfNotPaused:
if (IsPaused()) if (IsPaused())
break; break;
/* fall through */ FALLTHROUGH;
case kRestartOnceTimer: case kRestartOnceTimer:
ScheduleAnimationPolicyTimer(); ScheduleAnimationPolicyTimer();
break; 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