summaryrefslogtreecommitdiffstats
path: root/views/controls/image_view.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-10 23:15:21 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-10 23:15:21 +0000
commitc2f4bdb7deec2fe9aaa3583ff2066e634001be8f (patch)
treee1ba425190c39667910ff1c864bdee6afc4bd191 /views/controls/image_view.cc
parent6e76d8d105739f3b40274dd0247a75ea44e46a89 (diff)
downloadchromium_src-c2f4bdb7deec2fe9aaa3583ff2066e634001be8f.zip
chromium_src-c2f4bdb7deec2fe9aaa3583ff2066e634001be8f.tar.gz
chromium_src-c2f4bdb7deec2fe9aaa3583ff2066e634001be8f.tar.bz2
Eliminate View::UILayoutIsRightToLeft() to standardize on base::i18n::IsRTL(). Was only needed for EnableUIMirroringForRTLLanguages(), which was only used by Views::Label, which already had this capability via set_rtl_alignment_mode().
BUG=none TEST=none Review URL: http://codereview.chromium.org/1991002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46869 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/image_view.cc')
-rw-r--r--views/controls/image_view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/controls/image_view.cc b/views/controls/image_view.cc
index 9728332..fe6ad38 100644
--- a/views/controls/image_view.cc
+++ b/views/controls/image_view.cc
@@ -80,7 +80,7 @@ gfx::Point ImageView::ComputeImageOrigin(const gfx::Size& image_size) const {
// horizontal alignment is set to trailing, then we'll use left alignment for
// the image instead of right alignment if the UI layout is RTL.
Alignment actual_horiz_alignment = horiz_alignment_;
- if (UILayoutIsRightToLeft() && (horiz_alignment_ != CENTER))
+ if (base::i18n::IsRTL() && (horiz_alignment_ != CENTER))
actual_horiz_alignment = (horiz_alignment_ == LEADING) ? TRAILING : LEADING;
switch (actual_horiz_alignment) {
case LEADING: x = insets.left(); break;