diff options
author | asvitkine@chromium.org <asvitkine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-04 04:40:39 +0000 |
---|---|---|
committer | asvitkine@chromium.org <asvitkine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-04 04:40:39 +0000 |
commit | b13bc310bf2b8ea5085f3a3055ae1053e10f86f1 (patch) | |
tree | 9a39c9f6c68598925db6f949fc822143153f2af2 /ui/gfx/canvas.h | |
parent | 7da6dafb7d9e9e9e8b4cd0f7893afcdd0135b4f5 (diff) | |
download | chromium_src-b13bc310bf2b8ea5085f3a3055ae1053e10f86f1.zip chromium_src-b13bc310bf2b8ea5085f3a3055ae1053e10f86f1.tar.gz chromium_src-b13bc310bf2b8ea5085f3a3055ae1053e10f86f1.tar.bz2 |
Fix eliding of LTR tab title in RTL UI under non-Windows Views.
Use DrawFadeTruncatingString() on non-Windows views platforms too, now
that the implementation is no longer platform specific.
BUG=135058
TEST=Launch chromeos chrome with --lang=he and go to amazon.com.
Check that the tab title is painted LTR and elided (via fade
truncation) on the right end. Now, go to google.com. Verify
that the "Google" string is right-aligned in the tab title.
TBR=sky@chromium.org,xji@chromium.org
R=msw@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10701024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145432 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/canvas.h')
-rw-r--r-- | ui/gfx/canvas.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ui/gfx/canvas.h b/ui/gfx/canvas.h index 1416835..adb72cf 100644 --- a/ui/gfx/canvas.h +++ b/ui/gfx/canvas.h @@ -373,7 +373,6 @@ class UI_EXPORT Canvas { // Apply transformation on the canvas. void Transform(const ui::Transform& transform); -#if defined(OS_WIN) // Draws the given string with the beginning and/or the end using a fade // gradient. When truncating the head // |desired_characters_to_truncate_from_head| specifies the maximum number of @@ -385,7 +384,6 @@ class UI_EXPORT Canvas { const gfx::Font& font, SkColor color, const gfx::Rect& display_rect); -#endif skia::PlatformCanvas* platform_canvas() const { return owned_canvas_.get(); } SkCanvas* sk_canvas() const { return canvas_; } |