Chromium Code Reviews| Index: ui/gfx/render_text_linux.cc |
| =================================================================== |
| --- ui/gfx/render_text_linux.cc (revision 143588) |
| +++ ui/gfx/render_text_linux.cc (working copy) |
| @@ -100,6 +100,11 @@ |
| return Size(width, height); |
| } |
| +int RenderTextLinux::GetBaseline() { |
| + EnsureLayout(); |
| + return PANGO_PIXELS(pango_layout_get_baseline(layout_)); |
| +} |
| + |
| SelectionModel RenderTextLinux::FindCursorPosition(const Point& point) { |
| EnsureLayout(); |