Chromium Code Reviews| Index: ui/gfx/render_text_harfbuzz.cc |
| diff --git a/ui/gfx/render_text_harfbuzz.cc b/ui/gfx/render_text_harfbuzz.cc |
| index 2fcf15711ff551377b09f42c903f9688eac29a5c..2977355991e3d443f3766066b7317981bcb588f0 100644 |
| --- a/ui/gfx/render_text_harfbuzz.cc |
| +++ b/ui/gfx/render_text_harfbuzz.cc |
| @@ -632,6 +632,7 @@ SelectionModel RenderTextHarfBuzz::AdjacentWordSelectionModel( |
| } |
| Range RenderTextHarfBuzz::GetGlyphBounds(size_t index) { |
|
msw
2014/07/26 02:54:14
nit: reorder this definition to match its declarat
ckocagil
2014/07/26 03:55:59
Done.
|
| + EnsureLayout(); |
| const size_t run_index = |
| GetRunContainingCaret(SelectionModel(index, CURSOR_FORWARD)); |
| // Return edge bounds if the index is invalid or beyond the layout text size. |