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

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: per jchaffraix 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/platform/graphics/RoundedRect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..80c84f49c73fd987708cfee6f50302a7cb076f4b 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(); }
+ // Returns a quickly computed rect enclosed by the rounded rect.
+ IntRect radiusCenterRect() const;
+
void setRect(const IntRect& rect) { m_rect = rect; }
void setRadii(const Radii& radii) { m_radii = radii; }
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/platform/graphics/RoundedRect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698