| Index: ui/gfx/render_text_win.cc
|
| diff --git a/ui/gfx/render_text_win.cc b/ui/gfx/render_text_win.cc
|
| index 19b2caaee5dcb7d7a5d6de3f93432609a59d7708..646be6a0f1c0011225905ad05a5913fb87802354 100644
|
| --- a/ui/gfx/render_text_win.cc
|
| +++ b/ui/gfx/render_text_win.cc
|
| @@ -658,6 +658,7 @@ SelectionModel RenderTextWin::AdjacentWordSelectionModel(
|
| }
|
|
|
| Range RenderTextWin::GetGlyphBounds(size_t index) {
|
| + 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.
|
|
|