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

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
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_));
msw 2012/06/22 17:35:38 Does this need that DIP/Hi-DPI function instead?
Alexei Svitkine (slow) 2012/06/22 17:54:07 It doesn't. There's no plan to do subpixel positio
+}
+
SelectionModel RenderTextLinux::FindCursorPosition(const Point& point) {
EnsureLayout();

Powered by Google App Engine
This is Rietveld 408576698