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

Unified Diff: ui/gfx/text_utils_skia.cc

Issue 24883002: Uses and returns the fractional width in text eliding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch Created 7 years, 3 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/text_utils_skia.cc
diff --git a/ui/gfx/text_utils_skia.cc b/ui/gfx/text_utils_skia.cc
index 0de1156a14b3a5ac2fb1a58916134ecb593bf7fa..ea28f565076692f1f6cdc4ae9c44c8a2e1c4bded 100644
--- a/ui/gfx/text_utils_skia.cc
+++ b/ui/gfx/text_utils_skia.cc
@@ -8,7 +8,7 @@
namespace gfx {
-int GetStringWidth(const base::string16& text, const FontList& font_list) {
+float GetStringWidth(const base::string16& text, const FontList& font_list) {
return Canvas::GetStringWidth(text, font_list);
}

Powered by Google App Engine
This is Rietveld 408576698