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

Unified Diff: ui/gfx/canvas_skia_linux.cc

Issue 7491083: Implemented nicer battery status (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed unitialized ivars Created 9 years, 4 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/canvas_skia_linux.cc
diff --git a/ui/gfx/canvas_skia_linux.cc b/ui/gfx/canvas_skia_linux.cc
index 17da4fc51dcbae01c727adb0fc31115ae5edc334..7938a7b22bb532a0651064449cde2de8b9bbb278 100644
--- a/ui/gfx/canvas_skia_linux.cc
+++ b/ui/gfx/canvas_skia_linux.cc
@@ -126,6 +126,8 @@ void SetupPangoLayout(PangoLayout* layout,
pango_layout_set_width(layout, width * PANGO_SCALE);
if (flags & gfx::Canvas::TEXT_ALIGN_CENTER) {
+ // We don't support center aligned w/ eliding.
+ DCHECK(gfx::Canvas::NO_ELLIPSIS);
pango_layout_set_alignment(layout, PANGO_ALIGN_CENTER);
} else if (flags & gfx::Canvas::TEXT_ALIGN_RIGHT) {
pango_layout_set_alignment(layout, PANGO_ALIGN_RIGHT);

Powered by Google App Engine
This is Rietveld 408576698