Index: ui/gfx/render_text_linux.cc |
diff --git a/ui/gfx/render_text_linux.cc b/ui/gfx/render_text_linux.cc |
index 8700d5d0631bfbbf8cc1395cc1acc7535503ab75..725712e08acb51bba011e73cb5387021edbce1fc 100644 |
--- a/ui/gfx/render_text_linux.cc |
+++ b/ui/gfx/render_text_linux.cc |
@@ -231,8 +231,7 @@ std::vector<Rect> RenderTextLinux::GetSubstringBounds(const ui::Range& range) { |
&ranges, |
&n_ranges); |
- int height = 0; |
- pango_layout_get_pixel_size(layout_, NULL, &height); |
+ const int height = GetStringSize().height(); |
std::vector<Rect> bounds; |
for (int i = 0; i < n_ranges; ++i) { |