| Index: views/controls/label.cc
|
| ===================================================================
|
| --- views/controls/label.cc (revision 50661)
|
| +++ views/controls/label.cc (working copy)
|
| @@ -13,7 +13,7 @@
|
| #include "base/i18n/rtl.h"
|
| #include "base/logging.h"
|
| #include "base/utf_string_conversions.h"
|
| -#include "gfx/canvas.h"
|
| +#include "gfx/canvas_skia.h"
|
| #include "gfx/color_utils.h"
|
| #include "gfx/font.h"
|
| #include "gfx/insets.h"
|
| @@ -67,7 +67,7 @@
|
|
|
| w = std::max(0, w - GetInsets().width());
|
| int h = font_.height();
|
| - gfx::Canvas::SizeStringInt(text_, font_, &w, &h, ComputeMultiLineFlags());
|
| + gfx::CanvasSkia::SizeStringInt(text_, font_, &w, &h, ComputeMultiLineFlags());
|
| return h + GetInsets().height();
|
| }
|
|
|
| @@ -388,7 +388,7 @@
|
| int flags = ComputeMultiLineFlags();
|
| if (!is_multi_line_)
|
| flags |= gfx::Canvas::NO_ELLIPSIS;
|
| - gfx::Canvas::SizeStringInt(text_, font_, &w, &h, flags);
|
| + gfx::CanvasSkia::SizeStringInt(text_, font_, &w, &h, flags);
|
| text_size_.SetSize(w, h);
|
| text_size_valid_ = true;
|
| }
|
|
|