summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/bookmark_table_view.cc
diff options
context:
space:
mode:
authorxji@chromium.org <xji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-13 17:00:38 +0000
committerxji@chromium.org <xji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-13 17:00:38 +0000
commit1540cd50af4875ae49a4012015bac43ae17c2258 (patch)
treeab8068efb1ae5efa25b94cd74940b4c888aa328a /chrome/browser/views/bookmark_table_view.cc
parent87e46897bafd1be81f8b1f0c677b125258715002 (diff)
downloadchromium_src-1540cd50af4875ae49a4012015bac43ae17c2258.zip
chromium_src-1540cd50af4875ae49a4012015bac43ae17c2258.tar.gz
chromium_src-1540cd50af4875ae49a4012015bac43ae17c2258.tar.bz2
This CL fixes issue 8684 -- RTL Regression: Text should be right aligned for RTL languages on "Bookmark Manager"
(http://crbug.com/8684) The problem is canvas.DrawStringWithHalo() within BookmarkTableView::PaintAltText() always use left alignment. The fix is to pass the correct canvas text alignment when DrawStringWithHalo(). Test: 1. Run Hebrew Chrome 2. Hit Ctrl + Shift + B go to "Bookmark Manager" dialog 3. Select "Search" 4. Observe Without the fix: Text "Enter a query in the text field above to search your bookmarks" is left aligned With the fix: The above text is right aligned Hebrew Review URL: http://codereview.chromium.org/43146 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11639 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/bookmark_table_view.cc')
-rw-r--r--chrome/browser/views/bookmark_table_view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/views/bookmark_table_view.cc b/chrome/browser/views/bookmark_table_view.cc
index bbd0731..3e82647 100644
--- a/chrome/browser/views/bookmark_table_view.cc
+++ b/chrome/browser/views/bookmark_table_view.cc
@@ -431,7 +431,7 @@ void BookmarkTableView::PaintAltText() {
// Pad by 1 for halo.
canvas.DrawStringWithHalo(alt_text_, font, SK_ColorDKGRAY, SK_ColorWHITE, 1,
1, bounds.width() - 2, bounds.height() - 2,
- ChromeCanvas::TEXT_ALIGN_LEFT);
+ l10n_util::DefaultCanvasTextAlignment());
canvas.getTopPlatformDevice().drawToHDC(dc, bounds.x(), bounds.y(), NULL);
ReleaseDC(GetNativeControlHWND(), dc);
}