summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/tabs/base_tab.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-13 22:35:50 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-13 22:35:50 +0000
commitabffeda32d465d4ccbbdf6d6a3275c1ab03e5434 (patch)
tree8479b7ed52725b5ab58299ff26d26cdb1a2707cb /chrome/browser/views/tabs/base_tab.cc
parent0ff4f5d315a8c17e95fc30fc9983a10a84c627d6 (diff)
downloadchromium_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.cc6
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;