summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/IntSize.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/IntSize.h')
-rw-r--r--WebCore/platform/graphics/IntSize.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/IntSize.h b/WebCore/platform/graphics/IntSize.h
index 9ecf389..9db2224 100644
--- a/WebCore/platform/graphics/IntSize.h
+++ b/WebCore/platform/graphics/IntSize.h
@@ -104,6 +104,11 @@ public:
*this = expandedTo(IntSize());
}
+ IntSize transposedSize() const
+ {
+ return IntSize(m_height, m_width);
+ }
+
#if PLATFORM(CG)
explicit IntSize(const CGSize&); // don't do this implicitly since it's lossy
operator CGSize() const;