Commit 8ebd473d authored by pilgrim's avatar pilgrim Committed by Commit bot

Replace ASSERT_NOT_REACHED with NOTREACHED in core/page

BUG=707642

Review-Url: https://codereview.chromium.org/2844223006
Cr-Commit-Position: refs/heads/master@{#468058}
parent 8d649cc1
...@@ -42,7 +42,7 @@ String PageVisibilityStateString(PageVisibilityState state) { ...@@ -42,7 +42,7 @@ String PageVisibilityStateString(PageVisibilityState state) {
return "prerender"; return "prerender";
} }
ASSERT_NOT_REACHED(); NOTREACHED();
return String(); return String();
} }
......
...@@ -102,7 +102,7 @@ static bool RectsIntersectOnOrthogonalAxis(WebFocusType type, ...@@ -102,7 +102,7 @@ static bool RectsIntersectOnOrthogonalAxis(WebFocusType type,
case kWebFocusTypeDown: case kWebFocusTypeDown:
return a.MaxX() > b.X() && a.X() < b.MaxX(); return a.MaxX() > b.X() && a.X() < b.MaxX();
default: default:
ASSERT_NOT_REACHED(); NOTREACHED();
return false; return false;
} }
} }
...@@ -136,7 +136,7 @@ static bool IsRectInDirection(WebFocusType type, ...@@ -136,7 +136,7 @@ static bool IsRectInDirection(WebFocusType type,
case kWebFocusTypeDown: case kWebFocusTypeDown:
return Below(target_rect, cur_rect); return Below(target_rect, cur_rect);
default: default:
ASSERT_NOT_REACHED(); NOTREACHED();
return false; return false;
} }
} }
...@@ -219,7 +219,7 @@ bool ScrollInDirection(LocalFrame* frame, WebFocusType type) { ...@@ -219,7 +219,7 @@ bool ScrollInDirection(LocalFrame* frame, WebFocusType type) {
dy = pixels_per_line_step; dy = pixels_per_line_step;
break; break;
default: default:
ASSERT_NOT_REACHED(); NOTREACHED();
return false; return false;
} }
...@@ -264,7 +264,7 @@ bool ScrollInDirection(Node* container, WebFocusType type) { ...@@ -264,7 +264,7 @@ bool ScrollInDirection(Node* container, WebFocusType type) {
dy = pixels_per_line_step; dy = pixels_per_line_step;
break; break;
default: default:
ASSERT_NOT_REACHED(); NOTREACHED();
return false; return false;
} }
...@@ -351,7 +351,7 @@ bool CanScrollInDirection(const Node* container, WebFocusType type) { ...@@ -351,7 +351,7 @@ bool CanScrollInDirection(const Node* container, WebFocusType type) {
container->GetLayoutBox()->ClientHeight() < container->GetLayoutBox()->ClientHeight() <
container->GetLayoutBox()->ScrollHeight()); container->GetLayoutBox()->ScrollHeight());
default: default:
ASSERT_NOT_REACHED(); NOTREACHED();
return false; return false;
} }
} }
...@@ -382,7 +382,7 @@ bool CanScrollInDirection(const LocalFrame* frame, WebFocusType type) { ...@@ -382,7 +382,7 @@ bool CanScrollInDirection(const LocalFrame* frame, WebFocusType type) {
case kWebFocusTypeDown: case kWebFocusTypeDown:
return rect.Height() + offset.Height() < size.Height(); return rect.Height() + offset.Height() < size.Height();
default: default:
ASSERT_NOT_REACHED(); NOTREACHED();
return false; return false;
} }
} }
...@@ -475,7 +475,7 @@ void EntryAndExitPointsForDirection(WebFocusType type, ...@@ -475,7 +475,7 @@ void EntryAndExitPointsForDirection(WebFocusType type,
entry_point.SetY(starting_rect.MaxY()); entry_point.SetY(starting_rect.MaxY());
break; break;
default: default:
ASSERT_NOT_REACHED(); NOTREACHED();
} }
switch (type) { switch (type) {
...@@ -518,7 +518,7 @@ void EntryAndExitPointsForDirection(WebFocusType type, ...@@ -518,7 +518,7 @@ void EntryAndExitPointsForDirection(WebFocusType type,
} }
break; break;
default: default:
ASSERT_NOT_REACHED(); NOTREACHED();
} }
} }
...@@ -607,7 +607,7 @@ void DistanceDataForNode(WebFocusType type, ...@@ -607,7 +607,7 @@ void DistanceDataForNode(WebFocusType type,
(x_axis + orthogonal_bias) * kOrthogonalWeightForUpDown; (x_axis + orthogonal_bias) * kOrthogonalWeightForUpDown;
break; break;
default: default:
ASSERT_NOT_REACHED(); NOTREACHED();
return; return;
} }
...@@ -668,7 +668,7 @@ LayoutRect VirtualRectForDirection(WebFocusType type, ...@@ -668,7 +668,7 @@ LayoutRect VirtualRectForDirection(WebFocusType type,
virtual_starting_rect.SetHeight(width); virtual_starting_rect.SetHeight(width);
break; break;
default: default:
ASSERT_NOT_REACHED(); NOTREACHED();
} }
return virtual_starting_rect; return virtual_starting_rect;
......
...@@ -223,7 +223,7 @@ static inline void AppendContextSubtargetsForNode( ...@@ -223,7 +223,7 @@ static inline void AppendContextSubtargetsForNode(
std::tie(start_pos, end_pos) = text_layout_object->SelectionStartEnd(); std::tie(start_pos, end_pos) = text_layout_object->SelectionStartEnd();
break; break;
default: default:
ASSERT_NOT_REACHED(); NOTREACHED();
return; return;
} }
Vector<FloatQuad> quads; Vector<FloatQuad> quads;
......
...@@ -21,7 +21,7 @@ WebNativeScrollBehavior ScrollStateCallback::ToNativeScrollBehavior( ...@@ -21,7 +21,7 @@ WebNativeScrollBehavior ScrollStateCallback::ToNativeScrollBehavior(
if (native_scroll_behavior == kAfter) if (native_scroll_behavior == kAfter)
return WebNativeScrollBehavior::kPerformAfterNativeScroll; return WebNativeScrollBehavior::kPerformAfterNativeScroll;
ASSERT_NOT_REACHED(); NOTREACHED();
return WebNativeScrollBehavior::kDisableNativeScroll; return WebNativeScrollBehavior::kDisableNativeScroll;
} }
......
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