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

Unified Diff: chrome/browser/chromeos/accessibility/accessibility_highlight_manager.cc

Issue 2354783004: Fix overflow/underflow in gfx geometry once and for all (Closed)
Patch Set: Now with 'fix' for accessibility interactive ui test Created 4 years, 3 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 | « no previous file | ui/gfx/geometry/mojo/geometry.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/accessibility/accessibility_highlight_manager.cc
diff --git a/chrome/browser/chromeos/accessibility/accessibility_highlight_manager.cc b/chrome/browser/chromeos/accessibility/accessibility_highlight_manager.cc
index 3af8b1f0338328ecdc3106f5435a5b83208b50fc..442ede7b59390cd0bd9d5bfa7cfafa10d6249cc2 100644
--- a/chrome/browser/chromeos/accessibility/accessibility_highlight_manager.cc
+++ b/chrome/browser/chromeos/accessibility/accessibility_highlight_manager.cc
@@ -15,13 +15,15 @@ namespace chromeos {
namespace {
+// TODO: don't hide carets and focus ring "offscreen" by using large numbers.
const gfx::Rect& OffscreenRect() {
- CR_DEFINE_STATIC_LOCAL(const gfx::Rect, r, (INT_MIN, INT_MIN, 0, 0));
+ CR_DEFINE_STATIC_LOCAL(const gfx::Rect, r,
+ (INT_MAX - 1000, INT_MAX - 1000, 0, 0));
enne (OOO) 2016/09/23 00:17:06 Surprisingly, AccessibilityHighlightManagerTest.Te
dmazzoni 2016/10/04 22:29:32 Working on a cleaner fix for this here: https://c
return r;
}
const gfx::Point& OffscreenPoint() {
- CR_DEFINE_STATIC_LOCAL(const gfx::Point, p, (INT_MIN, INT_MIN));
+ CR_DEFINE_STATIC_LOCAL(const gfx::Point, p, (INT_MAX - 1000, INT_MAX - 1000));
return p;
}
« no previous file with comments | « no previous file | ui/gfx/geometry/mojo/geometry.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698