| Index: ui/gfx/font.cc
|
| ===================================================================
|
| --- ui/gfx/font.cc (revision 118837)
|
| +++ ui/gfx/font.cc (working copy)
|
| @@ -5,6 +5,7 @@
|
| #include "ui/gfx/font.h"
|
|
|
| #include "base/utf_string_conversions.h"
|
| +#include "ui/gfx/canvas_skia.h"
|
| #include "ui/gfx/platform_font.h"
|
|
|
| namespace gfx {
|
| @@ -59,7 +60,7 @@
|
| }
|
|
|
| int Font::GetStringWidth(const string16& text) const {
|
| - return platform_font_->GetStringWidth(text);
|
| + return CanvasSkia::GetStringWidth(text, *this);
|
| }
|
|
|
| int Font::GetExpectedTextWidth(int length) const {
|
|
|