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

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

Issue 349730043: WIP - wip
Patch Set: . Created 5 years, 8 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
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..8d19f7f862ef4adc6b754cdce16072ebd3fe200e 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); }

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