summaryrefslogtreecommitdiffstats
path: root/views/controls/label.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/label.cc')
-rw-r--r--views/controls/label.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/views/controls/label.cc b/views/controls/label.cc
index 89e9a572..1baba68 100644
--- a/views/controls/label.cc
+++ b/views/controls/label.cc
@@ -88,14 +88,6 @@ void Label::Paint(gfx::Canvas* canvas) {
if (HasFocus() || paint_as_focused_) {
text_bounds.Inset(-kFocusBorderPadding, -kFocusBorderPadding);
- // If the label is a single line of text, then the computed text bound
- // corresponds directly to the text being drawn and no mirroring is needed
- // for the RTL case. For multiline text, the text bound is an estimation
- // and is recomputed in gfx::Canvas::SizeStringInt(). For multiline text
- // in RTL, we need to take mirroring into account when computing the focus
- // rectangle.
- if (flags & gfx::Canvas::MULTI_LINE)
- text_bounds.set_x(MirroredLeftPointForRect(text_bounds));
canvas->DrawFocusRect(text_bounds.x(), text_bounds.y(),
text_bounds.width(), text_bounds.height());
}