Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3961)

Unified Diff: Source/WebCore/platform/graphics/FloatRect.h

Issue 359780043: WIP for IO
Patch Set: Fix inline test while making sure the text test still passes too. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/platform/Logging.h ('k') | Source/WebCore/platform/graphics/FloatRect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/platform/graphics/FloatRect.h
diff --git a/Source/WebCore/platform/graphics/FloatRect.h b/Source/WebCore/platform/graphics/FloatRect.h
index 4f3576610afb13c0716ec33ac9bbe7c852fafcb5..b4f9152f2f4d8bcc52161c6260abe80f1abf2895 100644
--- a/Source/WebCore/platform/graphics/FloatRect.h
+++ b/Source/WebCore/platform/graphics/FloatRect.h
@@ -89,6 +89,8 @@ public:
float width() const { return m_size.width(); }
float height() const { return m_size.height(); }
+ float area() const { return m_size.area(); }
+
void setX(float x) { m_location.setX(x); }
void setY(float y) { m_location.setY(y); }
void setWidth(float width) { m_size.setWidth(width); }
@@ -142,6 +144,7 @@ public:
WEBCORE_EXPORT bool contains(const FloatPoint&, ContainsMode = InsideOrOnStroke) const;
WEBCORE_EXPORT void intersect(const FloatRect&);
+ bool inclusiveIntersect(const FloatRect&);
WEBCORE_EXPORT void unite(const FloatRect&);
void uniteEvenIfEmpty(const FloatRect&);
void uniteIfNonZero(const FloatRect&);
« no previous file with comments | « Source/WebCore/platform/Logging.h ('k') | Source/WebCore/platform/graphics/FloatRect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b