summaryrefslogtreecommitdiff
path: root/Source/WebCore/platform/graphics/RoundedRect.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/graphics/RoundedRect.h')
-rw-r--r--Source/WebCore/platform/graphics/RoundedRect.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/RoundedRect.h b/Source/WebCore/platform/graphics/RoundedRect.h
index 0fd082d44..d923e353f 100644
--- a/Source/WebCore/platform/graphics/RoundedRect.h
+++ b/Source/WebCore/platform/graphics/RoundedRect.h
@@ -27,6 +27,7 @@
#ifndef RoundedRect_h
#define RoundedRect_h
+#include "FloatQuad.h"
#include "IntRect.h"
namespace WebCore {
@@ -96,6 +97,10 @@ public:
bool isRenderable() const;
void adjustRadii();
+ // Tests whether the quad intersects any part of this rounded rectangle.
+ // This only works for convex quads.
+ bool intersectsQuad(const FloatQuad&) const;
+
private:
IntRect m_rect;
Radii m_radii;