diff options
-rw-r--r-- | chrome/views/checkbox.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/views/checkbox.cc b/chrome/views/checkbox.cc index d5714ad..45895bd 100644 --- a/chrome/views/checkbox.cc +++ b/chrome/views/checkbox.cc @@ -84,11 +84,13 @@ void CheckBox::Paint(ChromeCanvas* canvas) { gfx::Rect r; ComputeTextRect(&r); // Paint the focus border if any. - if (HasFocus()) - canvas->DrawFocusRect(r.x() - kFocusPaddingHorizontal, + if (HasFocus()) { + // Mirror left point for rectangle to draw focus for RTL text. + canvas->DrawFocusRect(MirroredLeftPointForRect(r) - kFocusPaddingHorizontal, r.y() - kFocusPaddingVertical, r.width() + kFocusPaddingHorizontal * 2, r.height() + kFocusPaddingVertical * 2); + } PaintFloatingView(canvas, label_, r.x(), r.y(), r.width(), r.height()); } |