diff options
Diffstat (limited to 'chrome/browser/views/tab_icon_view.cc')
-rw-r--r-- | chrome/browser/views/tab_icon_view.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/views/tab_icon_view.cc b/chrome/browser/views/tab_icon_view.cc index b6358dd..fb2caae 100644 --- a/chrome/browser/views/tab_icon_view.cc +++ b/chrome/browser/views/tab_icon_view.cc @@ -97,10 +97,10 @@ void TabIconView::PaintFavIcon(ChromeCanvas* canvas, const SkBitmap& bitmap) { int bw = bitmap.width(); int bh = bitmap.height(); if (bw <= kFavIconSize && bh <= kFavIconSize) { - canvas->DrawBitmapInt(bitmap, (GetWidth() - kFavIconSize) / 2, - (GetHeight() - kFavIconSize) / 2); + canvas->DrawBitmapInt(bitmap, (width() - kFavIconSize) / 2, + (height() - kFavIconSize) / 2); } else { - canvas->DrawBitmapInt(bitmap, 0, 0, bw, bh, 0, 0, GetWidth(), GetHeight(), + canvas->DrawBitmapInt(bitmap, 0, 0, bw, bh, 0, 0, width(), height(), true); } } |