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

Unified Diff: ui/gfx/geometry/rect.h

Issue 2744423002: Handle large rects better. (Closed)
Patch Set: Rebased on size patch Created 3 years, 9 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
Index: ui/gfx/geometry/rect.h
diff --git a/ui/gfx/geometry/rect.h b/ui/gfx/geometry/rect.h
index 8c37e8eeabd11cafdc2c0f43cad20bbac1f9f0f3..ea61b9f15c14872f1fefdeaaff31ca083e2ff701 100644
--- a/ui/gfx/geometry/rect.h
+++ b/ui/gfx/geometry/rect.h
@@ -110,6 +110,9 @@ class GFX_EXPORT Rect {
set_height(height);
}
+ // Safely(heuristically) take min and max to the internal representation.
danakj 2017/03/28 20:40:34 I get what this is talking about but I'm not reall
Peter Mayo 2017/03/29 18:49:26 I wanted it there to highlight to devs that there
+ void SetByBounds(int left, int right, int top, int bottom);
danakj 2017/03/28 20:40:34 Can you reorder these as left, top, right, bottom?
Peter Mayo 2017/03/29 18:49:25 I kind of like Skia's practice of putting the orde
+
// Shrink the rectangle by a horizontal and vertical distance on all sides.
void Inset(int horizontal, int vertical) {
Inset(horizontal, vertical, horizontal, vertical);

Powered by Google App Engine
This is Rietveld 408576698