Index: ui/gfx/render_text_linux.cc |
diff --git a/ui/gfx/render_text_linux.cc b/ui/gfx/render_text_linux.cc |
index 0bf2686d5e57f6cf595a9b559778f9a93b393c64..0178cf8368ba12f75d7f27d1f3266a1735f07020 100644 |
--- a/ui/gfx/render_text_linux.cc |
+++ b/ui/gfx/render_text_linux.cc |
@@ -235,8 +235,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) { |