If script text is in right-to-left directionality, it got truncated because...
If script text is in right-to-left directionality, it got truncated because the width calculated in SizeStringInt() and DrawStringInt() are different since they are passed in different flags. DrawStringInt() was passed in an extra flag DT_RTLREADING through FORCE_RTL_DIRECTIONALITY. Fix by passing in the same flag for size calculation and drawing. BUG=104117 TEST=manual. JS alert a text begins with Hebrew letter followed by a punctuation, such as "A?". It should not be truncated. Review URL: http://codereview.chromium.org/9569025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124736 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment