[rAc] [OSX] Ensure that credit card icons are not cut off while entering new card details.

Reserve enough space to fit the largest of the credit card icons, which is
32x20.  The generic card icon is only 25x17.

BUG=327511, 308197
TEST=Open the rAc dialog, enter new billing details, type '4' in the credit card
     number field. A Visa icon should be shown, and this icon should not be cut
     off on the left side (nor on any side, but the left was previously bad).

R=estade@chromium.org

Review URL: https://codereview.chromium.org/99253007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240999 0039d316-1c4b-4281-b951-d872f2087c98
Implement eliding/truncating at end in RenderText
patch from issue 112063003

The eliding is determined using binary search similar to the ElideText
in ui/gfx/text_elider.cc.

The mixed LTR-RTL handling for ellipsis is done using LTR/RTL markers.
There is no other way of rendering the ellipsis with the directionality
of preceding strong-directional characters. Previous scheme worked
because it rendered LTR and RTL sub-strings as different RenderText
instances.

Added helper method to be able to determine directionality of the
trailing text.

Made StringSlicer used by text_elider.cc public to be shared by RenderText.

Additional Fix:
- Call UpdateLayoutText from SetDisplayRect.
- Disable erratic tests on versions of windows older than Vista.

BUG=327833
TEST=ui_unittests,base_unittests
R=msw@chromium.org
TBR=jshin@chromium.org,pkasting@chromium.org

Review URL: https://codereview.chromium.org/107513011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241000 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 241000
BUG=318868
NOTRY=true

Review URL: https://codereview.chromium.org/116343003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241001 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 241001