diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-13 22:35:50 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-13 22:35:50 +0000 |
commit | abffeda32d465d4ccbbdf6d6a3275c1ab03e5434 (patch) | |
tree | 8479b7ed52725b5ab58299ff26d26cdb1a2707cb /chrome/browser/views/tabs/base_tab.cc | |
parent | 0ff4f5d315a8c17e95fc30fc9983a10a84c627d6 (diff) | |
download | chromium_src-abffeda32d465d4ccbbdf6d6a3275c1ab03e5434.zip chromium_src-abffeda32d465d4ccbbdf6d6a3275c1ab03e5434.tar.gz chromium_src-abffeda32d465d4ccbbdf6d6a3275c1ab03e5434.tar.bz2 |
Misc. cleanup: simplify some code, add a few comments
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3143016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56106 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/tabs/base_tab.cc')
-rw-r--r-- | chrome/browser/views/tabs/base_tab.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/views/tabs/base_tab.cc b/chrome/browser/views/tabs/base_tab.cc index 4d89a6a..3d3556a 100644 --- a/chrome/browser/views/tabs/base_tab.cc +++ b/chrome/browser/views/tabs/base_tab.cc @@ -356,10 +356,8 @@ void BaseTab::AdvanceLoadingAnimation(TabRendererData::NetworkState old_state, void BaseTab::PaintIcon(gfx::Canvas* canvas, int x, int y) { if (base::i18n::IsRTL()) { - if (!data().favicon.isNull()) - x = width() - x - data().favicon.width(); - else - x = width() - x - kFavIconSize; + x = width() - x - + (data().favicon.isNull() ? kFavIconSize : data().favicon.width()); } int favicon_x = x; |