| Index: ui/gfx/render_text.cc
|
| diff --git a/ui/gfx/render_text.cc b/ui/gfx/render_text.cc
|
| index 6e7fbdad24469926a10a4f425faeeba0e8b7f242..fc8bad161ba30d97809619e18a56736a8315985c 100644
|
| --- a/ui/gfx/render_text.cc
|
| +++ b/ui/gfx/render_text.cc
|
| @@ -644,6 +644,11 @@ VisualCursorDirection RenderText::GetVisualDirectionOfLogicalEnd() {
|
| CURSOR_RIGHT : CURSOR_LEFT;
|
| }
|
|
|
| +SizeF RenderText::GetStringSizeF() {
|
| + const Size size = GetStringSize();
|
| + return SizeF(size.width(), size.height());
|
| +}
|
| +
|
| int RenderText::GetContentWidth() {
|
| return GetStringSize().width() + (cursor_enabled_ ? 1 : 0);
|
| }
|
|
|