summaryrefslogtreecommitdiffstats
path: root/views/controls/table/native_table_win.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/table/native_table_win.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/table/native_table_win.cc')
-rw-r--r--views/controls/table/native_table_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/controls/table/native_table_win.cc b/views/controls/table/native_table_win.cc
index 22ca250..d34856f 100644
--- a/views/controls/table/native_table_win.cc
+++ b/views/controls/table/native_table_win.cc
@@ -670,7 +670,7 @@ LRESULT CALLBACK NativeTableWin::TableWndProc(HWND window,
//
// As a work around this uses the position of the cursor and ignores
// the position supplied in the l_param.
- if (table->UILayoutIsRightToLeft() &&
+ if (base::i18n::IsRTL() &&
(GET_X_LPARAM(l_param) != -1 || GET_Y_LPARAM(l_param) != -1)) {
POINT screen_point;
GetCursorPos(&screen_point);