| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |