summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/IntPoint.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/IntPoint.h')
-rw-r--r--WebCore/platform/graphics/IntPoint.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/IntPoint.h b/WebCore/platform/graphics/IntPoint.h
index d4ea2f2..cd5e4d4 100644
--- a/WebCore/platform/graphics/IntPoint.h
+++ b/WebCore/platform/graphics/IntPoint.h
@@ -109,6 +109,11 @@ public:
*this = expandedTo(zero());
}
+ IntPoint transposedPoint() const
+ {
+ return IntPoint(m_y, m_x);
+ }
+
#if PLATFORM(CG)
explicit IntPoint(const CGPoint&); // don't do this implicitly since it's lossy
operator CGPoint() const;