Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(860)

Unified Diff: ui/gfx/canvas.h

Issue 10695101: Remove code that forces text directionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove directionality forcing and modes; may be incorrect... Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/gfx/canvas.h
diff --git a/ui/gfx/canvas.h b/ui/gfx/canvas.h
index adb72cf557a02fde789eb47e2e8f90c8e056348c..20c83eb2cb80e4da07d045ea09115c0a748002cb 100644
--- a/ui/gfx/canvas.h
+++ b/ui/gfx/canvas.h
@@ -78,24 +78,10 @@ class UI_EXPORT Canvas {
// This only works with MULTI_LINE.
CHARACTER_BREAK = 1 << 10,
- // Instructs DrawStringInt() to render the text using RTL directionality.
- // In most cases, passing this flag is not necessary because information
- // about the text directionality is going to be embedded within the string
- // in the form of special Unicode characters. However, we don't insert
- // directionality characters into strings if the locale is LTR because some
- // platforms (for example, an English Windows XP with no RTL fonts
- // installed) don't support these characters. Thus, this flag should be
- // used to render text using RTL directionality when the locale is LTR.
- FORCE_RTL_DIRECTIONALITY = 1 << 11,
-
- // Similar to FORCE_RTL_DIRECTIONALITY, but left-to-right.
- // See FORCE_RTL_DIRECTIONALITY for details.
- FORCE_LTR_DIRECTIONALITY = 1 << 12,
-
// Instructs DrawStringInt() to not use subpixel rendering. This is useful
// when rendering text onto a fully- or partially-transparent background
// that will later be blended with another image.
- NO_SUBPIXEL_RENDERING = 1 << 13,
+ NO_SUBPIXEL_RENDERING = 1 << 11,
};
// Creates an empty canvas with scale factor of 1x.

Powered by Google App Engine
This is Rietveld 408576698