Cleanup unnecessary code in canvas_skia
commit7410ba7817276da208e2794bae934bebbc8e9ab8
authoroshima <oshima@chromium.org>
Thu, 5 Mar 2015 00:08:38 +0000 (4 16:08 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 5 Mar 2015 00:09:18 +0000 (5 00:09 +0000)
treef1c28b4609f22020145c266471c4319b71513197
parent78d4c037b6fbf327849a8e730a92bcf692c153fb
Cleanup unnecessary code in canvas_skia

* Removed AdjustStringDirection()
* Removed FORCE_XXXX_DIRECTIONALITY and replace with TEXT_ALIGN_TO_HEAD. This is necessary not to use Canvas::DefaultCanvasTextAlignment for labels.
* Also removed the safe guard in SizeStringFloat because RenderTextWin has been removed.

BUG=None
TEST=No functional change. Removed LabelTest, DirectionalityFromText that no longer makes sense.
R=msw@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#319166}
ui/gfx/canvas.h
ui/gfx/canvas_skia.cc
ui/message_center/views/bounded_label.cc
ui/views/controls/label.cc
ui/views/controls/label_unittest.cc