Commit 5c19134c authored by Ahmed Mehfooz's avatar Ahmed Mehfooz Committed by Commit Bot

Only transform highlight path when in RTL mode

Bug: 1002349
Change-Id: I39f55b006b2c50d324333525a92c771867c5950e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1796564Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Ahmed Mehfooz <amehfooz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#696469}
parent b94b31f8
......@@ -183,7 +183,7 @@ SkRRect FocusRing::RingRectFromPathRect(const SkRRect& rrect) const {
SkPath GetHighlightPath(const View* view) {
SkPath path = GetHighlightPathInternal(view);
if (view->flip_canvas_on_paint_for_rtl_ui()) {
if (view->flip_canvas_on_paint_for_rtl_ui() && base::i18n::IsRTL()) {
gfx::Point center = view->GetLocalBounds().CenterPoint();
SkMatrix flip;
flip.setScale(-1, 1, center.x(), center.y());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment