Index: Source/platform/geometry/FloatRect.h |
diff --git a/Source/platform/geometry/FloatRect.h b/Source/platform/geometry/FloatRect.h |
index 5e6d5e962916889afbfd634ec0f29054b608672e..96083cb7ff486be45f7cd5e6ecf81a50dbe4469d 100644 |
--- a/Source/platform/geometry/FloatRect.h |
+++ b/Source/platform/geometry/FloatRect.h |
@@ -132,6 +132,8 @@ public: |
FloatPoint maxXMinYCorner() const { return FloatPoint(m_location.x() + m_size.width(), m_location.y()); } // typically topRight |
FloatPoint minXMaxYCorner() const { return FloatPoint(m_location.x(), m_location.y() + m_size.height()); } // typically bottomLeft |
FloatPoint maxXMaxYCorner() const { return FloatPoint(m_location.x() + m_size.width(), m_location.y() + m_size.height()); } // typically bottomRight |
+ FloatPoint leftEdgeMidPoint() const { return FloatPoint(m_location.x(), m_location.y() + m_size.height() / 2); } |
+ FloatPoint rightEdgeMidPoint() const { return FloatPoint(m_location.x() + m_size.width(), m_location.y() + m_size.height() / 2); } |
bool intersects(const FloatRect&) const; |
bool contains(const FloatRect&) const; |