Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: ui/gfx/render_text_linux.cc

Issue 10591003: Expose GetBaseline() method on RenderText. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/render_text_linux.h ('k') | ui/gfx/render_text_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « ui/gfx/render_text_linux.h ('k') | ui/gfx/render_text_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698