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

Unified Diff: Source/core/platform/graphics/RoundedRect.h

Issue 16402019: Remove clips where we can show that they are unnecessary. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 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: Source/core/platform/graphics/RoundedRect.h
diff --git a/Source/core/platform/graphics/RoundedRect.h b/Source/core/platform/graphics/RoundedRect.h
index 8dde238afdee6dde41d96c5b9b5a4cb147a3f985..e0d2f6873772e97f9103bda0130f59168980ac79 100644
--- a/Source/core/platform/graphics/RoundedRect.h
+++ b/Source/core/platform/graphics/RoundedRect.h
@@ -82,6 +82,9 @@ public:
bool isRounded() const { return !m_radii.isZero(); }
bool isEmpty() const { return m_rect.isEmpty(); }
+ // Return a quickly computed rect enclosed by the rounded rect.
+ IntRect enclosedRect() const;
Julien - ping for review 2013/08/08 21:36:50 I really think we should specify what we return as
jbroman 2013/08/09 15:34:35 Changed to radiusCenterRect().
+
void setRect(const IntRect& rect) { m_rect = rect; }
void setRadii(const Radii& radii) { m_radii = radii; }

Powered by Google App Engine
This is Rietveld 408576698