Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Unified Diff: chrome/browser/chromeos/ui/accessibility_focus_ring_layer.cc

Issue 693623003: Fix system freeze in accessibility focus ring code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@682583002
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/ui/accessibility_focus_ring_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/ui/accessibility_focus_ring_layer.cc
diff --git a/chrome/browser/chromeos/ui/accessibility_focus_ring_layer.cc b/chrome/browser/chromeos/ui/accessibility_focus_ring_layer.cc
index 56120216e02f755247600b646979752fefacd17f..858c92f75d559cf0d9a965c059dbc44b719db445 100644
--- a/chrome/browser/chromeos/ui/accessibility_focus_ring_layer.cc
+++ b/chrome/browser/chromeos/ui/accessibility_focus_ring_layer.cc
@@ -41,13 +41,13 @@ SkPath MakePath(const AccessibilityFocusRing& input_ring,
do {
prev_index = (prev_index + 35) % 36;
prev = input_ring.points[prev_index];
- } while (prev.x() == p.x() && prev.y() == p.y());
+ } while (prev.x() == p.x() && prev.y() == p.y() && prev_index != i);
int next_index = i;
do {
next_index = (next_index + 1) % 36;
next = input_ring.points[next_index];
- } while (next.x() == p.x() && next.y() == p.y());
+ } while (next.x() == p.x() && next.y() == p.y() && next_index != i);
gfx::Point delta0 = gfx::Point(sign(p.x() - prev.x()),
sign(p.y() - prev.y()));
« no previous file with comments | « chrome/browser/chromeos/ui/accessibility_focus_ring_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698