Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(879)

Side by Side Diff: third_party/WebKit/Source/core/page/TouchAdjustment.cpp

Issue 2844223006: Replace ASSERT_NOT_REACHED with NOTREACHED in core/page (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) 2 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies)
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 end_pos = text_layout_object->TextLength(); 216 end_pos = text_layout_object->TextLength();
217 break; 217 break;
218 case SelectionEnd: 218 case SelectionEnd:
219 std::tie(start_pos, end_pos) = text_layout_object->SelectionStartEnd(); 219 std::tie(start_pos, end_pos) = text_layout_object->SelectionStartEnd();
220 start_pos = 0; 220 start_pos = 0;
221 break; 221 break;
222 case SelectionBoth: 222 case SelectionBoth:
223 std::tie(start_pos, end_pos) = text_layout_object->SelectionStartEnd(); 223 std::tie(start_pos, end_pos) = text_layout_object->SelectionStartEnd();
224 break; 224 break;
225 default: 225 default:
226 ASSERT_NOT_REACHED(); 226 NOTREACHED();
227 return; 227 return;
228 } 228 }
229 Vector<FloatQuad> quads; 229 Vector<FloatQuad> quads;
230 text_layout_object->AbsoluteQuadsForRange(quads, start_pos, end_pos); 230 text_layout_object->AbsoluteQuadsForRange(quads, start_pos, end_pos);
231 AppendQuadsToSubtargetList(quads, text_node, subtargets); 231 AppendQuadsToSubtargetList(quads, text_node, subtargets);
232 } 232 }
233 } 233 }
234 234
235 static inline void AppendZoomableSubtargets(Node* node, 235 static inline void AppendZoomableSubtargets(Node* node,
236 SubtargetGeometryList& subtargets) { 236 SubtargetGeometryList& subtargets) {
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 const HeapVector<Member<Node>>& nodes) { 564 const HeapVector<Member<Node>>& nodes) {
565 IntPoint target_point; 565 IntPoint target_point;
566 TouchAdjustment::SubtargetGeometryList subtargets; 566 TouchAdjustment::SubtargetGeometryList subtargets;
567 TouchAdjustment::CompileZoomableSubtargets(nodes, subtargets); 567 TouchAdjustment::CompileZoomableSubtargets(nodes, subtargets);
568 return TouchAdjustment::FindNodeWithLowestDistanceMetric( 568 return TouchAdjustment::FindNodeWithLowestDistanceMetric(
569 target_node, target_point, target_area, touch_hotspot, touch_area, 569 target_node, target_point, target_area, touch_hotspot, touch_area,
570 subtargets, TouchAdjustment::ZoomableIntersectionQuotient); 570 subtargets, TouchAdjustment::ZoomableIntersectionQuotient);
571 } 571 }
572 572
573 } // namespace blink 573 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698