diff options
Diffstat (limited to 'chrome/views')
-rw-r--r-- | chrome/views/label.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/views/label.cc b/chrome/views/label.cc index ed8de0f..27f30d2 100644 --- a/chrome/views/label.cc +++ b/chrome/views/label.cc @@ -53,9 +53,8 @@ Label::~Label() { gfx::Size Label::GetPreferredSize() { gfx::Size prefsize; if (is_multi_line_) { - ChromeCanvas cc(0, 0, true); int w = width(), h = 0; - cc.SizeStringInt(text_, font_, &w, &h, ComputeMultiLineFlags()); + ChromeCanvas::SizeStringInt(text_, font_, &w, &h, ComputeMultiLineFlags()); prefsize.SetSize(w, h); } else { prefsize = GetTextSize(); |