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

Unified Diff: Source/platform/geometry/FloatRect.h

Issue 1072403007: Fixup a bug about SVG text selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add a line. Created 5 years, 8 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/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;

Powered by Google App Engine
This is Rietveld 408576698