| OLD | NEW |
| 1 // |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 4 | 5 |
| 5 #include "ui/gfx/render_text.h" | 6 #include "ui/gfx/render_text.h" |
| 6 | 7 |
| 7 #include <limits.h> | 8 #include <limits.h> |
| 8 | 9 |
| 9 #include <algorithm> | 10 #include <algorithm> |
| 10 #include <climits> | 11 #include <climits> |
| (...skipping 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1696 | 1697 |
| 1697 for (; range_max < length; ++range_max) | 1698 for (; range_max < length; ++range_max) |
| 1698 if (iter.IsEndOfWord(range_max) || iter.IsStartOfWord(range_max)) | 1699 if (iter.IsEndOfWord(range_max) || iter.IsStartOfWord(range_max)) |
| 1699 break; | 1700 break; |
| 1700 | 1701 |
| 1701 return range.is_reversed() ? Range(range_max, range_min) | 1702 return range.is_reversed() ? Range(range_max, range_min) |
| 1702 : Range(range_min, range_max); | 1703 : Range(range_min, range_max); |
| 1703 } | 1704 } |
| 1704 | 1705 |
| 1705 } // namespace gfx | 1706 } // namespace gfx |
| OLD | NEW |