diff options
Diffstat (limited to 'chrome/views/label.cc')
-rw-r--r-- | chrome/views/label.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/views/label.cc b/chrome/views/label.cc index d918cd5..2f46b34 100644 --- a/chrome/views/label.cc +++ b/chrome/views/label.cc @@ -90,9 +90,7 @@ void Label::Paint(ChromeCanvas* canvas) { if (url_set_) { // TODO(jungshik) : Figure out how to get 'intl.accept_languages' // preference and use it when calling ElideUrl. - paint_text = gfx::ElideUrl(url_, font_, bounds_.right - bounds_.left, - std::wstring()); - + paint_text = gfx::ElideUrl(url_, font_, width(), std::wstring()); // An URLs is always treated as an LTR text and therefore we should // explicitly mark it as such if the locale is RTL so that URLs containing |