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

Unified Diff: ui/gfx/render_text_win.cc

Issue 25039002: Always aligns text at vertically center (Textfield, Label). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced. Created 7 years, 2 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_win.h ('k') | ui/gfx/text_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text_win.cc
diff --git a/ui/gfx/render_text_win.cc b/ui/gfx/render_text_win.cc
index dfcff0e432d9f35a7c8e9e6852bec2b5a9d7a886..5f159f3000b9f48d4317930aa1cc0e7cec5aeada 100644
--- a/ui/gfx/render_text_win.cc
+++ b/ui/gfx/render_text_win.cc
@@ -492,11 +492,6 @@ Size RenderTextWin::GetStringSize() {
return multiline_string_size_;
}
-int RenderTextWin::GetBaseline() {
- EnsureLayout();
- return lines()[0].baseline;
-}
-
SelectionModel RenderTextWin::FindCursorPosition(const Point& point) {
if (text().empty())
return SelectionModel();
@@ -540,6 +535,11 @@ std::vector<RenderText::FontSpan> RenderTextWin::GetFontSpansForTesting() {
return spans;
}
+int RenderTextWin::GetLayoutTextBaseline() {
+ EnsureLayout();
+ return lines()[0].baseline;
+}
+
SelectionModel RenderTextWin::AdjacentCharSelectionModel(
const SelectionModel& selection,
VisualCursorDirection direction) {
« no previous file with comments | « ui/gfx/render_text_win.h ('k') | ui/gfx/text_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698