| Index: third_party/WebKit/Source/core/paint/ThemePainterMac.mm
|
| diff --git a/third_party/WebKit/Source/core/paint/ThemePainterMac.mm b/third_party/WebKit/Source/core/paint/ThemePainterMac.mm
|
| index a71ea3a32ce975669c900baae2d31195fff7a806..1b35b809756e766f8463d96edeceb2704fd68022 100644
|
| --- a/third_party/WebKit/Source/core/paint/ThemePainterMac.mm
|
| +++ b/third_party/WebKit/Source/core/paint/ThemePainterMac.mm
|
| @@ -87,7 +87,7 @@
|
| return false;
|
| }
|
|
|
| -bool ThemePainterMac::paintCapsLockIndicator(const LayoutObject&, const PaintInfo& paintInfo, const IntRect& r)
|
| +bool ThemePainterMac::paintCapsLockIndicator(const LayoutObject& o, const PaintInfo& paintInfo, const IntRect& r)
|
| {
|
| // This draws the caps lock indicator as it was done by
|
| // WKDrawCapsLockIndicator.
|
| @@ -128,12 +128,14 @@
|
| // Scale and translate the shape.
|
| CGRect cgr = r;
|
| CGFloat maxX = CGRectGetMaxX(cgr);
|
| + CGFloat minX = CGRectGetMinX(cgr);
|
| CGFloat minY = CGRectGetMinY(cgr);
|
| CGFloat heightScale = r.height() / kSquareSize;
|
| + bool isRTL = o.styleRef().direction() == RTL;
|
| CGAffineTransform transform = CGAffineTransformMake(
|
| heightScale, 0, // A B
|
| 0, heightScale, // C D
|
| - maxX - r.height(), minY); // Tx Ty
|
| + isRTL ? minX : maxX - r.height(), minY); // Tx Ty
|
|
|
| CGMutablePathRef paintPath = CGPathCreateMutable();
|
| CGPathAddPath(paintPath, &transform, shape);
|
|
|